Skip to content

Instantly share code, notes, and snippets.

View Absulit's full-sized avatar

Sebastian Sanabria Diaz Absulit

View GitHub Profile
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@bradmontgomery
bradmontgomery / dummy-web-server.py
Last active May 14, 2024 18:19
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request:
@Nutrox
Nutrox / AbstractExample.as
Created January 3, 2011 20:43
AS3 Abstract-esque class implementation
package {
public class AbstractExample {
public function AbstractExample() {
if( Object(this).constructor == AbstractExample ) {
throw new Error( "AbstractExample class must be extended." );
}
}
}
}