Skip to content

Instantly share code, notes, and snippets.

View cezarsa's full-sized avatar

Cezar Sá Espinola cezarsa

  • Brasília - DF / Brazil
  • 12:52 (UTC -03:00)
View GitHub Profile
@cezarsa
cezarsa / dabblet.css
Created September 26, 2012 16:57
Untitled
div {
width: 100px;
height: 40px;
background: crimson;
margin: 100px;
/*border: 10px solid navy;*/
border-width: 10px;
border-style: solid;
border-image: linear-gradient(top, #dcdcdc 0%,#dadada 16%,#c9c9c9 76%,#b6b6b6 100%);
@cezarsa
cezarsa / dabblet.css
Created September 26, 2012 18:57
Untitled
.area {
background: crimson;
width: 200px;
height: 200px;
position: relative;
}
.a {
position: absolute;
@cezarsa
cezarsa / robot.js
Created November 25, 2012 20:41
LameRobot
//FightCode can only understand your robot
//if its class is called robotClass
var robotClass = function(){
};
robotClass.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
robot.rotateCannon(360);
@cezarsa
cezarsa / robot.js
Created November 28, 2012 16:03
Simple Wall Robot
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
robot.turnGunRight(90);
robot.clone();
this.direction = 1;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(1);
if (robot.parentId) {
@cezarsa
cezarsa / robot.js
Created November 29, 2012 03:54
Ahoy Bot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@cezarsa
cezarsa / robot.js
Created November 29, 2012 04:03
Evil Chatter
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@cezarsa
cezarsa / robot.js
Created November 29, 2012 23:07
Dummy bot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@cezarsa
cezarsa / robot.js
Created November 30, 2012 01:54
test
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@cezarsa
cezarsa / robot.js
Created November 30, 2012 02:29
sitting bot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
//robot.ahead(100);