Skip to content

Instantly share code, notes, and snippets.

View juntao's full-sized avatar

Michael Yuan juntao

View GitHub Profile
@juntao
juntao / Command
Created September 3, 2018 06:01
CVM Performance Test: Sorting
sortloops.sort(6000)
@juntao
juntao / Command
Created September 3, 2018 06:08
CVM Performance Test: scrypt
c.verifyBlock.call(1, "82bc68038f6034c0596b6e313729793a887fded6e92a31fbdf70863f89d9bea2", "3b14b76d22a3f2859d73316002bc1b9bfc7f37e2c3393be9b722b62bbd786983", 1386474933, "1e0ffff0", 3404207872)
@juntao
juntao / Commands
Created September 13, 2018 06:31
Scrypt on CyberMiles VM
# Block #2 of dogecoin
> c.verifyBlock.call(1, "82bc68038f6034c0596b6e313729793a887fded6e92a31fbdf70863f89d9bea2", "3b14b76d22a3f2859d73316002bc1b9bfc7f37e2c3393be9b722b62bbd786983", 1386474933, "1e0ffff0", 3404207872)
true
# Even 1-bit of nonce changed, this block header will become invalid
> c.verifyBlock.call(1, "82bc68038f6034c0596b6e313729793a887fded6e92a31fbdf70863f89d9bea2", "3b14b76d22a3f2859d73316002bc1b9bfc7f37e2c3393be9b722b62bbd786983", 1386474933, "1e0ffff0", 3404207871)
false
@juntao
juntao / keybase.md
Created November 8, 2018 06:16
Proof

Keybase proof

I hereby claim:

  • I am juntao on github.
  • I am juntao (https://keybase.io/juntao) on keybase.
  • I have a public key ASAFVjl9VGERabkbF0LqejQwAth1vfjLsvgduFCpzXWc-wo

To claim this, I am signing this object:

pragma lity ^1.2.4;
contract Human {
address public owner;
modifier onlyOwner() {
assert(msg.sender == owner);
_;
}
Add the following to "dapp -- Resources"
* JavaScript: https://code.jquery.com/jquery-3.4.1.min.js
* CSS: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
The "dapp -- CSS" should be empty
Add the following to "dapp -- Resources"
* JavaScript: https://code.jquery.com/jquery-3.4.1.min.js
* CSS: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
The "dapp -- CSS" should be empty
@juntao
juntao / # 普华
Last active November 26, 2019 07:37
Add the following to "dapp -- Resources"
* JavaScript: https://code.jquery.com/jquery-3.4.1.min.js
* CSS: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
The "dapp -- CSS" should be empty
https://opendapps.secondstate.io/2019_1574356829918.html
<p>欢迎参加2019普华科技大会!</p><p><center><img width="320px" src="https://www.secondstate.io/demo/2019-puhua.jpg"></center></p><p>请各位嘉宾在下方输入名字签到</p>
@juntao
juntao / # SIG 2019
Last active December 14, 2019 01:24
# SIG 2019
Add the following to "dapp -- Resources"
* JavaScript: https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
* CSS: https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css
The "dapp -- CSS" should be empty
https://opendapps.secondstate.io/SIG2019_1576286389667.html
<p>欢迎参加2019海纳亚洲大会!请各位嘉宾在下方输入名字领取 Addison-Wesley 新出版的 <a href="https://www.amazon.com/Building-Blockchain-Apps-Michael-Yuan/dp/0135172322/">Buidling Blockchain App</a> 一书</p><p><center><img width="320px" src="https://blog.secondstate.io/images/20191002-book-etc-01.png"></center></p>
Add the following to "dapp -- Resources"
* JavaScript: https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
* CSS: https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css
<p>2020鼠年的春节,我们都不得不待在家里。从开始一句句给我女儿徐笑笑讲述“病毒”“肺炎”,让她理解不能带她去广州玩儿了,到一点点渗透“可能有很长一段时间都不能出门,不能上幼儿园了”……</p>
<p>我想肯定有很多家长,像我一样,努力地向小朋友们解释着发生着的一切;也肯定有很多家长,不知道怎么向小朋友们科学、系统、有效的解释为什么突然就不能出门了。</p>
<p>感谢我身边的朋友们,一起制作了这个18页的中英双语绘本。家长们可以用这个生动形象的绘本,向小朋友解释:新型冠状病毒的传播途径、为什么会出现新型冠状病毒、出门时必须戴口罩、回家必须7步洗手。</p>