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 os | |
import argparse | |
import requests | |
import progressbar | |
def main(): | |
parser = argparse.ArgumentParser(description='All your MUBI are belong to us.') | |
parser.add_argument('film_id', type=int) | |
parser.add_argument('resolution', choices=('360p', '480p', '640w', '720w', '1280w')) | |
parser.add_argument('output_file') |
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
python -c "import sys, random, pattern.en.wordlist; print(' '.join(w+' '+random.choice(pattern.en.wordlist.PROFANITY) if len(w) > 4 and random.random() > 0.8 else w for w in sys.stdin.read().split()))" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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 multiprocessing as mp | |
data1 = None | |
data2 = None | |
def load_data(): | |
global data1, data2 | |
data1 = 1 # read some data | |
data2 = 1 # read more data |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python | |
import sys | |
import argparse | |
import re | |
import pylab | |
import random | |
import socket | |
from StringIO import StringIO | |
from base64 import b64encode | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer |
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 re | |
pattern = re.compile('\[\w+.*? (.*?)\]') | |
with open('stuff.txt') as f: | |
assert pattern.sub(r'\1', s) == s |
NewerOlder