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.
$ python -m SimpleHTTPServer 8000Each 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.
$ python -m SimpleHTTPServer 8000| import json | |
| import urllib | |
| import urllib2 | |
| import time | |
| """ Nike plus activity log | |
| https://developer.nike.com | |
| Output: | |
| -- May -- |
| //simple XHR request in pure JavaScript | |
| function load(url, callback) { | |
| var xhr; | |
| if(typeof XMLHttpRequest !== 'undefined') xhr = new XMLHttpRequest(); | |
| else { | |
| var versions = ["MSXML2.XmlHttp.5.0", | |
| "MSXML2.XmlHttp.4.0", | |
| "MSXML2.XmlHttp.3.0", | |
| "MSXML2.XmlHttp.2.0", |
| <? | |
| /** | |
| * twitterfeed.php | |
| * | |
| * A single file script which serves an authenticated personal Twitter timeline as an Atom feed. | |
| * | |
| * To use: | |
| * 1) Go to https://dev.twitter.com/apps and create a new App | |
| * 2) Use the Authentication button to create the tokens/secrets needed | |
| * 3) Copy the results into the appropriate spots below |
| #!/bin/bash | |
| # | |
| # git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html) | |
| # modified by mike@mikepearce.net | |
| # modified by aconway@[redacted] - handle diffs that introduce new files | |
| # modified by t.broyer@ltgt.net - fixes diffs that introduce new files | |
| # modified by m@rkj.me - fix sed syntax issue in OS X | |
| # | |
| # Generate an SVN-compatible diff against the tip of the tracking branch |