Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesse Fulton jessefulton

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jessefulton on github.
  • I am jessefulton (https://keybase.io/jessefulton) on keybase.
  • I have a public key ASDDc071dEGfZyxupCVCRQcc4GSZrOj2HNiYq-oDgj--igo

To claim this, I am signing this object:

View 2014-04-03 Send Keynote Presenter Notes to Evernote.applescript
--==============================
-- 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
--==============================
@jessefulton
jessefulton / speaker-notes.applescript
Created Aug 26, 2015
Export Keynote Speaker Notes
View speaker-notes.applescript
# via http://apple.stackexchange.com/questions/136118/how-to-print-full-presenter-notes-without-slides-in-keynote
global presenterNotes
tell application "Keynote"
activate
open (choose file)
tell front document
set presenterNotes to presenter notes of every slide as text
set the clipboard to presenterNotes
do shell script "pbpaste > ~/keynote-notes.txt"
end tell
@jessefulton
jessefulton / snsToSlack.js
Created Aug 21, 2015 — forked from terranware/snsToSlack.js
AWS Lambda function to Slack Channel hookup
View snsToSlack.js
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 / remarkise.md
Created Apr 30, 2015
Remark.js remarkise sample file
View remarkise.md

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 / create-test-facebook-users.js
Last active Aug 29, 2015
Create test users for a Facebook application
View create-test-facebook-users.js
#!/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");
View client_test.js
var errors = require('protocol').errors;
var MemJS = require('memjs');
exports.testGetSuccessful = function(beforeExit, assert) {
var n = 0;
var callbn = 0;
var dummyServer = new MemJS.Server();
dummyServer.write = function(requestBuf) {
request = MemJS.Utils.parseMessage(requestBuf);
assert.equal('hello', request.key);
@jessefulton
jessefulton / install_rvm.sh
Created Aug 22, 2012 — forked from janjongboom/gist:3116835
RVM Install on Cloud9 IDE
View install_rvm.sh
# 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/')
View runme.txt
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys'
@jessefulton
jessefulton / cron.js
Created Mar 20, 2012
Problem reading casperjs output into nodejs
View cron.js
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);
You can’t perform that action at this time.