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
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>'); |
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 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 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 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 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
'use strict'; | |
var Benchmark = require('benchmark'); | |
var emojis = require('emojilib'); | |
var nearley = require('nearley'); | |
var emojiGrammar = require('./parsers/emoji.js'); | |
var pegjs = require('pegjs-import'); | |
var pegjsEmoji = pegjs.buildParser('./parsers/emoji.pegjs'); | |
var _ = require('lodash'); |
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
.navbar-toggle { | |
background-image: url(http://i.imgur.com/NBCwtIw.png); | |
background-position: center; | |
background-size: 90%; | |
background-repeat: no-repeat; | |
} |