This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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>'); |
This file contains hidden or 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 Rhyme = require('rhyme-plus').Rhyme; | |
var sentenceTools = require('sentence-tools'); | |
var Twit = require('twit'); | |
var _ = require('lodash'); | |
var T = new Twit(botUtilities.getTwitterAuthFromEnv()); | |
var rhyme = new Rhyme(); | |
function syllables(line) { |
This file contains hidden or 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 _ = require('lodash'); | |
var a = ['meow', 'kittens','birthday_pants']; | |
var b = ['kittens', 'pants']; | |
function comparator(x, y) { | |
return x.indexOf(y) !== -1 || y.indexOf(x) !== -1; | |
} | |
var intersection = _.intersectionWith(a, b, comparator); |
This file contains hidden or 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 hidden or 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); |