Skip to content

Instantly share code, notes, and snippets.

code monster

Neal Shyam nealrs

code monster
Block or report user

Report or block nealrs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nealrs / sp.js
Created May 9, 2018
snowplow mini test
View sp.js
'use strict';
const snowplow = require('snowplow-tracker');
const emitter = snowplow.emitter;
const tracker = snowplow.tracker;
// setup emitter
const e = emitter(
'', // Collector endpoint
'https', // Optionally specify a method - http is the default
nealrs /
Last active Jun 14, 2017
Turn your Jekyll blog into a Flash Briefing Skill for Alexa devices :)
layout title description date
double derp 1
2017-06-08 01:00:00 -0700

What had I expected? Four delights-snapped tributes (excesses) balance among four happy weeks as official as

nealrs / page.html
Created Oct 28, 2016
twitter player card sample
View page.html
<!DOCTYPE html>
<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="" />
<meta name="twitter:player" content="" />
nealrs /
Last active Jul 29, 2016
Get caller Name from Twilio
def callerName(tel):
r = requests.get(""+tel, params={'Type': 'caller-name'}, auth=(sid, tok) )
# return a list of first, last, etc. names instead of 1 string
name = r.json()['caller_name']['caller_name'].split()
except Exception, e:
print "error getting caller name: "+ repr(e)
return name
nealrs / gh.rb
Created Jun 23, 2016
search for github users in a particular geo and find their email address.
View gh.rb
require "octokit"
require "json"
auth = "your-github-auth-token-goes-here"
Octokit.auto_paginate = true
c = => auth, :auto_paginate => true, :per_page =>1000)
### GET USER IDS FOR GEOS DEFINED in `locations` ###
data = []
nealrs /
Last active Apr 18, 2016
bulk add notes to companies in prosperworks CRM
# API key
akey = "2cd366345l3derpppp3948city566ae6c"
# email address associated with API key
auser = "foo@bar.baz"
nealrs / gitatme_demo_i133.js
Created Apr 13, 2016
ExcelJS demo for Git@Me
View gitatme_demo_i133.js
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'}
nealrs / gist:35554cc4bcb58df95e21
Created Feb 25, 2016
Google Analytics: HTML5 Video Tracking
View gist:35554cc4bcb58df95e21
document.addEventListener('DOMContentLoaded', init, false)
var videoId = document.getElementById('video')
//var videoTitle = videoId.getAttribute('data-description')
var videoTitle = '宝宝身边有怪物'
function init () {
videoId.addEventListener('ended', videoEnd, false)
videoId.addEventListener('timeupdate', videoTimeUpdate, false)
videoId.addEventListener('play', videoPlay, false)
nealrs / responsive-screens.js
Created Jan 29, 2016 — forked from ryanmark/responsive-screens.js
Easy responsive screenshots with Phantom.js
View responsive-screens.js
* Take a set of full height screenshots for a range of screensizes.
* phantomjs responsive-screens.js 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(),
nealrs / cron
Created Dec 12, 2015
Python script + cron job to add NextDraft articles to your Instagram list every day at 5:05pm
View cron
0 5 17 ? * MON-FRI * python ~/path/ >> ~/path/instadraft.log
You can’t perform that action at this time.