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 listModelGraph = attrs.listModel.split('.'); | |
$scope.valueArray = _.reduce(listModelGraph, function (scope, node) { return scope[node]; }, $scope); |
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
function FindProxyForURL(url, host) { | |
PROXY = "PROXY 127.0.0.1:8080; DIRECT" | |
// plex.tv via proxy | |
if (shExpMatch(host,"*.plex.tv")) { | |
return PROXY; | |
} | |
// Everything else directly! | |
return "DIRECT"; | |
} |
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
# Description: | |
# Made so we can play Wheel of Fortune in Campfire | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: |
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
require "google_drive" | |
session = GoogleDrive.login("EMAIL_ADDRESS", "PASSWORD") | |
# Document key is the value found for the key param in the url | |
# ex: https://docs.google.com/spreadsheet/ccc?key=0Atoge9gLkMCTdHdza2FxTDliakNGamRXV01WYmNUUVE&usp=drive_web | |
# has a key of 0Atoge9gLkMCTdHdza2FxTDliakNGamRXV01WYmNUUVE | |
ws = session.spreadsheet_by_key("DOCUMENT_KEY").worksheets[0] | |
word_indexes = (3..8) # the rows in which your translated words exist |
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
set -U EDITOR vim | |
set NODE_PATH "/usr/local/lib/node_modules" | |
set PATH "$EC2_HOME/bin" $PATH | |
set PATH ".bundle/bin" $PATH | |
set PATH "/usr/local/bin" $PATH | |
set PATH "/usr/local/sbin" $PATH | |
set PATH "/usr/local/share/npm/bin" $PATH | |
set PATH $HOME/.rbenv/bin $PATH | |
set PATH $HOME/.rbenv/shims $PATH |
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
require "github_api" | |
Github.new.orgs.members.list("ORG_NAME").body.sort_by! {|u| u.id} .first.login |
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
#!/usr/bin/env ruby | |
# sanity checks | |
if ARGV.count == 0 | |
puts "You must provide a file name" | |
return | |
elsif File.exist?(ARGV.first) == false | |
puts "That file doesn't exist" | |
return | |
end |
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
[Keyboard] | |
# Get codes from /usr/include/SDL/SDL_keysym.h | |
A_1=99 | |
B_1=53 | |
X_1=304 | |
Y_1=122 | |
L_1=306 | |
R_1=308 | |
START_1=49 | |
SELECT_1=51 |
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
[Keyboard] | |
# Get codes from /usr/include/SDL/SDL_keysym.h | |
A_1=99 | |
B_1=53 | |
X_1=304 | |
Y_1=122 | |
L_1=306 | |
R_1=308 | |
START_1=49 | |
SELECT_1=51 |
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
#!/usr/bin/env ruby | |
# Run script from inside git repo | |
# Paths setup for OS X | |
# requires gource and ffmpeg | |
# On OS X: | |
# brew install ffmpeg gource | |
# Written by: Joe Pintozzi | |
# | |
# Resources | |
# gource: https://code.google.com/p/gource/ |