Skip to content

Instantly share code, notes, and snippets.

@shreyankg
shreyankg / signature.rb
Created November 3, 2014 08:41
They Fight Crime signature hook for sup
#!/usr/bin/env ruby
# (C) Andrew Wheeler & Alasdair Watson,
# http://www.rain-street.org/fightcrime.htm
# Ruby re-write by Shreyank Gupta <[email protected]>
# http://allsortsofshrink.blogspot.com
#
# Add regexs for emails that you want to blacklist from receiving this signature, e.g. your manager
@shreyankg
shreyankg / python-http
Created July 4, 2012 07:53
Simple Python HTTP server
#!/usr/bin/env python
#
# python-http
# Script to run http on your local folders
#
# Copyright (C) 2012 Shreyank Gupta <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
import matplotlib
matplotlib.use('Agg')
import numpy as np
from math import pi
import matplotlib.pyplot as plt
hash = {
1: 'c',
2: 'b',