This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PS1="\u\e[1;31m \W\e[m $ " | |
alias ll="ls -lahG" | |
alias sniff="sudo ngrep -W byline -d 'en0' -t '^(GET|POST) ' 'tcp and port 8888'" | |
alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start' | |
alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop' | |
alias gp='git pull origin master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@sendTreeNow : (id, tree_id, complete, fail) => | |
# TODO get message data | |
template = "@[#{Facebook.user.id}] gifted you a tree in the Amazon. Name it now." | |
url = (window or document).location.origin + "trees/#{tree_id}" | |
$.get "https://graph.facebook.com/oauth/access_token?client_id=#{window.config.fb_app}&client_secret=#{window.config.fb_secret}&grant_type=client_credentials", (data) => | |
str = "https://graph.facebook.com/" | |
str += "#{id}/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["super+up"], "command": "swap_line_up" }, | |
{ "keys": ["super+down"], "command": "swap_line_down" }, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# directory with the gigapic | |
cd giga | |
for (( i = 2; i < 11; i++ )); do | |
rm $i.html | |
cd $i"_img" | |
echo `pwd` | |
rm ImageProperties.xml | |
rm zoomifyViewer.swf | |
mkdir a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'), | |
fs = require('fs'), | |
$ = require('jquery'); | |
var issues = []; | |
function downloadIssue() | |
{ | |
var lastIndexSlash = issues[0].lastIndexOf('/') + 1; | |
var filename = issues[0].substring(lastIndexSlash, issues[0].length); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define REDPIN 5 | |
#define GREENPIN 6 | |
#define BLUEPIN 3 | |
#define GOAL_REPEAT 20 // how many times to flash when someone scores | |
#define DETECT_RIGHT A0 | |
#define DETECT_LEFT A1 | |
boolean goal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# clean up any old HTML | |
for a in `ls -a *.html` | |
do | |
rm $a | |
done | |
# create array with the images | |
array=( $( ls -a *.png *.jpg ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
silvio paganini | s2paganini | @silviopaganini | |
Thanks to https://github.com/jashkenas | |
### | |
### -------------- INIT VARS -------------- ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DistortImage | |
_w : null | |
_h : null | |
_hseg : null | |
_vseg : null | |
_p : null | |
_tri : null | |
_xMin : null | |
_xMax : null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
USAGE: | |
img = new SSAsset( | |
{ | |
fullSize : [512, 512] | |
x : 0, | |
y : 0, | |
width : 100, |