Skip to content

Instantly share code, notes, and snippets.

View anandology's full-sized avatar

Anand Chitipothu anandology

View GitHub Profile
@anandology
anandology / pg-encoding.txt
Created July 8, 2013 15:23
Fixing PostgreSQL default encoding in Ubuntu
# Option 1 - rebuild the cluster
# This will delete alle existing data
pg_dropcluster --stop 9.2 main
pg_createcluster --start -e UTF-8 9.2 main
# Option 2 - rebuild the template1 database
# All the database created after this will have UTF-8 encoding
@anandology
anandology / amazon.com.js
Created June 27, 2013 22:50
My dotjs extension for amazon.com
//
// My dotjs extension for amazon.com
// - Adds link to OL when an entry is available in OL
//
function find_isbn() {
// URL is of the form .../dp/$isbn/ref=..
var parts = window.location.pathname.split("/");
var patterns = [
"^/[^/]*/dp/([0-9Xx]{10})(?:/.*)?$",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / webpy-helloworld.py
Created June 10, 2013 18:35
helloworld script to try web.py on Python3
import web
web.config.debug = False
urls = (
"/", "hello",
)
app = web.application(urls, globals())
class hello:
@anandology
anandology / 5 - Meta Classes (Advanced Python Workshop).ipynb
Created May 26, 2013 10:42
Advanced Python Workshop - Class Notes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / 4 - Context Managers (Advanced Python Workshop).ipynb
Created May 26, 2013 10:40
Advanced Python Workshop - Class Notes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / 3 - Classes (Advanced Python Workshop).ipynb
Last active December 17, 2015 17:49
Notes from Advanced Python workshop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / Advanced Python Workshop.ipynb
Created May 24, 2013 11:52
Advanced Python Workshop - Class Notes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / funnel-notes.md
Created May 21, 2013 10:23
Notes for setting up funnel

May 21, 2013: Notes from IRC chat with kiran.

jace: funnel has a new user groups feature
jace: we're using that for fifthel to only count votes from ticket holders
anandology: cool. We might want to use it for pyconindia.
jace: you can go to /<space>/users to manage user groups

jace: and then //json will show vote counts by group if you are a siteadmin