User:Darija Medic/technicalcourse/2nd

From XPUB & Lens-Based wiki
< User:Darija Medic‎ | technicalcourse
Revision as of 20:34, 23 September 2010 by Migratebot (talk | contribs) (Created page with " '''all the totally wasted of brothers karamazov:''' <source lang="python"> import re text = open("karamazov.txt").read() ly = re.findall(r"\b[a-z]+ly\b", text) ed = re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

all the totally wasted of brothers karamazov:

import re
text = open("karamazov.txt").read()

ly = re.findall(r"\b[a-z]+ly\b",  text)
ed = re.findall(r"\b[a-z]+ed\b",  text)

for (l,e) in zip(ly, ed):
    print l, e

manifestly included

only followed

gladly winged

solely served

family classed

rarely stereotyped

merrily eliminated

dearly devised

anxiously modernized

badly retained

suddenly lived

slowly carried

generally contained

easily bed

horribly bed

easily called

badly reached

gently led

loudly looked

slowly reached

lonely baked

loudly plowed

nearly burned

calmly painted

dismally blistered

gently washed

lovely changed

stately red

eagerly smiled

oddly startled

sweetly reached

nearly looked

stiffly laughed

possibly worked

evidently looked

calmly saved

only twinkled

silently played

entirely played

quickly loved

lonely looked

immediately looked

exactly bowed

anxiously turned

only called

gently dropped

friendly screamed

loudly jumped

only bed

carefully started

surely frightened

carefully climbed

soberly started

briskly happened

merrily whirled

sweetly raised

nearly remained

suddenly carried

loudly howled

kindly tipped

only rocked

friendly waited

only dragged

soundly passed

greatly shrieked

gravely wondered

only dashed

bravely passed

thoughtfully happened

earnestly stopped

slowly resolved

presently crawled

friendly bed

politely followed

greatly closed

sadly awakened

awfully bed

confidentially happened

truly whined

gratefully noticed

unfriendly bed

only opened

merrily looked

nearly fluttered

only lived

only noticed

carefully used

probably seemed

reproachfully dressed

really tinkled

only moved

lonely sprinkled

carefully glistened

only dressed

only polished

only covered

earnestly walked

fairly paused

patiently whispered

patiently walked

thoughtfully killed

properly listened

scarcely killed

timidly carried

partly killed

entirely expected

perfectly killed

sharply replied

softly continued

badly looked

anxiously indeed

badly rested

gently pointed

freely cried

carefully asked

freely answered

certainly inquired

deeply ruled

heartily asked

badly cried

earnestly indeed

cheerfully answered

lonely ruled

brightly wicked

only frightened

greatly indeed

only wicked

nearly killed

anxiously inquired

easily seemed

nearly bowed

remarkably looked

sadly mentioned

naturally civilized

loudly replied

awfully civilized

thoughtfully civilized

easily asked

simply answered

cowardly pointed

easily asked

really looked

stately disappeared

nearly explained

presently dried

slowly reached

presently picked

tightly handed

greatly connected

surely carried

carefully placed

lonely looked

certainly ruled

heartily passed

only seemed

soundly hearted

hardly balanced

despairingly counted

fly changed

carefully asked

badly answered

terribly asked

safely ruled

greatly inquired

easily asked

tightly pleaded

silently replied

easily kissed

terribly kissed

reply touched

suddenly paved

easily bowed

nearly wished

slowly walked

certainly whirled

only disappeared

surely barked

nearly expected

ugly surprised

badly carried

sadly filled

suddenly gathered

swiftly wanted

greatly helped

easily happened

safely bed

lovely faded

nearly washed

badly dressed

certainly tied

fortunately filled

surely looked

only noticed

lovely looked

only wagged

lonely belonged

wistfully tried

sharply fitted

eagerly picked

brightly closed

lovely locked

probably started

only paved

presently bed

scarcely whisked

deadly surprised

deadly walked

only painted

sadly painted

cowardly tired

gently played

nearly loaded

reply greeted

beautifully invited

ugly gathered

slowly waited

only watched

indignantly asked

quickly killed

greatly checked

timidly seemed

gravely tired

friendly led

easily bed

swiftly curled

hurriedly watched

hardly played

heavily pulled

warmly crowed

tightly laughed

deadly amused

generously asked

fully answered

greatly worried

evidently resolved

lovely started

surely climbed

friendly placed

nearly leaned

boldly gazed

greatly stuffed

thoughtfully painted

eagerly pointed

easily belonged

sorrowfully perched

likely faded

usually stuffed

only raised

slowly painted

wisely surprised

only nodded

closely climbed

strangely walked

exactly barked

lovely asked

politely answered

lovely replied

beautifully perched

exactly asked

perfectly obliged

stupidly reached

curiously lifted

really stuffed

boldly puzzled

closely sounded

slowly stuffed

sharply asked

steadily stretched

thoughtfully yawned

sharply inquired

earnestly returned

dreadfully indeed

queerly stuffed

only answered

simply asked

greatly returned

anxiously continued

willingly stuffed

tremendously stuffed

sadly answered

lovely walked

prettily helped

sweetly started

bravely smelled

only stuffed

greatly suspected

sorrowfully growled

lovely replied

lovely tired

lovely continued

lovely walked

kindly asked

nearly answered

hardly lighted

only stumbled

woolly indeed

only jumped

gruffly walked

sorrowfully walked

greatly stepped

lovely joined

scarcely cared

tremblingly opened

fiercely offered

reply refused

silently painted

furiously stuffed

sadly nodded

only finished

certainly carried

properly listened

early answered

soundly sighed

politely stuffed

naturally asked

immediately looked

only answered

rapidly happened

entirely answered

only painted

slowly finished

thickly remarked

ugly fastened

terribly agreed

carefully carried

gently walked

swiftly deserted

harshly tried

severely forced

meekly pleased

fiercely perched

constantly stuffed

bitterly hopped

dismally wanted

really harmed

only showed

carefully comforted

finally decided

greatly pulled

truly returned

actually handed

really untilled

only returned

anxiously required

tenderly faded

carefully declared

carefully managed

only stopped

joyfully indeed

thoughtfully answered

exactly tired

brightly led

soundly reached

surely entered

scarcely bed

butterfly dried

probably tired

anxiously waited

carefully looked

calmly asked

badly walked

cheerfully bathed

easily finished

happily startled

ugly asked

manly replied

lovely reached

manly seemed

dearly turned

finally walked

greatly discovered

carefully stopped

swiftly chopped

gravely uplifted

reply jointed

only looked

greatly barked

really asked

angrily answered

lovely inquired

meekly moved

carefully answered

lovely rusted

really oiled

fiercely returned

certainly asked

sorrowfully replied

only oiled

sadly rusted

gradually moved

willingly worked

really oiled

certainly lowered

really leaned

terribly rusted

surely oiled

deadly thanked

only seemed

really saved

only answered

carefully stopped

anxiously asked

really replied

only appeared

meekly answered

only returned

simply added

surely pleased

uneasily shouldered

thoroughly passed

warmly paved

curiously asked

earnestly need

entirely chopped

greatly cleared

neatly walked

really stumbled

beautifully rolled

really obliged

joyfully asked

exactly replied

gladly stuffed

pleasantly inquired

eagerly answered

neatly tried

rapidly asked

finally chopped

fly died

safely lived

lovingly promised

bitterly lived

lovely wished

kindly promised

carefully enchanted

kindly slipped

thoroughly seemed

respectfully legged

really worked

only used

modestly angered

only promised

joyfully slipped

fly enchanted

certainly daunted

horribly replaced

timidly happened

earnestly worked

really married

gratefully slipped

greatly needed

certainly rusted

kindly resolved

lovely interested

brightly returned

merrily puzzled

finally decided

immediately wanted

roughly worried

fiercely fed

safely paved

promptly covered

only dried

probably walked

certainly asked

immediately replied

entirely bounded

only opened

brightly killed

safely rushed

suddenly slapped

angrily cried

sulkily ashamed

beautifully rubbed

jolly tried

completely retorted

plainly stuffed

saucily stuffed

immediately asked

considerably watched

dearly patted

contentedly stuffed

only replied

carefully remarked

really astonished

easily stuffed

carefully helped

safely blunted

perfectly scratched

quietly answered

lately stuffed

fly asked

nearly continued

gladly asked

proudly replied

ugly learned

directly roared

proudly frightened

safely scared

nearly roared

boldly tried

quickly returned

harshly continued

swiftly asked

safely looked

kindly replied

surely remarked

only stuffed

really added

safely asked

really answered

wisely crushed

only indeed

happily stepped

earnestly killed

certainly walked

lovely rusted

joyfully asked

tenderly rusted

solemnly frightened

swiftly puzzled

suddenly seized

furiously oiled

gravely walked

apply need

nearly obliged

practically chopped

especially warmed

comply cooked

only begged

freely killed

easily filled

comply laughed

prominently picked

comply padded

comply dropped

prominently enabled

comply feared

legally bathed

clearly started

comply crossed

electronically divided

electronically looked

directly jagged

indirectly seemed

freely asked

freely looked

particularly answered

gratefully declared

freely killed

only dented

necessarily walked


mr. musculo web comic:

import urllib2, urlparse, os, sys
import html5lib


def openURL (url):
    """
    returns (page, actualurl)
    sets user_agent and resolves possible redirection
    realurl maybe different than url in the case of a redirect
    """    
    request = urllib2.Request(url)
    user_agent = "Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5"
    request.add_header("User-Agent", user_agent)
    pagefile=urllib2.urlopen(request)
    realurl = pagefile.geturl()
    return (pagefile, realurl)
parser = html5lib.HTMLParser(tree=html5lib.treebuilders.getTreeBuilder("dom"))

(f,mr)= openURL ("http://images.google.com/images?hl=en&client=firefox-a&hs=UTy&rls=com.ubuntu:en-US:official&q=mr%20ravioli%20image&aql=&oq=&um=1&ie=UTF-8&sa=N&tab=wi")
tree1 = parser.parse(f)
f.close()
tree1.normalize()
mrimgs = tree1.getElementsByTagName("img")

(f,musculo)= openURL ("http://images.google.com/images?um=1&hl=en&client=firefox-a&rls=com.ubuntu:en-US:official&tbs=isch:1&q=mr+musculo&sa=N&start=18&ndsp=18")
tree2 = parser.parse(f)
f.close()
tree2.normalize()
musculoimgs = tree2.getElementsByTagName("img")

#print "Content-type: text/html; charset=utf8"
print

print "<html><head><title>How is mister?</title></head><body>"

print """<html><body>"""


for (mr, musculo) in zip (mrimgs, musculoimgs):
    nu=mr.getAttribute("src")
    print "<img src='" + nu + "' height='200' />"
    nu=musculo.getAttribute("src")
    print "<img src='" + nu + "' height='200' />"
	
print """</html></body>"""


sys.exit()

print """
</body>
</html> 
"""


Googledrome

import feedparser
import pprint
import sys

pull = feedparser.parse("http://feeds.feedburner.com/gtutor")

for element in pull.entries:

    head = element.title
    #print head
    words = head.split()
    org = words[:]
    words.reverse()
    pl = org + words[1:]
    #print pl

    print " ".join(pl).encode("utf-8")
    print


Now Drag and Drop Images Into Your Gmail Messages Gmail Your Into Images Drop and Drag Now

4 Killer Gmail Features You Might Not Know About Know Not Might You Features Gmail Killer 4

Chromey Calculator – Google Chrome extension of the week the of extension Chrome Google – Calculator Chromey

$25 OFF – BOTW Coupon May 2010 May Coupon BOTW – OFF $25

Things you should know about Chrome’s incognito mode incognito Chrome’s about know should you Things

How-to use Google Chrome to visit all of your needed webpages in a few clicks few a in webpages needed your of all visit to Chrome Google use How-to

Disabling Search Suggestions for Google Chrome Google for Suggestions Search Disabling

How to Drag and Drop Attachments in Gmail in Attachments Drop and Drag to How

Video: Cool New Improvements to Google Docs Google to Improvements New Cool Video:

3 Nice Google Chrome Features You Should Know Should You Features Chrome Google Nice 3