Skip to content

Instantly share code, notes, and snippets.

View anandology's full-sized avatar

Anand Chitipothu anandology

View GitHub Profile
@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:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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})(?:/.*)?$",
@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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / gist:6422356
Last active December 22, 2015 05:09
Commands for Processing videos

Pick Noise

The video will have noise and we need to listen to the video and pick the section which have only noise so that we can remove that from the video.

ffmpeg -i input.mp4 -ss 00:00:13.000 -t 00:00:02 noise.wav

The same noise file can be used for cleaning all the videos taken in the that room.

Remove Noise from a video

@anandology
anandology / 0-python-training.ipynb
Created September 24, 2013 13:46
Python Training Notes - June 2012
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / day1.ipynb
Last active December 23, 2015 23:39
Python Training - September 26-28, 2013
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandology
anandology / Readme.txt
Last active December 28, 2015 06:59
Advanced Python Workshop - Nov 2013 http://advancedpython.hasgeek.com/
Notes from Advanced Python Workshop by Anand Chitipothu conducted on Nov 14-16, 2013