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
0> how long before the next flight to Alice Springs? | |
1> wie lang vor dem folgenden Flug zu Alice Springs? | |
2> how long before the following flight to Alice jump? | |
3> wie lang vor dem folgenden Flug zu Alice springen Sie? | |
4> how long before the following flight to Alice do you jump? |
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
# símbolos # | |
esi, xii = symbols('esi xii') | |
Rsdi = As*Es*esi | |
Rcdi = 0.85*fcd*b*0.8*xii | |
Rlsdi = Als*Es*((xii - dll)/(d - xii))*esi | |
faux1 = Rsdi - Rcdi - Rlsdi | |
esi = solve(faux1, esi)[0] |
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 matplotlib.pyplot as pl | |
import matplotlib.animation as animation | |
import numpy as np | |
x_min, x_max = 0, 500 | |
y_min, y_max = 0, 500**3 | |
def f1(x): | |
return x**3 |
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 sklearn.svm import SVC | |
import numpy as np | |
from matplotlib import pyplot as pl | |
X = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] | |
y = [0, 1, 2, 0, 1] | |
model = SVC() | |
model.fit(X, y) |
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 scikits.audiolab import Sndfile | |
f = Sndfile('01-Ideologia.flac', 'r') | |
# num de channels | |
nc = f.channels | |
# lê 10k frames de 2 canais | |
# funciona como generator, vai avançando | |
data = f.read_frames(10000) |
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 urllib2 | |
caps = range(1, 35) | |
url_template = 'http://www.dspguide.com/CH%d.PDF' | |
file_template = 'ch%d.pdf' | |
for cap in caps: | |
pdf = urllib2.urlopen(url_template % cap) |
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 sys | |
import urllib2 | |
import re | |
from pytube import YouTube | |
video_RE = re.compile(r'(?<=data-video-id=").*?(?=")') | |
BASE = "https://www.youtube.com/watch?v=%s" | |
yt = YouTube() |
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:83672b62a61a5fd0972e682a5f0abbdc50de88cb2c52348a4bae355fc1e4a49c" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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 datetime | |
infile = open(input.name,"r") | |
lines = infile.readlines() | |
number_of_lines = len(lines) | |
lista_data, lista_apple, lista_mic = [], [], [] | |
for line in lines[:-1:-1]: |
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 os | |
for dir in os.walk('.'): | |
os.system('manga-downloader --pdf "%s"' % dir[0]) |
OlderNewer