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
"use strict"; | |
const DEBUG = !!+localStorage.get('DEBUG'); | |
function base(self, parent) { | |
self.__proto__.__proto__ = parent; | |
} | |
function copy(a, b) { | |
if (b) | |
b = {}; |
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.24; | |
contract ERC20Basic { | |
function totalSupply() public view returns (uint256); | |
function balanceOf(address _who) public view returns (uint256); | |
function transfer(address _to, uint256 _value) public returns (bool); | |
event Transfer(address indexed from, address indexed to, uint256 value); |
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
const https = require('https') | |
const fs = require('fs') | |
const entites = '' | |
function fetch(path) { | |
return new Promise(function (resolve, reject) { | |
const req = https.request({ | |
hostname: 'etherscan.io', | |
method: 'GET', |
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
// const s = document.createElement('script'); s.src = 'https://cdn.rawgit.com/kissarat/b979c322bf3ced4c21009b60160b20fa/raw/identify.js'; document.body.appendChild(s); | |
function *$combine(...seq) { | |
for (let i = 1; i <= seq.length; i++) { | |
for (let j = 0; j <= seq.length - i; j++) { | |
yield seq.slice(j, j + i) | |
} | |
} | |
} |
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
/** | |
* @author Taras Labiak <[email protected]> | |
*/ | |
const http = require('http'); | |
const https = require('https'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const {promisify} = require('util'); |
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
FILENAME=/tmp/swap-$(date +%s) | |
dd if=/dev/zero of=${FILENAME} bs=1M count=$1 | |
mkswap ${FILENAME} | |
chmod 600 ${FILENAME} | |
swapon ${FILENAME} |
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
{ | |
"docker.attachShellCommand.linuxContainer": "/bin/bash", | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 13, | |
"editor.formatOnSave": false, | |
"editor.insertSpaces": true, | |
"editor.rulers": [100], | |
"editor.tabSize": 2, | |
"emmet.excludeLanguages": ["markdown"], |