Skip to content

Instantly share code, notes, and snippets.

View mvlsqz's full-sized avatar

Marvin Velásquez mvlsqz

View GitHub Profile
@mvlsqz
mvlsqz / web-servers.md
Created July 7, 2016 19:23 — forked from willurd/web-servers.md
Big list of http static server one-liners

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
@mvlsqz
mvlsqz / HTML5 Enabler
Last active August 29, 2015 14:08 — forked from benplum/HTML5 Enabler
/* Pre-Define HTML5 Elements in IE */
(function(){ var els = "source|address|article|aside|audio|canvas|command|datalist|details|dialog|figure|figcaption|footer|header|hgroup|keygen|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )();