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
''' gist below can accept a csv list with unicode coding, for example list of names from around the world as in example''' | |
import csv,codecs,cStringIO | |
import jinja2 | |
''' copied from StackExchange''' | |
class UTF8Recoder: | |
def __init__(self, f, encoding): | |
self.reader = codecs.getreader(encoding)(f) | |
def __iter__(self): | |
return self | |
def next(self): |
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/python | |
import unittest | |
import time | |
from throttle import throttle | |
class TestThrottle(unittest.TestCase): | |
@throttle(1) | |
def increment(self): |
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
javascript:var b=document.body;var GR________bookmarklet_domain='http://www.google.pl';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.pl/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)} |
NewerOlder