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
working: -25200 | |
broken: no exception | |
broken: 2177280001.000001 | |
*** PROFILER RESULTS *** | |
broken (repro.py:18) | |
function called 1 times | |
5 function calls in 0.000 seconds |
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'; | |
var crypto = require('crypto'); | |
var debug = require('debug')('withings'); | |
var request = require('request'); | |
var _ = require('lodash'); | |
var EMAIL = process.env.EMAIL; | |
var PASSWORD = process.env.PASSWORD; |
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
Verifying my Blockstack ID is secured with the address 12ge7qKh7nekGQE8kaWMMMtsDQBSS8CCY9 https://explorer.blockstack.org/address/12ge7qKh7nekGQE8kaWMMMtsDQBSS8CCY9 |
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
var ip = require('ip-address'); | |
function subnetFromNetmask(netmask) { | |
var mask = new ip.Address6(netmask); | |
return mask.getBitsBase2().match(/^(1+)/)[1].length; | |
} | |
function addressFromAddressAndNetmask(address, netmask) { | |
return new ip.Address6(address + '/' + subnetFromNetmask(netmask)); |
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
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var fs = require('fs'); | |
console.log('retrieving unicode table...'); | |
request.get('http://unicode.org/emoji/charts/full-emoji-list.html', function (err, response, body) { | |
console.log('loading data...'); | |
var $ = cheerio.load(body); |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import errno | |
import os | |
import shutil | |
from subprocess import check_output | |
import arrow |
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
# improving the format/structure of the code | |
# 🌹 | |
# improving performance | |
# 🐎 | |
# writing docs | |
# 📝 | |
# fixing a bug | |
# 🐛 | |
# removing code or files | |
# 🔥 |
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
var parsimmon = require('parsimmon'); | |
function lexeme(parser) { | |
return parser.skip(parsimmon.optWhitespace); | |
} | |
var Keyword = parsimmon.alt( | |
parsimmon.string('appt'), | |
parsimmon.string('provider'), | |
parsimmon.string('hba1c') |
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
var parsimmon = require('parsimmon'); | |
function lexeme(parser) { | |
return parser.skip(parsimmon.optWhitespace); | |
} | |
var Keyword = parsimmon.alt( | |
parsimmon.string('appt'), | |
parsimmon.string('provider'), | |
parsimmon.string('hba1c') |
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
var ip = require('ip-address'); | |
var address = new ip.Address6('1:2:3:4::/64'); | |
document.write('<pre>'); | |
document.write(address.startAddress().correctForm()); | |
document.write('\n'); | |
document.write(address.endAddress().correctForm()); | |
document.write('</pre>'); |