Ok, so the basic anatomy of a GitHub compare link is:
https://github.com/USER/REPO/compare/REF1...REF2
// make check for navigator properties not fail. | |
var navigator = {}; | |
// support some basic HTML5 localStorage operations | |
function _localStorage() { | |
this.ls = {}; | |
this.getItem = function(key) { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Address Book</title> | |
<link rel="stylesheet" href="style/main.css" type="text/css"> | |
<script src="/_utils/script/json2.js"></script> | |
<script src="/_utils/script/jquery.js?1.3.1"></script> | |
<script src="/_utils/script/jquery.couch.js?0.9.0"></script> | |
<script type="text/javascript"> | |
$db = $.couch.db("addressbook"); |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
#!/usr/bin/env python | |
"""appdotnet | |
Usage: | |
appdotnet authenticate <client_id> | |
appdotnet set-accesstoken <access_token> | |
appdotnet global | |
appdotnet | |
appdotnet -h | --help |
#!/usr/bin/env perl | |
use Modern::Perl; | |
use Store::CouchDB; | |
use JSON; | |
use File::Slurp; | |
# unbuffer output to line up stderr/stdout | |
$|=1; |
-module(echo_supervisor). | |
-behaviour(supervisor). | |
%% API | |
-export([start_link/0]). | |
%% Supervisor callbacks | |
-export([init/1]). | |
-define(SERVER, ?MODULE). |
-module(echo_server). | |
-behaviour(gen_server). | |
%% Server API | |
-export([start_link/3, stop/1]). | |
%% Client API | |
-export([echo/1, assassinate/1]). | |
%% gen_server callbacks |