Skip to content

Instantly share code, notes, and snippets.

View utsengar's full-sized avatar
🚀
Hustling.

Utkarsh Sengar utsengar

🚀
Hustling.
View GitHub Profile
@utsengar
utsengar / bothaiyanaar.py
Created December 7, 2011 09:13 — forked from bicepjai/bothaiyanaar.py
bothaiyanaar theorem
#! /usr/bin/python
import math
def pytha(a,b):
return math.sqrt(pow(a,2) + pow(b,2))
def botha(a,b):
return (float(a) - float(a/8) + float(b/2))
@utsengar
utsengar / MonitorExample.java
Created November 17, 2011 08:19 — forked from bbejeck/MonitorExample.java
Sample Code for Guava Monitor Blog
import com.google.common.util.concurrent.Monitor;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by IntelliJ IDEA.
* User: bbejeck
* Date: 11/11/11
* Time: 10:01 PM
*/
@utsengar
utsengar / bootstrap.sh
Created June 2, 2011 19:00 — forked from anonymous/bootstrap.sh
Django on Heroku with Postgres, Celery and Sentry
virtualenv --no-site-packages .
source bin/activate
bin/pip install Django psycopg2 django-sentry
bin/pip freeze > requirements.txt
bin/django-admin.py startproject mysite
cat >.gitignore <<EOF
bin/
include/
lib/
EOF