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
iMac12:helloworld erik$ jitsu deploy | |
info: Welcome to Nodejitsu eazimmerman | |
info: jitsu v0.12.10-2, node v0.10.5 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
warn: **WARNING** Do not use multiple level subdomains, they will be going away soon! | |
info: Skipping require-analyzer because noanalyze option is set | |
warn: **WARNING** Do not use multiple level subdomains, they will be going away soon! | |
info: Skipping require-analyzer because noanalyze option is set | |
warn: Local package version appears to be old |
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 s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(1); | |
}; | |
function guid() { | |
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | |
s4() + '-' + s4() + s4() + s4(); | |
} |
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 neighbor = {"none":0,"same":1,"other":2}; | |
var tileSheetDataMap = function(){ | |
this.map = {}; | |
}; | |
tileSheetDataMap.prototype.addCell = function(data) { | |
var key = data.n + "," + data.e + "," + data.s + "," + data.w; | |
this.map[key] = this.map[key] || []; | |
this.map[key].push([data.x, data.y]); |
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
/* | |
Add a random song to your Grooveshark playlist | |
Clears queue (not very fast) then adds the first song using a random songID that is valid | |
*/ | |
(function() { | |
//clear current queue | |
function removeSong(cb) { | |
w = window.Grooveshark.setSongStatusCallback(); | |
if (w && w.status != "none") { |
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
<!DOCTYPE> | |
<html> | |
<head> | |
<style> | |
input { | |
width:60px; | |
transition-duration:0.5s; | |
} | |
input:focus { | |
width:200px; |
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 stackTrace() { | |
var err = new Error(); | |
return err.stack; | |
} |
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
// create zz namespace | |
var zz = zz = zz || {}; | |
// create zz.util namespace | |
zz.util = zz.util = zz.util || {}; | |
// create zz.util.keyboard prototype | |
zz.util.keyboard = cc.Class.extend( /** @lends zz.util.keyboard# */ { | |
_keys: {}, | |
/** | |
* Constructor | |
*/ |
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
<html> | |
<body> | |
<!-- begin libraries --> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script> | |
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// |
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
ezimmerman@qdidev:~$ cat test.py | |
class FooBar(object): | |
derp = 0 | |
baz = 0 | |
def __init__(self): | |
FooBar.derp += 1 | |
self.derp += 1 | |
self.baz += 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
arr = [1,2,3,1,1,2,1,1] | |
class jump_path(): | |
def __init__(self, target_array = None, spots = []): | |
#print('new path!') | |
self.target = target_array | |
self.spots = spots | |
def hops(self): | |
return len(self.spots)-1 | |
def next_hops(self): |
OlderNewer