Skip to content

Instantly share code, notes, and snippets.

View rajeshpillai's full-sized avatar

Rajesh Pillai rajeshpillai

View GitHub Profile

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Reflection.Emit;
using System.Collections.Concurrent;
using System.Data;
using System.Reflection;
@rajeshpillai
rajeshpillai / awful.js
Created April 13, 2012 19:05 — forked from mxriverlynn/awful.js
Improve This Backbone "Query"
// A home has floors.
// A floor has rooms.
// A room has device groups.
// A device group has devices.
// A device has addresses.
// An address has actual address value.
//
// So, the purpose of this awful mess is to say :
// "give me every device with this address, from any home"
//