Skip to content

Instantly share code, notes, and snippets.

paulbooth / post_data_uri.js
Last active December 14, 2015 14:49
Make a Facebook post with a DataURI image using Rem
var fs = require('fs')
, path = require('path');
var rem = require('rem')
, FormData = require('form-data');
scope: ['publish_stream']
}, function (err, user) {
var form = new FormData();
paulbooth / .bash_aliases
Last active December 12, 2015 02:38
Aliases for quick git action. Slap this in ~/.bash_aliases (create it if it doesn't exist)
alias twag='echo "That was a joke." | say'
alias ga='git add'
alias gp='git push'
alias gl='git log'
alias gs='git status'
alias gd='git diff'
alias gc='git commit -am'
alias gma='git commit -am'
alias gb='git branch'
alias gco='git checkout'
paulbooth / factortrinomial.cpp
Created December 5, 2011 17:54
Factor a trinomial in C++
//Paul Booth
//June 01, 2009
//Programming 3 final program
//Trinomial factoring program
//inputs a trinomial, displays factored form
#include <iostream>
#include <windows.h>
paulbooth / GuitarGame.cpp
Created December 5, 2011 17:53
Make a Guitar Game in C++
/* Paul Booth
Guitar Hero clone in ascii. (mary had a little lamb)
#include <iostream>
#include <windows.h>
#define G 392
#define A 440
#define B 494
#define D 587