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 8000
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 8000
/* | |
Author: James Shrager (@jshrager) | |
Intended use: Appcelerator Titanium | |
Usage: http://www.LearningTitanium.com (@learningTi) | |
*/ | |
var client_id = "YOUR_CLIENT_ID"; | |
var client_secret = "YOUR_CLIENT_SECRET"; | |
var redirectUri = 'http://YOUR_URL/foursquareCallback.php'; | |
var ui = require('ui/ui'); |
/** | |
* FizzBuzz with CSS | |
*/ | |
body { | |
counter-reset: fizzbuzz; | |
} | |
div { |
/** | |
* FizzBuzz with CSS | |
*/ | |
body { | |
counter-reset: fizzbuzz; | |
} | |
div { |
require "json" | |
require "net/http" | |
require "colorize" | |
def formatTemp(temp) | |
temp_i = temp.to_i | |
temp = temp + "°C" | |
case | |
when temp_i <= 0 | |
temp.colorize(:blue) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I'm some content |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)