- I will watch a few AGI videos each week
- IPython in-depth: high-productivity interactive and parallel python
- I starting to study maths
- Math for programmer primers
Saturday, 4 May 2013
May Study
Saturday, 30 March 2013
April Study
- I am begining to study OpenCV
- I finished Html5 and CSS3
- I study Bitcoin
- I am evaluationg if I should use Kivy
- I am reading this blog (postmasculine)
- I am studying Cryptography
- I am studying Web Intelligence and Big Data
- I am studying Image processing
- I am beginning the HSK4 wordlist!!!
- I am switching to the Intermediary level on Chinesepod.com!!!
- I finished backbone.js
- I finished SASS
- I finished Coffeescript
Thursday, 28 March 2013
Python Challenge 6
import zipfile
seed, filelist=(90052,[])
while True:
filelist.append('%s.txt'%seed)
seed=open('./channel/%s.txt'%seed,'r').read().split(' ')[-1]
if not seed.isdigit():break
zip_, answer = (zipfile.ZipFile('./channel.zip'),'')
for file_ in filelist:
answer += zip_.getinfo(file_).comment
cleaned_list=[char for char in list(answer) if char.isalpha()]
print ''.join([x for i,x in enumerate(cleaned_list) if x not in cleaned_list[i+1:]]).lower()
Python Challenge 5
import pickle
file_=open('output.txt','w')
for list_ in pickle.loads(pickle_.strip('\n')):
output=''
for char,rep in list_:
output+=char*rep
file_.write('%s\n'%output)
file_.close()
Python Challenge 4
import urllib
seed, url=12345,'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing='
while True:
page=urllib.urlopen('%s%s'%(url,seed)).read()
if page.find('Divide')!=-1:seed=str(int(seed)/2)
else:seed=page[-5:].split(' ')[-1]
if not seed.isdigit():break
print page
Python Challenge 3
i, index, output, test_case = (0,3,'', ['islower','isupper','isupper','isupper','islower','isupper','isupper','isupper','islower'])
for letter in input_[3:-3]:
i, target= (-4,'')
for test in test_case:
if not getattr(input_[index+i],test)():break
if i==0:target=letter
if i==4:output+=target
i+=1
index+=1
print output
Python Challenge 2
print ''.join(char for char in input_ if char.isalpha())
Subscribe to:
Posts (Atom)