Skip to content

Instantly share code, notes, and snippets.

View fmobus's full-sized avatar

Felipe Mobus fmobus

  • Porto Alegre, RS
View GitHub Profile

Keybase proof

I hereby claim:

  • I am fmobus on github.
  • I am fmobus (https://keybase.io/fmobus) on keybase.
  • I have a public key ASAE33NEN7hQgo7We1MAYHyTunR8kZhP0E7HUuTRE-mVwgo

To claim this, I am signing this object:

Verifying that +fmobus is my blockchain ID. https://onename.com/fmobus
[alias]
st = status
co = checkout
br = branch
ci = commit
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
diff = diff --color
ap = add -p
dc = diff --cached
d = diff
#include <stdio.h>
#define _STR(X) #X
#define STR(X) _STR(X)
#define exec(X)
exec('def DECL(x):global s;s=x')
#define DECL(X) X
#define s \
DECL("#include <stdio.h>\n#define _STR(X) #X\n#define STR(X) _STR(X)\n#define exec(X)\nexec('def DECL(x):global s;s=x')\n#define DECL(X) X\n#define s \\\nDECL(%s)\n#undef exec\n#define exec(X) int main(){printf(s,STR(s));return 0;}\nexec('print s%%repr(s),')\n")
#undef exec
#define exec(X) int main(){printf(s,STR(s));return 0;}
@fmobus
fmobus / gist:9471650
Created March 10, 2014 18:50
detectando til em palavras
# encoding: utf-8
import unicodedata
import sys
from codecs import open
sys.stdout = open("/dev/stdout","w","utf-8");
TIL = unicodedata.lookup('COMBINING TILDE')
def tem_til(v):
#!/bin/bash
function white {
echo -e "\033[37m$1\033[0m"
}
function red {
echo -e "\033[31m$1\033[0m"
}
class Animal:
def vocalize(self):
print 'my vocalization'
class Cat(Animal):
def vocalize(self):
print 'meow'
class Dog(Animal):
def vocalize(self):
@fmobus
fmobus / robot.js
Created December 7, 2012 21:36
angle warrior
function cannonToAngle(r, angle) {
diff = angle - r.cannonAbsoluteAngle;
r.rotateCannon(diff);
}
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.wallmode = false;
@fmobus
fmobus / gist:4227356
Created December 6, 2012 19:14
p.o.g. warrior
We couldn’t find that file to show.
@fmobus
fmobus / robot.js
Created December 6, 2012 11:49
Le Rândom
var rand = function(upto) {
return Math.random() * upto
}
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.enemy = {}
this.mode = 1
};