Visualização dos microdados do INEP.
This file contains hidden or 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
cesarkawakami@pandambp13r:~/temp/Asgaf [crap] | |
$ cat left_file.txt | |
relogio | |
poster | |
banana | |
cesarkawakami@pandambp13r:~/temp/Asgaf [crap] | |
$ cat right_file.txt | |
banana | |
colete |
This file contains hidden or 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
with open("right_file.txt", "r") as f: | |
right_set = set(f.read().split()) | |
with open("left_file.txt", "r") as f: | |
for line in f: | |
if line.strip() not in right_set: | |
print line.strip() |
This file contains hidden or 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
import string | |
def product(*vectors): | |
if len(vectors) == 0: | |
yield () | |
else: | |
for element in vectors[0]: | |
for tail in product(*vectors[1:]): | |
yield tuple(element) + tail |
This file contains hidden or 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
application: sample | |
version: one | |
runtime: go | |
api_version: go1 | |
skip_files: | |
- script.go | |
handlers: |
This file contains hidden or 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
def func1(x): | |
print(x) | |
func2(x + 1) | |
print(x) | |
def func2(x): | |
print(x) | |
func1(10) |
This file contains hidden or 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
import collections | |
class DumbMap(collections.MutableMapping): | |
def __init__(self): | |
elements = [] | |
def __getitem__(self, key): | |
for k, v in self.elements.iteritems(): | |
if k == key: | |
return v | |
else: |
This file contains hidden or 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
import random | |
import requests | |
import string | |
import sys | |
combining = [] | |
combining += [unichr(x) for x in xrange(0x0300, 0x0370)] | |
# combining += [unichr(x) for x in xrange(0x1dc0, 0x1de7)] | |
s = u"" |
This file contains hidden or 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
import pyramid_zodbconn | |
import ZODB.serialize | |
def unwrap(request): | |
conn = pyramid_zodbconn.get_connection(request) | |
db = conn.db() | |
storage = db.storage | |
storage = getattr(storage, "_BlobStorage__storage", storage) |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAmQ/rFiiq8EeN2eXpZ06umK+zgXLY1J6+cKl/Uiobp46Tok4tZjdFGjyerUgFh7X+H+m6OQULpTJGwwpHvwg4cxOhq7TDyN/+5ypxS2KccxRkBAEEPuHia8o0VsddQCISwV+FBf49exdeha++SL10da8gmx/u3W/LaAopItKLbcQQClBNdHhsuSesx6NeECsPehCZC4Hvf2o614A3KtFcOOI421oCwtcu19r28qzlnTcBTJDeAY/KT7EVXahBVzd3Ve9cdyoaW2dzyu8QsAvQsgMeyc3BGDlhNyBUz/4sEDd7SAHW4Jop+5uTeBQwOYI3sfygMckjNudW+2VtrJAlrQ== |