摘要: ``` package main import ( "fmt" "time" ) //fixme channel注意事项 func main() { //todo 1. chan 可以声明为只读或者只写 默认是读写都可用 //只写 //var writeChan chan 阅读全文
posted @ 2019-07-14 16:10 hirampeng 阅读(523) 评论(0) 推荐(0) 编辑
摘要: ``` package main import ( "time" "fmt" ) //向管道放入80000个数 func createData(size int, intDataChan chan int) { if size 阅读全文
posted @ 2019-07-14 14:59 hirampeng 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.chinaunix.net/uid-26275986-id-4109679.html TCP协议作为一个可靠的面向流的传输协议,其可靠性和流量控制由滑动窗口协议保证,而拥塞控制则由控制窗口结合一系列的控制算法实现。一、滑动窗口协议 关于这部分自己不晓得怎么叙述才好, 阅读全文
posted @ 2019-05-20 23:20 hirampeng 阅读(888) 评论(0) 推荐(0) 编辑
摘要: Find First and Last Position of Element in Sorted Array Given an array of integers nums sorted in ascending order, find the starting and ending positi 阅读全文
posted @ 2019-05-19 23:24 hirampeng 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1 B2B 企业对企业 B2B ( Business to Business)是指进行电子商务交易的供需双方都是商家(或企业、公司),她(他)们使用了互联网的技术或各种商务网络平台,完成商务交易的过程。电子商务是现代 B2B marketing的一种具体主要的表现形式。 案例:阿里巴巴、慧聪网 2 阅读全文
posted @ 2019-04-14 20:30 hirampeng 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 项目mvn依赖: 创建一个springboot项目,引入如下依赖就好 项目配置: 工具类如下,controller只需要做相应方法的调用即可,我是用的activemq做异步发送,所以没写 阅读全文
posted @ 2019-04-08 09:30 hirampeng 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2018.cnblogs.com/blog/1413776/201903/1413776-20190328131854425-182013504.png) 阅读全文
posted @ 2019-03-28 13:19 hirampeng 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 给定二维平面上的n个点,找出位于同一直线上的点的最大数目。 Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. public class Solutio 阅读全文
posted @ 2019-03-22 17:09 hirampeng 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: ``` public class GenericDAO { private Class entityClass; protected GenericDAO() { //在子类实例化之前会将泛型填入(因为泛型是编译时期的),然后调用父类构造器,这时候我们可以通过一些特定的方法来获取这些实例化的泛型 //返回表示此 Class 所表示的实体(类、接口、基本类型... 阅读全文
posted @ 2019-02-21 01:24 hirampeng 阅读(820) 评论(0) 推荐(0) 编辑
摘要: ``` package jzoffer; /** * @Author: Hiram * @Date: 2019/02/21 0:32 */ public class Singleton { private Singleton(){ } /**第一种 饿汉式*/ private static Singleton singleton = new Singlet... 阅读全文
posted @ 2019-02-21 00:50 hirampeng 阅读(404) 评论(0) 推荐(0) 编辑