Skip to content

Instantly share code, notes, and snippets.

View fmobus's full-sized avatar

Felipe Mobus fmobus

  • Porto Alegre, RS
View GitHub Profile
@fmobus
fmobus / robot.js
Created December 5, 2012 16:38 — forked from Shipow/robot.js
Shipow#001
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@fmobus
fmobus / robot.js
Created December 6, 2012 01:18 — forked from cgardner/robot.js
derp
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 {
#!/bin/bash
function white {
echo -e "\033[37m$1\033[0m"
}
function red {
echo -e "\033[31m$1\033[0m"
}