01 2018 档案

摘要:安装 sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc 编译 solc --bin --abi Org.sol -o /root solc --bin --abi O 阅读全文
posted @ 2018-01-28 16:57 ahuo 阅读(554) 评论(0) 推荐(0) 编辑
摘要:@EnableAutoConfiguration 启动自动装载:使用了这个注解之后,所有引入的jar的starters都会被自动注入。这个类的设计就是为starter工作的。 @RestController 这个注解专门用于写RESTful的接口的,里面集成了@Controller和@Respons 阅读全文
posted @ 2018-01-24 21:33 ahuo 阅读(214) 评论(0) 推荐(0) 编辑
摘要:Date now = new Date(); Calendar cal1 = Calendar.getInstance(); cal1.setTime(now); // 将时分秒,毫秒域清零 cal1.set(Calendar.HOUR_OF_DAY, 0); cal1.set(Calendar.MINUTE, 0); cal1.set(Calendar.SECOND, 0); cal1.set... 阅读全文
posted @ 2018-01-11 09:51 ahuo 阅读(13842) 评论(0) 推荐(0) 编辑
摘要:for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done killall dd 阅读全文
posted @ 2018-01-10 16:53 ahuo 阅读(229) 评论(0) 推荐(0) 编辑
摘要:@echo offcurl.exe http://10.6.41.192:8888/images/ver.txt > v.txtset /P cv=<cv.txtset /P vv=<v.txtset filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~ 阅读全文
posted @ 2018-01-10 13:43 ahuo 阅读(281) 评论(0) 推荐(0) 编辑
摘要:pragma solidity ^0.4.18; contract test { function mul(uint a) public pure returns (uint) { uint c = a * 7; return c; } } 阅读全文
posted @ 2018-01-03 11:24 ahuo 阅读(301) 评论(0) 推荐(0) 编辑
摘要:流程: 拍卖猫 10以太币 A 创建拍卖智能合约(cat ,10) B竞价20(B转账到合约20) C竞价40(C转账到合约40,并且返还B 20) A结束拍卖 (合约转账40到A) 阅读全文
posted @ 2018-01-02 15:31 ahuo 阅读(551) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示