Skip to content

Instantly share code, notes, and snippets.

View homoludens's full-sized avatar

Marko Đorđević homoludens

  • http://droopia.net
  • Belgrade
View GitHub Profile
@homoludens
homoludens / brepodder.patch
Created April 26, 2011 19:14
patch so that brepodder behaves on frist start and create db and directories
diff --git a/Ui_mainwindow.py b/Ui_mainwindow.py
index 995c127..bab1da9 100644
--- a/Ui_mainwindow.py
+++ b/Ui_mainwindow.py
@@ -18,7 +18,7 @@ import feedparser
from audioplayer import AudioPlayer
#setup_all()
-sys.setappdefaultencoding('utf-8')
+#sys.setappdefaultencoding('utf-8')
@homoludens
homoludens / couchpubtato.patch
Created April 25, 2011 07:48
Small changes needed to try couchpubtato
diff --git a/README.md b/README.md
index c98438b..24daf12 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ To try out:
git submodule init
git submodule update
ruby create_test_data.rb http://admin:password@localhost:5894
- node couchpubtato.js http://localhost:5984/feeds
+ node couchpubtato.js http://localhost:5984/nytimes
@homoludens
homoludens / pyqueue
Created April 5, 2011 09:05
processing queue using threads (in python)
#!/usr/bin/python
import time
import threading
import Queue
import StringIO
my_queue = Queue.Queue()
time_of_last_run = time.time()
import urllib
# Get a file-like object for the Python Web site's home page.
f = urllib.urlopen("http://www.python.org")
# Read from the object, storing the page's contents in 's'.
s = f.read()
f.close()