Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cv
cv / gist:751
Created July 22, 2008 09:13 — forked from anonymous/gist:698
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

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?

@cv
cv / robot.js
Created December 5, 2012 22:45 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
//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();