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
root = exports ? this | |
Backbone = require 'backbone' | |
class Kit extends Backbone.Model | |
defaults: | |
'hits': 0 | |
initialize: () -> | |
@set 'score', @getScore() | |
@on 'change:hits', -> |
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
config defaultToCurrentScreen true | |
# Shows app icons and background apps, spreads icons in the same place. | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true | |
# Monitor Aliases | |
alias mon-laptop 0 | |
alias mon-NEC 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
alias l="ls -al" | |
alias c="cd" | |
alias b="cd .." | |
alias bb="cd ../.." | |
# application aliases | |
alias v="vim" | |
alias vi="vim" |
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
# SublimeText project files | |
*.sublime-workspace | |
*.sublime-project | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
Icon | |
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 YUITest = require('yuitest'); | |
function trim(str) { | |
return str.replace(/^\s+|\s+$/g, ''); | |
} | |
var testCase = new YUITest.TestCase({ | |
name: "Trim Unit Tests", | |
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
// Copy and paste this code directly into you JS file | |
// access the first function via fizzBuzzA(num) | |
// example: | |
// var result = fizzBuzzA(15); | |
eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+c+'\\b','g'),k[c])}}return p}('9 8(0){2(7 0!==\'4\'){1 10}2(0%3&&0%6){1 0}2(0%5){1\'11\'}2(0%3){1\'12\'}1\'13\'}',10,14,'num|return|if||number|||typeof|fizzBuzzA|function|false|fizz|buzz|fizzbuzz'.split('|'))) | |
// access the second function via fizzBuzzB(num) | |
// example: |
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 moveForward (speed, duration, cb) { | |
client.front(speed); | |
setTimeout(function () { | |
client.stop(); | |
cb(); | |
}, duration); | |
} | |
function rotateTo(finalDirection, spinDirection, cb) { |
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 arDrone = require('ar-drone'); | |
var client = arDrone.createClient(); | |
var direction = "unset"; | |
var altitude = 0; | |
client.config('general:navdata_demo', 'FALSE'); | |
client.on('batteryChange', function (data) { |
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
# Front-end Architecture Outline | |
## General | |
### VCS | |
Git | |
Subversion | |
... |
OlderNewer