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 feedparser | |
import hashlib | |
import json | |
from bs4 import BeautifulSoup | |
d = feedparser.parse("http://www.quora.com/YOUR-QUORA-NAME/answers/rss") | |
for e in d["entries"] : | |
title = e["title"] | |
summary = e["summary"] |
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 | |
# -*- coding: utf-8 -*- | |
import curses | |
import curses.textpad | |
import cmd | |
def maketextbox(h,w,y,x,value="",deco=None,textColorpair=0,decoColorpair=0): | |
# thanks to http://stackoverflow.com/a/5326195/8482 for this | |
nw = curses.newwin(h,w,y,x) |
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
def perm(xs) : | |
if xs == [] : | |
yield [] | |
for x in xs : | |
ys = [y for y in xs if not y==x] | |
for p in perm(ys) : | |
yield ([x] + p) |
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
hi aha |
NewerOlder