View FOO
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
11 | |
# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD# HELLO WORLD |
View symbolencoder.py
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
# import elements database | |
from periodic import elements | |
# Exclude last 6 new elements, which have 3 letters provisional names | |
# And parse everything into a tuples array | |
elements = [(element.symbol, element.name) for element in elements[:-6]] | |
def print_elements(elements_array): | |
"""Prints an array of elements with brackets, and prints fake elements as normal text""" |
View wv.py
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 bs4 import BeautifulSoup | |
s = '''STRING CON TODO EL HTML CONTENIDO EN LA ETIQUETA <div class="message-list"...> de http://web.whatsapp.com/''' | |
s = BeautifulSoup(s) | |
s = s.findAll('div', {'class':'bubble bubble-text'}) | |
votes = {} | |
for l in s: | |
try: |
View whatsapp votes
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 bs4 import BeautifulSoup | |
s = '''STRING CON TODO EL HTML CONTENIDO EN LA ETIQUETA <div class="message-list"...> DE http://web.whatsapp.com/ DEL GRUPO CON TODOS LOS MENSAJES CARGADOS''' | |
s = BeautifulSoup(s) | |
s = s.findAll('div', {'class':'bubble bubble-text'}) | |
votes = {} | |
for l in s: | |
try: |
View particledope.py
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/env python | |
''' | |
Controls: | |
Adding particles (and it's charges): | |
left button -> (+) | |
right button -> (-) | |
middle button -> ( ) | |
SPACE : Play/pause |
View indexer.py
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/env python | |
# -*- coding: utf-8 -*- | |
import sunburnt | |
import nltk | |
import urlparse | |
from StringIO import StringIO | |
import re | |
from color import * | |
import threading | |
import time |
View format_number.py
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
# Original code from: http://stackoverflow.com/questions/5807952/removing-trailing-zeros-in-python | |
import decimal | |
import random | |
def format_number(num): | |
try: | |
dec = decimal.Decimal(num) | |
except: | |
return 'bad' | |
tup = dec.as_tuple() |
View re_email.py
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
re.match(r"^[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*$", email) |
View gh_userchecker.py
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 httplib2 import Http | |
# Exemple of usernames list (all combinations of 3 letters from a to z): | |
from string import letters | |
letters = letters[:26] | |
usernames = [ a+b+c for a in letters for b in letters for c in letters] | |
h = Http() |