Skip to content

Instantly share code, notes, and snippets.

View nbluis's full-sized avatar
:octocat:
I may be slow to respond.

Eduardo Bohrer nbluis

:octocat:
I may be slow to respond.
View GitHub Profile
@nbluis
nbluis / robot.js
Created December 4, 2012 13:41 — forked from thesebas/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();
@nbluis
nbluis / robot.js
Created December 4, 2012 13:24 — 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();
@nbluis
nbluis / route.py
Created May 15, 2011 16:33 — forked from henriquebastos/route.py
Route is a better urls function.
# -*- encoding: utf-8 -*-
# Usage:
# urlpatterns += patterns('',
# route(r'^$', GET='getview', POST='postview', name='viewname'),
# )
#
from django.http import Http404
from django.core.urlresolvers import RegexURLPattern, get_callable
def discover_view(view, prefix=''):