Private Gist
All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are given this private URL.
Every gist with this icon (
) is private.
Public Gist
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<script type="text/javascript">
(function(loc) {
if (loc.pathname == '/') {
return;
}
var uri_re =
/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/;
var target_domain = '';
loc.href.replace(uri_re, function(all, path, query, frag) {
var dst, src; dst = src = path + (query ? '?' + query : '');
if (frag) {
if (frag.charAt(0) == '/') {
dst = frag.replace(/^\/+/, '/').replace(
/_fb_qsub=([^&]+)&?/,
function(all, domain) {
if (
domain.substring(domain.length - 13) ==
'.facebook.com'
) {
target_domain = 'http://' + domain;
}
return '';
}
);
} else if (/&|=/.test(frag)) {
var q = {};
var m = frag.match(/([^#]*)(#.*)?/);
var arr =(query||'').split('&').concat((m[1]||'').split('&'));
for (var i = 0, length = arr.length; i < length; i++) {
var t = arr[i].split('=');
if (t.length && t[0] != '') {
q[t[0]] = t[1];
}
}
var s = [];
for (var i in q) {
s.push(i + (q[i] ? '=' + q[i] : ''));
}
dst = path + '?' + s.join('&') + (m[2] || '');
}
}
dst = "" + dst;
if (dst != src) {
window.location.replace(target_domain + dst);
}
});
})(window.location);
</script>
<script>
window.location.replace("http:\/\/www.facebook.com\/swillison");
</script>
Please log in to comment.






