Skip to content

Instantly share code, notes, and snippets.

View sohang3112's full-sized avatar
:octocat:

Sohang Chopra sohang3112

:octocat:
View GitHub Profile
@gerjantd
gerjantd / get-mygists.sh
Created July 20, 2012 09:23
Github: API v3 call for retrieving my public gists
#!/bin/bash
mkdir mygists
cd mygists
curl -u "gerjantd" https://api.github.com/gists | json_xs > mygists.json
cat mygists.json | grep "\"id\"" | awk -F "\"" '{print $4}' > repos
for g in `cat repos`; do git clone [email protected]:$g.git gist-$g; done
@lorn
lorn / gist:976873
Created May 17, 2011 17:12 — forked from medecau/opcp.md
Online Programming Contests and Puzzles
@huyng
huyng / reflect.py
Created February 7, 2011 17:57
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@ghoseb
ghoseb / ns-cheatsheet.clj
Last active March 25, 2025 21:21 — forked from alandipert/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.