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 | |
NPM=/usr/local/bin/npm | |
git clone https://github.com/isaacs/nave.git | |
./nave/nave.sh usemain v0.8.9 | |
$NPM install -g mocha | |
$NPM install -g chai | |
$NPM install -g xunit-file | |
$NPM install -g jshint |
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 Main() {} | |
// override the default input to update on blur | |
angular.module('app', []).directive('ngModelOnblur', function() { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
link: function(scope, elm, attr, ngModelCtrl) { | |
if (attr.type === 'radio' || attr.type === 'checkbox') return; |
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 () { | |
new Bill(input); | |
}).should.throw(Error); |
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
db.device.find({"deviceTokens":{"$not":{"$size":0},$exists: 1}}); |
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
PATH=$PATH:/usr/local/bin | |
PHANTOMJS_BIN=/usr/local/bin/phantomjs |
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/php | |
<?php | |
/** | |
* Put this in your ./scripts folder | |
* Make it executeable (chmod +x) | |
* | |
* Usage: | |
* Edit the interesting bits below put in your own keys and such | |
* ./upload2youtube.php |
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 bash | |
set -o errtrace | |
set -o errexit | |
facter_version=$1 | |
puppet_version=$2 | |
target_volume=$3 |
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
all: test | |
test: ; | |
@export NODE_PATH=/usr/local/lib/node_modules; \ | |
mocha | |
test-w: ; | |
@export NODE_PATH=/usr/local/lib/node_modules; \ | |
mocha -w |
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 config = require('/modules/config'); /// Holds information on amazonkey and secret | |
/** | |
* | |
* UTF-8 data encode / decode | |
* http://www.webtoolkit.info/ | |
* | |
**/ | |
var Utf8 = { |
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
# Author: Claudio Marforio | |
# e-mail: marforio@gmail.com | |
# date: 1.05.2010 | |
# Script to make static libraries (jpeg + png) and ImageMagick | |
# the libraries will be conbined into i386+arm.a static libraries | |
# to be used inside an XCODE project for iPhone development | |
# If everything works correctly you will end up with a folder | |
# on your ~/Desktop ready to be imported into XCode |