This file contains hidden or 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 | |
#require 'pry' | |
#require 'pry-byebug' | |
def branch(group:nil) | |
case group | |
when :remote | |
flag = "-r" | |
when :all |
This file contains hidden or 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 | |
tmpdir=`mktemp -dt ios-sim.XXX` | |
buildpath="./build/Release/ios-sim" | |
destdir="$HOME/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone" | |
success=false | |
pushd $tmpdir | |
git clone [email protected]:phonegap/ios-sim.git . |
This file contains hidden or 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
/** | |
* Generates an RFC4122-compliant v4 UUID. | |
* @returns {string} | |
*/ | |
function generateUUID() { | |
var timestamp = Date.now(), uuid = '', i = 36, c, | |
hexChars = '0123456789abcdef', | |
uuidPattern = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; | |
while (i--) { |
This file contains hidden or 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
// PinkySwear - Minimalistic implementation of the Promises/A+ spec | |
// | |
// Public Domain. Use, modify and distribute it any way you like. No attribution required. | |
// | |
// NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
// | |
// https://github.com/timjansen/PinkySwear.js | |
// | |
// Modified to add resolve/reject/notify/process/fin/done/fail/get/invoke methods | |
(function(target) { |
This file contains hidden or 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
# | |
# Author: Devin Weaver | |
# | |
# Encrypts a block and outputs in line JavaScript to decrypt on the fly. Used | |
# for hiding sensitive information like email and phone numbers that you want | |
# visiters to see but do not want spiders or robots to see (keep from search | |
# engines and spammers). HTML only allowed in block. | |
# | |
# If you store the Jekyll source publicly (like on Github) You can avoid | |
# putting sensitive data inside a `_secrets.yml` file and look them up by id. |
This file contains hidden or 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 spawn = require("child_process").spawn; | |
var Q = require("q"); | |
/** | |
* Wrap executing a command in a promise | |
* @param {string} command command to execute | |
* @param {Array<string>} args Arguments to the command. | |
* @param {string} cwd The working directory to run the command in. | |
* @return {Promise} A promise for the completion of the command. | |
*/ |
This file contains hidden or 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
# Turn a PEG on its head! Generate some compliments. | |
class Complimenter | |
def compliments | |
phrases | |
end | |
def phrases | |
phrase + ". " + maybe { phrases } | |
end |
This file contains hidden or 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
// XORCipher - Super simple encryption using XOR and Base64 | |
// | |
// Depends on [Underscore](http://underscorejs.org/). | |
// | |
// As a warning, this is **not** a secure encryption algorythm. It uses a very | |
// simplistic keystore and will be easy to crack. | |
// | |
// The Base64 algorythm is a modification of the one used in phpjs.org | |
// * http://phpjs.org/functions/base64_encode/ | |
// * http://phpjs.org/functions/base64_decode/ |
This file contains hidden or 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
Badland - Platformer/puzzler | |
Cordy 2 - Platformer | |
Phoenix HD - Bullet hell shmup | |
Danmaku Unlimited 2 - Bullet hell shump | |
DoDonPachi Resurrection - Bullet hell shmup | |
Plants vs. Zombies - Tower defense | |
Monster's Inc Run - Platformer | |
Bad Piggies - Puzzler | |
Bug Princess 2 - Bullet hell shmup | |
EDGE EX - Puzzler |
This file contains hidden or 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 | |
while test $# -gt 0 | |
do | |
case $1 in | |
# Normal option processing | |
-h | --help) | |
# usage and help | |
;; | |
-v | --version) |