Skip to content

Instantly share code, notes, and snippets.

View ats's full-sized avatar

Alan Schussman ats

View GitHub Profile
# GitHub.tmbundle/Support/lib/gist.rb
# Modify def auth to use TM_GIT path
def auth
user = `$TM_GIT config --global github.user`.strip
token = `$TM_GIT config --global github.token`.strip
print user
user.empty? ? {} : { 'login' => user, 'token' => token }
end
/* Processing code to display a grid overlay for help with layout */
Boolean doGrid = true; // enable or disable measurement grid
int divFactor = 25; // set square size of measurement grid
// display measurements grid if doGrid is true
if (doGrid == true) {
stroke(#3C4F50);
strokeWeight(1);
int vLines = width / divFactor;
/* May 1 2010
Processing code to read delimited data from a file and load columns
into arrays.
*/
BufferedReader reader;
String[] lines, row;
int i, j, sumColumn;
String[][] data = new String[7][32]; // adjust to array size