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
from django.template.defaultfilters import slugify | |
def slugify_file_name(filename): | |
''' | |
Slugify a file name | |
Use case: | |
>>> slugify_file_name('/home/diofeher/R5drgébvśdv_SVSvxpoj x,se.jpg') | |
u'/home/diofeher/r5drgebvsdv_svsvxpoj-xse.jpg' | |
''' |
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
++++++++++[>+++++++>++++++++++>+++++++++++>++++++++++++>+++<<<<<-]>+++.>>>>++.<<<++++++++.>+.+++++++.<-------.>>>.<+.<-------.++++++.>>+.<<<<<+++++++++++. |
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
#include<stdio.h> | |
int main() { | |
unsigned long int a, b; | |
while(scanf("%lu %lu", &a, &b)==2) { | |
if (a > b){ | |
printf("%lu\n", a - b); | |
} | |
else { | |
printf("%lu\n", b - a); |
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
#!/usr/bin/python | |
# -*- coding : utf-8 -*- | |
""" | |
@author: Diogenes Augusto Fernandes Herminio <[email protected]> | |
""" | |
# Director | |
class Director(object): | |
def __init__(self): | |
self.builder = None |
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
#!/usr/bin/python | |
# -*- coding : utf-8 -*- | |
""" | |
@author: Diogenes Augusto Fernandes Herminio <[email protected]> | |
""" | |
# Product | |
class Churrasco(object): | |
def __init__(self): | |
self.fala = None |
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
#!/usr/bin/python | |
# -*- coding : utf-8 -*- | |
""" | |
@author: Diogenes Augusto Fernandes Herminio <[email protected]> | |
""" | |
from abc import ABCMeta | |
#Abstract Factory | |
class StandardFactory(object): |
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
Jogos que já zerei: | |
* SNES | |
- Biker Mace From Mars | |
- The Legend of Zelda | |
* Mega Driver | |
* PS1 |
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
Movies: | |
Resident Evil | |
Hot Tube Time Machine |
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
#coding:utf-8 | |
class Desktop(object): | |
""" | |
Computador novinho, ainda está todo embalado. | |
""" | |
def __init__(self, preco): | |
self.preco = preco or 'a combinar' | |
self.monitor = 'Monitor AOC Widescreen 19'' 912Vwa' | |
self.cpu = 'Daten' | |
self.extras = {'mouse':True, 'mousepad': True, 'teclado': True} |
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
diofeher$ brew install -vd pango --config | |
==> Build Environment | |
CC: /usr/bin/cc => /usr/bin/gcc-4.2 | |
CXX: /usr/bin/c++ => /usr/bin/c++-4.2 | |
LD: /usr/bin/cc => /usr/bin/gcc-4.2 | |
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe | |
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe | |
MAKEFLAGS: -j2 | |
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/pango-1.28.1.tar.bz2 | |
File already downloaded and cached to /Users/diofeher/Library/Caches/Homebrew |
OlderNewer