摘要: 早就听说网上有人仅仅用60行JavaScript代码写出了一个俄罗斯方块游戏,最近看了看,今天在这篇文章里面我把我做的分析整理一下(主要是以注释的形式)。 我用C写一个功能基本齐全的俄罗斯方块的话,大约需要1000行代码的样子。所以60行乍一看还是很让人吃惊的。 但是读懂了代码之后发现其实整个程序并 阅读全文
posted @ 2016-04-20 18:44 鸡毛巾 阅读(12794) 评论(15) 推荐(20) 编辑
摘要: 借助geth官方提供的函数可以很简单的实现代码如下 package main import ( "crypto/ecdsa" "encoding/hex" "fmt" "github.com/ethereum/go-ethereum/crypto" ) func main() { priKeyHas 阅读全文
posted @ 2021-01-06 22:24 鸡毛巾 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: 1.获取创世区块hash bitcoin-cli getblockhash 0 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f 2.根据区块hash查询区块以及交易数据 bitcoin-cli getblock 000 阅读全文
posted @ 2020-07-04 23:14 鸡毛巾 阅读(1899) 评论(0) 推荐(0) 编辑
摘要: 1.首先从github上clone最新的bitcoin源代码 git clone https://github.com/bitcoin/bitcoin.git 2.进入clone下来的代码目录,查看当前版本(这里我切换到了v0.20.0版本) cd ./bitcoin git tag -l git 阅读全文
posted @ 2020-06-30 12:15 鸡毛巾 阅读(2195) 评论(0) 推荐(0) 编辑
摘要: 之后记录一下 阅读全文
posted @ 2020-04-11 18:40 鸡毛巾 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 根据脚本以后再写 阅读全文
posted @ 2020-04-01 22:07 鸡毛巾 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: 根据脚本以后再写 阅读全文
posted @ 2020-04-01 22:05 鸡毛巾 阅读(2414) 评论(0) 推荐(0) 编辑
摘要: 之后再写 阅读全文
posted @ 2020-04-01 22:00 鸡毛巾 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 所谓executor就是执行者的意思,即gitlab-runner执行任务时候的具体承载媒介,我们的gitlab上可能会有很多项目,不同项目会使用不同语言开发,不可能把构建所有项目用到的环境都配置在gitlab-runner运行的机器之上,所以才会有executor。 gitlab-runner e 阅读全文
posted @ 2020-04-01 21:56 鸡毛巾 阅读(6420) 评论(0) 推荐(0) 编辑
摘要: sudo apt install p7zip-full 7z x -o./xxxdir/ xxx.7z.001 注意-o之后不能有空格,需要立马跟上path 阅读全文
posted @ 2020-03-25 13:33 鸡毛巾 阅读(227) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash docker run \ --name jm-es \ --restart=always \ -e "discovery.type=single-node" \ -e "cluster.name=jm-es" \ -p 9200:9200 \ -p 9300:9300 \ - 阅读全文
posted @ 2020-03-24 16:24 鸡毛巾 阅读(1647) 评论(1) 推荐(0) 编辑