Skip to content

Instantly share code, notes, and snippets.

View siminino's full-sized avatar

Victor de Oliveira Areas siminino

View GitHub Profile
>> import random
>>
>> def possibilidade(respostas_do_guru):
>> contador = 0
>> while True:
>> resposta = random.choice(respostas_do_guru)
>> contador += 1
>> if resposta == 'sim':
>> return '1 em %d' % contador
>>
@siminino
siminino / robot.js
Created December 3, 2012 13:46
SimininoDroid #1
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) {
@siminino
siminino / robot.js
Created December 3, 2012 13:52
W00t #1 YEAH!!!! (Zolmesiter)
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) {