Skip to content

Instantly share code, notes, and snippets.

View jessefulton's full-sized avatar

Jesse Fulton jessefulton

View GitHub Profile
@jessefulton
jessefulton / create-test-facebook-users.js
Last active August 29, 2015 14:19
Create test users for a Facebook application
#!/usr/bin/env node
//
// usage:
// FACEBOOK_APP_ID=<APPID> FACEBOOK_APP_SECRET=<SECRET> ./test/load-test/scripts/facebook/create-test-users.js > output.csv
//
var userCount = process.env.USER_COUNT || 10;
var restify = require("restify")
async = require("async");
@jessefulton
jessefulton / remarkise.md
Created April 30, 2015 05:18
Remark.js remarkise sample file

name: inverse layout: true class: center, middle, inverse

#remark [ri-mahrk] .footnote[Go to directly to project site]

What is it and why should I be using it?


@jessefulton
jessefulton / snsToSlack.js
Created August 21, 2015 00:43 — forked from terranware/snsToSlack.js
AWS Lambda function to Slack Channel hookup
var https = require('https');
var util = require('util');
//via http://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objects
function flatten(data) {
var result = {};
function recurse (cur, prop) {
if (Object(cur) !== cur) {
result[prop] = cur;
} else if (Array.isArray(cur)) {
@jessefulton
jessefulton / gist:1441737
Created December 7, 2011 06:38
Determine if cron is running
* * * * * touch /tmp/.cron_is_working
@jessefulton
jessefulton / main.js
Created March 6, 2012 04:28
Kapi Text Transform (current)
(function () {
if (!(document.getElementsByTagName("canvas").length)) {
return;
}
(function () {
var myKapi,
myText;
myKapi = kapi(document.getElementById('demo1'), {
@jessefulton
jessefulton / error log
Created March 10, 2012 23:28
Building ProCamToolkit - mapamok
Ld bin/mapamokDebug.app/Contents/MacOS/mapamokDebug normal i386
cd /Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok
/Developer/usr/bin/clang++ -arch i386 -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/bin -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/android/armeabi -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/android/armeabi-v7a -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/iphone -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/linux -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../.
@jessefulton
jessefulton / cron.js
Created March 20, 2012 04:03
Problem reading casperjs output into nodejs
var spawn = require('child_process').spawn;
var bin = "casperjs"
//googlelinks.js is the example given at http://casperjs.org/#quickstart
var args = ['scripts/googlelinks.js'];
var cspr = spawn(bin, args);
//cspr.stdout.setEncoding('utf8');
cspr.stdout.on('data', function (data) {
var buff = new Buffer(data);
@jessefulton
jessefulton / runme.txt
Created August 16, 2012 21:07
Upload ssh keys
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys'
@jessefulton
jessefulton / install_rvm.sh
Created August 22, 2012 04:23 — forked from janjongboom/gist:3116835
RVM Install on Cloud9 IDE
# this script expects to be run from your home dir
# TOTALLY STILL UNDER DEVELOPMENT!
# automated version of https://gist.github.com/3116835
# this will get your ID...
GUID=$(pwd | sed -e 's/\/var\/lib\/stickshift\/\([^\/]*\)\/.*/\1/')
@jessefulton
jessefulton / 2014-04-03 Send Keynote Presenter Notes to Evernote.applescript
Created October 15, 2015 00:10 — forked from benwaldie/2014-04-03 Send Keynote Presenter Notes to Evernote.applescript
This script sends presenter notes from a Keynote 6.2 presentation to Evernote.
--==============================
-- Send Keynote Presenter Notes to Evernote
-- Version 1.0.1
-- Written By: Ben Waldie <ben@automatedworkflows.com>
-- http://www.automatedworkflows.com
-- Version 1.0.0 - Initial release
-- Version 1.0.1 - Updated for Keynote 6.2 compatibility
--==============================