- 作
@voluntas
- バージョン
1.0.5
- url
2014 年 9 月 26 日に行われた gumistudy#20 の発表資料です
@voluntas
1.0.5
2014 年 9 月 26 日に行われた gumistudy#20 の発表資料です
2014-05-07
0.0.1
@voluntas
概要
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"net/url" | |
"strings" | |
) |
#coding:utf-8 | |
import random | |
def amida_shuffle(line_num, exchange_num): | |
lines = range(line_num) | |
for i in xrange(exchange_num): | |
p = random.randrange(line_num - 1) | |
lines[p], lines[p+1] = lines[p+1], lines[p] | |
return lines |
import re | |
from saying.exceptions import ApplicationException | |
from itertools import chain | |
class DSLSyntaxError(ApplicationException): | |
pass | |
def format(handler, text, message): | |
var = { | |
u'sender': lambda: resolve_handle(message.Sender.Handle), |
it was a bright cold day in April , and the clocks were striking thirteen . Winston Smith , his chin nuzzled into his breast in an effort to escape the vile wind , slipped quickly through the glass doors of Victory Mansions , though not quickly enough to prevent a swirl of gritty dust from entering along with him . intr - o zi senina si friguroasa de aprilie , pe cind ceasurile bateau ora treisprezece , Winston Smith , cu barbia infundata in piept pentru a scapa de vintul care - l lua pe sus , se strecura iute prin usile de sticla ale Blocului Victoria , desi nu destul de repede pentru a impiedica un virtej de praf si nisip sa patrunda o data cu el . | |
the hallway smelt of boiled cabbage and old rag mats . holul blocului mirosea a varza calita si a presuri vechi . | |
at one end of it a coloured poster , too large for indoor display , had been tacked to the wall . It depicted simply an enormous face , more than a metre wide : the face of a man of about forty - five , with a heavy black moustache and ruggedly ha |
from twisted.web import client | |
from twisted.internet import reactor, defer | |
from lxml import etree | |
from StringIO import StringIO | |
import re | |
import os | |
save_dir = "~/.video/tube8/" | |
base_url = "http://www.tube8.com" | |
download_re = re.compile("so.addVariable\('videoUrl',\s*'([\w\d.:/_]*)'\);", re.M) |