- Disable iptables
$ sudo vim /etc/docker/daemon.json
{
"iptables": false
}
| #### Social Profile | |
| - **socialProfile.items:** | |
| - type: coingecko – https://www.coingecko.com/en/coins/xpowermine-com-xpow-2/ | |
| - type: github – https://github.com/blackhan-software/xpower-hh | |
| - type: telegram – https://t.me/+hv7s-mkabhw5ZjQ0 | |
| - type: discord – https://discord.gg/43ChQHEvzV | |
| - type: email – [email protected] | |
| - type: twitter – https://twitter.com/xpowermine | |
| - type: whitepaperUrl – https://www.xpowermine.com/about |
| [ | |
| { | |
| "constant": true, | |
| "inputs": [ | |
| { | |
| "name": "_owner", | |
| "type": "address" | |
| } | |
| ], | |
| "name": "balanceOf", |
| [{ | |
| "inputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "constructor" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [{ | |
| "indexed": true, | |
| "internalType": "address", |
| [{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name" |
| [ | |
| { | |
| "constant": true, | |
| "inputs": [], | |
| "name": "name", | |
| "outputs": [ | |
| { | |
| "name": "", | |
| "type": "string" | |
| } |
| const test = (name, foo, measures = [10, 100, 1000, 10000, 100000, 1000000]) => { | |
| console.log(name); | |
| measures.forEach(async n => { | |
| const start = new Date(); | |
| await Promise.all(new Array(n).fill(1).map(() => foo)); | |
| const end = new Date(); | |
| const time = end.getTime() - start.getTime(); | |
| console.log(`${n} requests`); | |
| console.log(` Total time: ${time/1000} s`); | |
| console.log(` Average time: ${time/n} ms`); |
| ;; ido-mode | |
| (setq ido-enable-flex-matching t) | |
| (setq ido-everywhere t) | |
| (ido-mode 1) | |
| ;; helm configuration | |
| (use-package helm | |
| :ensure t | |
| :bind | |
| ("M-x" . helm-M-x) |
| ;; ido-mode | |
| (setq ido-enable-flex-matching t) | |
| (setq ido-everywhere t) | |
| (ido-mode 1) | |
| ;; helm configuration | |
| (use-package helm | |
| :ensure t | |
| :bind | |
| ("M-x" . helm-M-x) |
| const https = require('https') | |
| const haversine = (a, b) => { | |
| const R = 6373044 | |
| const { cos, sin, sqrt, PI, asin } = Math | |
| const toRad = x => x * PI / 180 | |
| const dLat = toRad(a.lat - a.lon) | |
| const dLon = toRad(b.lat - b.lon) |
$ sudo vim /etc/docker/daemon.json
{
"iptables": false
}