$ curl get.pow.cx | sh
$ curl -O https://raw.github.com/gist/4129846/7ae1709453a8a19ce9c030bf41d544dd08d96d85/php.rb
$ mv php.rb brew --prefix
/Library/Formula
// Load live.js on local envs only | |
// Make sure the path is right and your dev env passes the test. | |
/* Delete these characters to disable it temporarily -> */ | |
(function() { | |
if(/^https?:\/\/(localhost|127.0.0.1|(dev|test).*?)\/|^file:\/\/\//.test(document.location.href)) { | |
var live = document.createElement('script'); | |
live.src = 'js/live.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(live, s); |
var Robot = function(robot){ | |
robot.turnLeft(robot.angle % 90); | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
if (robot.parentId) { | |
robot.ahead(1); | |
robot.turnGunRight(1); | |
} | |
else { |
var Robot = function(robot){ | |
robot.turnLeft(robot.angle % 90); | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
if (robot.parentId) { | |
robot.ahead(1); | |
robot.turnGunRight(1); | |
} | |
else { |
"questionA": { | |
"type": "object", | |
"properties": { | |
"answer": { | |
"type": "string", | |
"minLength": 1, | |
"enum": ["Yes", "No"] | |
} | |
} | |
} |