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
""" | |
this code is not mine! i shamelessly copied it from http://stackoverflow.com/questions/19790188/expanding-english-language-contractions-in-python | |
all credits go to alko and arturomp @ stack overflow. | |
basically, it's a big find/replace. | |
""" | |
import re | |
cList = { | |
"ain't": "am not", |
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 Excel = require('exceljs'); | |
// create workbook & add worksheet | |
var workbook = new Excel.Workbook(); | |
var worksheet = workbook.addWorksheet('Discography'); | |
// add column headers | |
worksheet.columns = [ | |
{ header: 'Album', key: 'album'}, | |
{ header: 'Year', key: 'year'} |
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
{ | |
"neal" : [ | |
{ | |
"year":1983, | |
"live": "New Delhi, India", | |
"school": null, | |
"work": null | |
}, | |
{ | |
"year":1984, |
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
#autoenv | |
source /usr/local/opt/autoenv/activate.sh | |
source ~/.autoenv/activate.sh | |
#tmpdir | |
if [ -f $(which tmpdir-tab) ]; then | |
. $(which tmpdir-tab) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' /> | |
<meta name="twitter:card" content="player" /> | |
<meta name="twitter:site" content="@wakeyio" /> | |
<meta name="twitter:title" content="Hemopure ~ Wakey Wakey #26" /> | |
<meta name="twitter:description" content="Hemopure is an artificial blood (HBOC) that’s saving lives in South Africa. It’s shelf stable and 100% compatible with all blood types." /> | |
<meta name="twitter:image" content="https://wakey.io/public/img/thumbs/26.png" /> | |
<meta name="twitter:player" content="https://wakey.io/embed/26" /> |
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
// on page load, search for & display a random gif matching your search term using the Giphy API. | |
// usage: | |
// include giphy.js in your <head> | |
// set q to your search term (e.g. "brunch") | |
// add <span id = "giphyme"></span> wherever you want to display the image. -- FYI, it will be centered. | |
// big ups to the Giphy crew (giphy.com) | |
// 2014 - Neal Shyam [@nealrs | nealshyam.com] | |
document.addEventListener('DOMContentLoaded', function () { | |
q = "finger guns"; // search query |
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
/* | |
* Take a set of full height screenshots for a range of screensizes. | |
* phantomjs responsive-screens.js http://www.cnn.com/ png | |
* | |
* This will create a directory tree in your current directory which | |
* mirrors the URL. All files will be named with the current time. | |
* You can run this on a cron to build an archive of screenshots. | |
**/ | |
var page = new WebPage(), |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/env python | |
# encoding: utf-8 | |
# 2014 - Neal Shyam [@nealrs | nealshyam.com] | |
# usage: $python checkrap.py first_name last_name domain_name | |
# e.g: $python checkrap.py john doe gmail.com | |
# | |
# | |
# PLEASE DON'T BE A DICK OR USE THIS FOR EVIL. | |
# Seriously, the internet is a nice place, let's keep it that way. |
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'; | |
const snowplow = require('snowplow-tracker'); | |
const emitter = snowplow.emitter; | |
const tracker = snowplow.tracker; | |
// setup emitter | |
const e = emitter( | |
'com-spokenlayer.mini.snplow.net', // Collector endpoint | |
'https', // Optionally specify a method - http is the default |
NewerOlder