I hereby claim:
- I am fmobus on github.
- I am fmobus (https://keybase.io/fmobus) on keybase.
- I have a public key ASAE33NEN7hQgo7We1MAYHyTunR8kZhP0E7HUuTRE-mVwgo
To claim this, I am signing this object:
# disclaimer | |
# essa implementação é um tanto presa a funções da biblioteca do django | |
# basicamente por pura preguiça/conveniência minha | |
# | |
from django.utils.encoding import smart_str, force_unicode | |
import unicodedata | |
def remove_accents(value): |
DEVICE = "/dev/lp0"; | |
STX = chr(2); | |
CR = chr(13); | |
LF = chr(10); | |
DEFAULTS = { | |
'ori': 4, | |
'font': 2, | |
'mh': 2, | |
'mv': 2, |
I hereby claim:
To claim this, I am signing this object:
Verifying that +fmobus is my blockchain ID. https://onename.com/fmobus |
class Animal: | |
def vocalize(self): | |
print 'my vocalization' | |
class Cat(Animal): | |
def vocalize(self): | |
print 'meow' | |
class Dog(Animal): | |
def vocalize(self): |
function cannonToAngle(r, angle) { | |
diff = angle - r.cannonAbsoluteAngle; | |
r.rotateCannon(diff); | |
} | |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
this.wallmode = false; |
var rand = function(upto) { | |
return Math.random() * upto | |
} | |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
this.enemy = {} | |
this.mode = 1 | |
}; |
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.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(); | |
}; |