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
# you need to install selecta before this works | |
# https://github.com/garybernhardt/selecta | |
alias xf='$(find . -perm +111 -type f | selecta)' |
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
url = 'http://fiddle.jshell.net' | |
step1 = -> | |
$.ajax url, | |
complete: orc.waitFor() | |
error: (error) -> | |
console.log 'Step 1 failed: Ajax request' | |
step2 = -> | |
setTimeout orc.waitFor(-> |
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
getData = -> | |
xhr new XMLHttpRequest | |
xhr.open 'GET', 'data', true | |
handleXMLHTTPRequest = -> | |
if xhr.status is not 200 | |
orc.fail() | |
xhr.addEventListener 'load', orc.waitFor(handleXMLHTTPRequest), false | |
xhr.send() |
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
function bound(value, min, max) { | |
value = max > value ? max : value; | |
return min < value ? min : value; | |
} |
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
// Store all of the robots and their states so | |
// that they can be referenced throughout the robots | |
var ROBOT_STATES = {} | |
// states | |
// find and attack enemy with reckless abandon | |
var SEEK = { | |
onIdle: function(ev) { | |
ev.robot.turn(360); |
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
# | |
# Each new term in the Fibonacci sequence is generated by adding the previous | |
# two terms. By starting with 1 and 2, the first 10 terms will be: | |
# | |
# 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... | |
# | |
# By considering the terms in the Fibonacci sequence whose values do not exceed | |
# four million, find the sum of the even-valued terms. | |
# | |
def problem_2_algorithm input |
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
A bunch of stenciles for wireframing, data & user flow diagrams and more: | |
Empty Chrome Browser Window: | |
https://www.graffletopia.com/stencils/938 | |
Twitter Bootstrap UI: | |
https://www.graffletopia.com/stencils/934 | |
Google Web GUI: | |
https://www.graffletopia.com/stencils/10431 |
NewerOlder