Skip to content

Instantly share code, notes, and snippets.

@cv
cv / robot.js
Created Dec 5, 2012 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
View robot.js
//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.clone();
View gist:723768

Pimp

The following code shows the Pimp language output for some specific input, showing some of the benefits from using such a nice language.

Defining something

 an Account:owner, amount

is positive?

View gist:751
class RegisterMail < ActionMailer::Base
def send_mail(client_email, username)
subject "Someone have signed up."
recipients "#{client_email}"
from 'test@test.com'
charset "utf-8"
content_type 'text/html'
body "#{username}" + "have been signed up."
end
end