This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Robot(robot) {} | |
// well, we need to do something... | |
// whenever our robot is idle, this method gets called. | |
Robot.prototype.onIdle = function(ev) { | |
var robot; | |
robot = ev.robot; | |
robot.ahead(50); | |
robot.turn(90); | |
robot.rotateCannon(10); | |
robot.rotateCannon(-20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot){ | |
//robot.clone(); | |
this.robotOptions = { | |
clone: { | |
canStartFight: false, | |
goBackOnCollision: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UTILITIES | |
group :development do | |
gem 'pry-rails' | |
gem 'better_errors' | |
gem 'binding_of_caller' | |
# continuous integration | |
gem 'guard-rails' | |
gem 'guard-jasmine' | |
gem 'guard-rspec' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== InfoDic FREE | |
https://play.google.com/store/apps/details?id=br.walisson.inglesparainformaticafree#?t=W251bGwsMSwxLDIxMiwiYnIud2FsaXNzb24uaW5nbGVzcGFyYWluZm9ybWF0aWNhZnJlZSJd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule BinarySearch do | |
def guess(number, a..b), do: guess(number, a..b, calc_half(a, b)) | |
def guess(number, _, number) do | |
IO.puts("Is it #{number}") | |
IO.puts(number) | |
end | |
def guess(number, _..b, my_guess) when number > my_guess do | |
IO.puts("Is it #{my_guess}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Swap | |
ACC | |
KG | |
Res2770 | |
Concessão Garantias | |
FIANÇA | |
CÂMBIO | |
Conta Garantida - PN | |
Crédito Rural - PN | |
SBLC |