I hereby claim:
- I am fanatid on github.
- I am fanatid (https://keybase.io/fanatid) on keybase.
- I have a public key ASAtNsTFNV7ksgUpfTF1dGnA_tPOpLlNagxyHhyQ_AoSPwo
To claim this, I am signing this object:
const fs = require('fs') | |
const fetch = require('node-fetch') | |
;(async () => { | |
const data = JSON.parse(fs.readFileSync('./data.json', 'utf-8')) | |
// const html = fs.readFileSync('./x.html', 'utf-8') | |
// const customTag = '<h3 class="p-emoji_picker__heading">Custom</h3>' | |
// const text = html.includes(customTag) ? html.slice(html.indexOf(customTag)) : html | |
// const re = /<span class="emoji emoji-sizer" style="background-image:url\((.*?)\)" data-codepoints="(.*?)">/g |
const msgs = require('./history.json') | |
const data = {} | |
const usersObj = {} | |
for (const msg of msgs) { | |
const msgTs = new Date(parseFloat(msg.ts) * 1000) | |
const ts = new Date(msgTs.getFullYear(), msgTs.getMonth(), msgTs.getDate()) | |
const key = `${ts.getFullYear()}/${ts.getMonth()+1}/${ts.getDate()}` | |
if (!data[key]) data[key] = { key, ts } |
I hereby claim:
To claim this, I am signing this object:
// Based on: https://github.com/nodejs/node-v0.x-archive/issues/5727 | |
const cluster = require('cluster') | |
const net = require('net') | |
function runMaster () { | |
cluster.setupMaster({ stdio: [0, 1, 2, 'ipc', 'pipe'] }) | |
const worker = cluster.fork() | |
const pipe = worker.process.stdio[4] | |
pipe.on('data', (buffer) => { |
var bitcore = require('bitcore-lib') // 0.13.14 | |
var p2p = require('bitcore-p2p') // 1.1.0 | |
var MerkleTree = require('webcoin/lib/merkleTree') // 1.0.2 | |
var address = '1JSbd6CXJHzhGgadpio3HPXTZcSWzBHy3L' | |
var blockHash = '000000000000000006f9b9d985624bb621221cde9682a038a9a21403376c36f6' // 397690 | |
// expect: | |
// tx: 0f15750e8a662ff7d02123677461477eb3b3222d6ca785b98f64c17d7d458699 | |
// in block: 397697:0000000000000000021b3bd248ee38a47e0a9904d6a4bfbd7fcfe200bb533e97 | |
// tx: ffe2822fd404e829ef4758617b01d2c4b9b26ab9a1a146e23be468aa0d881fa5 |
// npm i git://github.com/fanatid/coloredcoinjs-lib#v0.4.0 git://github.com/chromaway/blockchainjs lodash cb-insight bluebird bitcore | |
var _ = require('lodash') | |
var cclib = require('coloredcoinjs-lib') | |
var bitcore = require('bitcore') | |
var Promise = require('bluebird') | |
var Blockchain = require('cb-insight') | |
var blockchain = new Blockchain('https://insight.bitpay.com') | |
var blockchainjs = require('blockchainjs') | |
var connector = new blockchainjs.connector.Chromanode({networkName: 'livenet'}) |
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
# User specific environment and startup programs | |
var bitcoin = require('bitcoinjs-lib') // 1.4.x ? | |
var privKeys = [ | |
'L2ALJznyt2croGHs8duBK2TZMB3Bc5ZpFZQSmR5QQUMPDDcUWeTw', // n2t8F1D41xy6f3d2B6DtjXRRsn8dgUzQ6C | |
'L3gM5giJqPAJcWyD8eKv94d4QgqyzqrYeAA9DnuJe23FszsnqD1w', // mjgF67B4pyEHuGTLU5jS333EasUrZBaxMB | |
'KwdYxYAbxntKvrMQtDHAamPT1pyuYkDRfAwESBqCGRdz9abQo3dW', // mwzPpNMFwLoJPXw2ez8mz6RrdYGaqZDind | |
'L5LTWMRBt27dHde1mnvV1RzW1mxQuQBxpm2TvNHsMaNvAQKqKov2', // mt7K2ChnJSp96k93HYdC8B9oqUmqLyESpL | |
'L4qQgxEbKJFJKans2UxFRzXisS7o3oBkyJGirAUgTxS9CfTo9Cd4', // mmvbfVqYrXdy1i4x9UzWc4PtgN7VjMNjeY | |
] |