Skip to content

Instantly share code, notes, and snippets.

Michael Yuan juntao

Block or report user

Report or block juntao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@juntao
juntao / # SIG 2019
Last active Dec 14, 2019
# SIG 2019
View # 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>
View # 普华
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>
View # 天津大学 11-19 如何快速入门区块链开发
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
View # Vote up or down
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
View gist:cc1565b76949a6bbd8bfb15aa9e53dc8
pragma lity ^1.2.4;
contract Human {
address public owner;
modifier onlyOwner() {
assert(msg.sender == owner);
_;
}
View keybase.md

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:

@juntao
juntao / Commands
Created Sep 13, 2018
Scrypt on CyberMiles VM
View Commands
# 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 / Command
Created Sep 3, 2018
CVM Performance Test: scrypt
View Command
c.verifyBlock.call(1, "82bc68038f6034c0596b6e313729793a887fded6e92a31fbdf70863f89d9bea2", "3b14b76d22a3f2859d73316002bc1b9bfc7f37e2c3393be9b722b62bbd786983", 1386474933, "1e0ffff0", 3404207872)
@juntao
juntao / Command
Created Sep 3, 2018
CVM Performance Test: Sorting
View Command
sortloops.sort(6000)
@juntao
juntao / Command
Created Sep 3, 2018
CVM Performance Test: Multiplication
View Command
mulloops.mul(1000000)
You can’t perform that action at this time.