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
sudo apt-get install git; | |
sudo apt-get install python g++ make; | |
sudo apt-get install python-software-properties; | |
sudo apt-get install g++ curl libssl-dev apache2-utils; | |
sudo apt-get update; | |
sudo add-apt-repository ppa:chris-lea/node.js; | |
sudo apt-get update; | |
sudo apt-get install nodejs; |
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
// install the 'request' package first with 'npm install request' | |
var request = require('request'); | |
// replace with your Keen IO project token | |
var projectToken = "501999234-FAKE-PROJECT-ID"; | |
// create a sample JSON event for an event collection | |
var eventCollection = "meals"; | |
var sampleEvent = { | |
username: "ralph", |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'), | |
http = require('http'), | |
path = require('path'), | |
twilio = require('twilio'), | |
radish = "\"In all my days as a turnip farmer, I have not yet experienced the love, of a white radish!\", thought the farmer as he sighed then walked up the dusty warn trail, towards the barn. How long had he been there? One hour? Two Hours? The sun was shining bright and warm against the old man's skin and that's when he drifted off to sleep."; | |
persona = { |
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
/*global module:false, require:false*/ | |
var path = require('path'), | |
lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var folderMount = function folderMount(connect, point) { | |
return connect.static(path.resolve(point)); | |
}; | |
module.exports = function(grunt) { |
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
/** | |
* iOS 6 style switch checkboxes | |
* by Lea Verou http://lea.verou.me | |
*/ | |
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */ | |
position: absolute; | |
opacity: 0; | |
} |
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
/** | |
objectives = ['seek', 'attack', 'evade', 'shit'] | |
**/ | |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
this.rotate = 180; | |
this.direction = 1; |
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
define([ | |
// Application. | |
'app', | |
'modules/section' | |
], function (app, Section) { | |
var Router = Backbone.Router.extend({ | |
routes : { | |
'' : 'index', | |
'*route' : 'allRoutes' |
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
// responds to /users (returns users) | |
// post to { me: 'name', oldest: oldestId } to /oldest (checks against the oldest) | |
var http = require('http'), | |
url = require('url'), | |
users = require('./users.json'), | |
options = { port: 8000 }, | |
oldest = users[0]; | |
for (var i in users) { |
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
// http://clickingbad.nullism.com/ | |
var rwmT, | |
rwmCnt = 1, | |
rwmLoop = function () { | |
if (rwmCnt%3 === 0) { | |
gm.do_sell_click(); | |
rwmCnt = 0; | |
console.log('selling') | |
} else { |
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 | |
# TESTFLIGHT_UPTOKEN and TESTFLIGHT_TEAMTOEKN are environment variables | |
# you can replace them directly with your tokens, but a environment is cooler. | |
NOTES="you can have multi-line notes here | |
that will upload with all ipa files" | |
makeCall(){ | |
curl http://testflightapp.com/api/builds.json \ |