Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
234 lines (233 sloc) 16.6 KB
HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 16657
Set-Cookie: session="JAtA7WuN9GBhbjd78htT8/hivyA=?csrf=UydhYzMyMzI5MGQ3ZDM3MGYxNzMxNTdlZGVhMTcxOTM3YjJiMGJmNTdiJwpwMQou"; Path=/; HttpOnly
Server: Werkzeug/0.8.3 Python/2.7.3
Date: Tue, 11 Dec 2012 19:27:56 GMT
{
"files": {
"save-to-cookies.js": {
"raw_url": "https://gist.github.com/raw/4247687/6a8bbf5fc10bbd5084d3b309f42b06002f491432/save-to-cookies.js",
"language": "JavaScript",
"filename": "save-to-cookies.js",
"content": "(function($){\n $.fn.serializeJSON = function() {\n var json = {};\n jQuery.map($(this).serializeArray(), function(n, i) {\n json[n['name']] = n['value'];\n });\n return json;\n };\n})(jQuery);\n\nif (typeof String.prototype.startsWith != 'function') {\n String.prototype.startsWith = function (str){\n return this.slice(0, str.length) == str;\n };\n}\n\nif (typeof String.prototype.endsWith != 'function') {\n String.prototype.endsWith = function (str){\n return this.slice(-str.length) == str;\n };\n}\n\nensureNumber = function(n) {\n n = parseInt(n, 10);\n if (isNaN(n) || n <= 0) { n = 0; }\n return n;\n}\n\nsaveFormToCookies = function(name) {\n $.cookie(name, JSON.stringify($('form input[name^=' + name + ']').serializeJSON()), { expires: 365 });\n}\n\nloadFormFromCookies = function(name) {\n try {\n JSON.parse($.cookie(name), function(key, value) {\n if (key.startsWith(name)) {\n var el = $('input[name=\"'+key+'\"][type!=hidden]#');\n\n if (el.attr('type') == 'checkbox') {\n el.attr('checked', value == 1 ? true : false);\n } else {\n el.val(ensureNumber(value));\n }\n }\n });\n } catch(e) {\n $.cookie(name, null);\n }\n}\n",
"type": "application/javascript",
"size": 1190
},
"emacs.css": {
"raw_url": "https://gist.github.com/raw/4247687/3965ee93a725d8b4a459275bbdd12aaf281fdd72/emacs.css",
"language": "CSS",
"filename": "emacs.css",
"content": ".highlight .hll { background-color: #ffffcc }\n.highlight { background: #f8f8f8; }\n.highlight .c { color: #008800; font-style: italic } /* Comment */\n.highlight .err { border: 1px solid #FF0000 } /* Error */\n.highlight .k { color: #AA22FF; font-weight: bold } /* Keyword */\n.highlight .o { color: #666666 } /* Operator */\n.highlight .cm { color: #008800; font-style: italic } /* Comment.Multiline */\n.highlight .cp { color: #008800 } /* Comment.Preproc */\n.highlight .c1 { color: #008800; font-style: italic } /* Comment.Single */\n.highlight .cs { color: #008800; font-weight: bold } /* Comment.Special */\n.highlight .gd { color: #A00000 } /* Generic.Deleted */\n.highlight .ge { font-style: italic } /* Generic.Emph */\n.highlight .gr { color: #FF0000 } /* Generic.Error */\n.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */\n.highlight .gi { color: #00A000 } /* Generic.Inserted */\n.highlight .go { color: #808080 } /* Generic.Output */\n.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */\n.highlight .gs { font-weight: bold } /* Generic.Strong */\n.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n.highlight .gt { color: #0040D0 } /* Generic.Traceback */\n.highlight .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */\n.highlight .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */\n.highlight .kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */\n.highlight .kp { color: #AA22FF } /* Keyword.Pseudo */\n.highlight .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */\n.highlight .kt { color: #00BB00; font-weight: bold } /* Keyword.Type */\n.highlight .m { color: #666666 } /* Literal.Number */\n.highlight .s { color: #BB4444 } /* Literal.String */\n.highlight .na { color: #BB4444 } /* Name.Attribute */\n.highlight .nb { color: #AA22FF } /* Name.Builtin */\n.highlight .nc { color: #0000FF } /* Name.Class */\n.highlight .no { color: #880000 } /* Name.Constant */\n.highlight .nd { color: #AA22FF } /* Name.Decorator */\n.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */\n.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */\n.highlight .nf { color: #00A000 } /* Name.Function */\n.highlight .nl { color: #A0A000 } /* Name.Label */\n.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */\n.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */\n.highlight .nv { color: #B8860B } /* Name.Variable */\n.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */\n.highlight .w { color: #bbbbbb } /* Text.Whitespace */\n.highlight .mf { color: #666666 } /* Literal.Number.Float */\n.highlight .mh { color: #666666 } /* Literal.Number.Hex */\n.highlight .mi { color: #666666 } /* Literal.Number.Integer */\n.highlight .mo { color: #666666 } /* Literal.Number.Oct */\n.highlight .sb { color: #BB4444 } /* Literal.String.Backtick */\n.highlight .sc { color: #BB4444 } /* Literal.String.Char */\n.highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */\n.highlight .s2 { color: #BB4444 } /* Literal.String.Double */\n.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */\n.highlight .sh { color: #BB4444 } /* Literal.String.Heredoc */\n.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */\n.highlight .sx { color: #008000 } /* Literal.String.Other */\n.highlight .sr { color: #BB6688 } /* Literal.String.Regex */\n.highlight .s1 { color: #BB4444 } /* Literal.String.Single */\n.highlight .ss { color: #B8860B } /* Literal.String.Symbol */\n.highlight .bp { color: #AA22FF } /* Name.Builtin.Pseudo */\n.highlight .vc { color: #B8860B } /* Name.Variable.Class */\n.highlight .vg { color: #B8860B } /* Name.Variable.Global */\n.highlight .vi { color: #B8860B } /* Name.Variable.Instance */\n.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */",
"type": "text/css",
"size": 3904
}
},
"fork_of": {
"files": {
"gistfile1.js": {
"raw_url": "https://gist.github.com/raw/2714798/6a8bbf5fc10bbd5084d3b309f42b06002f491432/gistfile1.js",
"size": 1190,
"type": "application/javascript",
"language": "JavaScript",
"filename": "gistfile1.js"
}
},
"forks_url": "https://api.github.com/gists/2714798/forks",
"description": "How to save form to cookies, restore form from cookies. Requires jQuery and jQuery Cookie plugin.",
"url": "https://api.github.com/gists/2714798",
"created_at": "2012-05-16T23:12:08Z",
"comments_url": "https://api.github.com/gists/2714798/comments",
"html_url": "https://gist.github.com/2714798",
"comments": 0,
"updated_at": "2012-12-10T00:37:23Z",
"id": "2714798",
"user": {
"following_url": "https://api.github.com/users/themactep/following",
"events_url": "https://api.github.com/users/themactep/events{/privacy}",
"organizations_url": "https://api.github.com/users/themactep/orgs",
"url": "https://api.github.com/users/themactep",
"gists_url": "https://api.github.com/users/themactep/gists{/gist_id}",
"subscriptions_url": "https://api.github.com/users/themactep/subscriptions",
"avatar_url": "https://secure.gravatar.com/avatar/a059fe2a8f7af81b8ba3ff5c24b831eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"repos_url": "https://api.github.com/users/themactep/repos",
"received_events_url": "https://api.github.com/users/themactep/received_events",
"gravatar_id": "a059fe2a8f7af81b8ba3ff5c24b831eb",
"starred_url": "https://api.github.com/users/themactep/starred{/owner}{/repo}",
"login": "themactep",
"type": "User",
"id": 37488,
"followers_url": "https://api.github.com/users/themactep/followers"
},
"git_pull_url": "git://gist.github.com/2714798.git",
"git_push_url": "git@gist.github.com:2714798.git",
"public": true
},
"forks_url": "https://api.github.com/gists/4247687/forks",
"description": "How to save form to cookies, restore form from cookies. Requires jQuery and jQuery Cookie plugin.",
"url": "https://api.github.com/gists/4247687",
"created_at": "2012-12-10T00:37:22Z",
"comments_url": "https://api.github.com/gists/4247687/comments",
"html_url": "https://gist.github.com/4247687",
"comments": 0,
"updated_at": "2012-12-11T19:27:33Z",
"id": "4247687",
"user": {
"following_url": "https://api.github.com/users/mnewt/following",
"events_url": "https://api.github.com/users/mnewt/events{/privacy}",
"organizations_url": "https://api.github.com/users/mnewt/orgs",
"url": "https://api.github.com/users/mnewt",
"gists_url": "https://api.github.com/users/mnewt/gists{/gist_id}",
"subscriptions_url": "https://api.github.com/users/mnewt/subscriptions",
"avatar_url": "https://secure.gravatar.com/avatar/d5c624b297f69dbad7a5559051356730?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"repos_url": "https://api.github.com/users/mnewt/repos",
"received_events_url": "https://api.github.com/users/mnewt/received_events",
"gravatar_id": "d5c624b297f69dbad7a5559051356730",
"starred_url": "https://api.github.com/users/mnewt/starred{/owner}{/repo}",
"login": "mnewt",
"type": "User",
"id": 1477258,
"followers_url": "https://api.github.com/users/mnewt/followers"
},
"git_pull_url": "git://gist.github.com/4247687.git",
"git_push_url": "git@gist.github.com:4247687.git",
"forks": [],
"public": true,
"history": [
{
"url": "https://api.github.com/gists/4247687/24858aab62462d36a99be644680d313e96224f7d",
"change_status": {
"deletions": 0,
"additions": 62,
"total": 62
},
"committed_at": "2012-12-11T19:27:33Z",
"version": "24858aab62462d36a99be644680d313e96224f7d",
"user": {
"following_url": "https://api.github.com/users/mnewt/following",
"events_url": "https://api.github.com/users/mnewt/events{/privacy}",
"organizations_url": "https://api.github.com/users/mnewt/orgs",
"url": "https://api.github.com/users/mnewt",
"gists_url": "https://api.github.com/users/mnewt/gists{/gist_id}",
"subscriptions_url": "https://api.github.com/users/mnewt/subscriptions",
"avatar_url": "https://secure.gravatar.com/avatar/d5c624b297f69dbad7a5559051356730?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"repos_url": "https://api.github.com/users/mnewt/repos",
"received_events_url": "https://api.github.com/users/mnewt/received_events",
"gravatar_id": "d5c624b297f69dbad7a5559051356730",
"starred_url": "https://api.github.com/users/mnewt/starred{/owner}{/repo}",
"login": "mnewt",
"type": "User",
"id": 1477258,
"followers_url": "https://api.github.com/users/mnewt/followers"
}
},
{
"url": "https://api.github.com/gists/4247687/a07bace29b68f459347aa0b63da4f2ea0de71fff",
"change_status": {
"deletions": 0,
"additions": 0,
"total": 0
},
"committed_at": "2012-12-11T19:25:11Z",
"version": "a07bace29b68f459347aa0b63da4f2ea0de71fff",
"user": {
"following_url": "https://api.github.com/users/mnewt/following",
"events_url": "https://api.github.com/users/mnewt/events{/privacy}",
"organizations_url": "https://api.github.com/users/mnewt/orgs",
"url": "https://api.github.com/users/mnewt",
"gists_url": "https://api.github.com/users/mnewt/gists{/gist_id}",
"subscriptions_url": "https://api.github.com/users/mnewt/subscriptions",
"avatar_url": "https://secure.gravatar.com/avatar/d5c624b297f69dbad7a5559051356730?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"repos_url": "https://api.github.com/users/mnewt/repos",
"received_events_url": "https://api.github.com/users/mnewt/received_events",
"gravatar_id": "d5c624b297f69dbad7a5559051356730",
"starred_url": "https://api.github.com/users/mnewt/starred{/owner}{/repo}",
"login": "mnewt",
"type": "User",
"id": 1477258,
"followers_url": "https://api.github.com/users/mnewt/followers"
}
},
{
"url": "https://api.github.com/gists/4247687/53ea88a596c51ed4c5b55d9c9ef95fc85ac62f25",
"change_status": {
"deletions": 49,
"additions": 49,
"total": 98
},
"committed_at": "2012-12-11T19:22:35Z",
"version": "53ea88a596c51ed4c5b55d9c9ef95fc85ac62f25",
"user": {
"following_url": "https://api.github.com/users/mnewt/following",
"events_url": "https://api.github.com/users/mnewt/events{/privacy}",
"organizations_url": "https://api.github.com/users/mnewt/orgs",
"url": "https://api.github.com/users/mnewt",
"gists_url": "https://api.github.com/users/mnewt/gists{/gist_id}",
"subscriptions_url": "https://api.github.com/users/mnewt/subscriptions",
"avatar_url": "https://secure.gravatar.com/avatar/d5c624b297f69dbad7a5559051356730?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"repos_url": "https://api.github.com/users/mnewt/repos",
"received_events_url": "https://api.github.com/users/mnewt/received_events",
"gravatar_id": "d5c624b297f69dbad7a5559051356730",
"starred_url": "https://api.github.com/users/mnewt/starred{/owner}{/repo}",
"login": "mnewt",
"type": "User",
"id": 1477258,
"followers_url": "https://api.github.com/users/mnewt/followers"
}
},
{
"url": "https://api.github.com/gists/4247687/f277c5336d17b00876fa53eb692e39a53212fdc8",
"change_status": {
"deletions": 49,
"additions": 49,
"total": 98
},
"committed_at": "2012-05-16T23:12:19Z",
"version": "f277c5336d17b00876fa53eb692e39a53212fdc8",
"user": {
"following_url": "https://api.github.com/users/themactep/following",
"events_url": "https://api.github.com/users/themactep/events{/privacy}",
"organizations_url": "https://api.github.com/users/themactep/orgs",
"url": "https://api.github.com/users/themactep",
"gists_url": "https://api.github.com/users/themactep/gists{/gist_id}",
"subscriptions_url": "https://api.github.com/users/themactep/subscriptions",
"avatar_url": "https://secure.gravatar.com/avatar/a059fe2a8f7af81b8ba3ff5c24b831eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"repos_url": "https://api.github.com/users/themactep/repos",
"received_events_url": "https://api.github.com/users/themactep/received_events",
"gravatar_id": "a059fe2a8f7af81b8ba3ff5c24b831eb",
"starred_url": "https://api.github.com/users/themactep/starred{/owner}{/repo}",
"login": "themactep",
"type": "User",
"id": 37488,
"followers_url": "https://api.github.com/users/themactep/followers"
}
},
{
"url": "https://api.github.com/gists/4247687/6803540ad0930bca87b808ef055647b90e33dcc2",
"change_status": {
"deletions": 0,
"additions": 49,
"total": 49
},
"committed_at": "2012-05-16T23:12:08Z",
"version": "6803540ad0930bca87b808ef055647b90e33dcc2",
"user": {
"following_url": "https://api.github.com/users/themactep/following",
"events_url": "https://api.github.com/users/themactep/events{/privacy}",
"organizations_url": "https://api.github.com/users/themactep/orgs",
"url": "https://api.github.com/users/themactep",
"gists_url": "https://api.github.com/users/themactep/gists{/gist_id}",
"subscriptions_url": "https://api.github.com/users/themactep/subscriptions",
"avatar_url": "https://secure.gravatar.com/avatar/a059fe2a8f7af81b8ba3ff5c24b831eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"repos_url": "https://api.github.com/users/themactep/repos",
"received_events_url": "https://api.github.com/users/themactep/received_events",
"gravatar_id": "a059fe2a8f7af81b8ba3ff5c24b831eb",
"starred_url": "https://api.github.com/users/themactep/starred{/owner}{/repo}",
"login": "themactep",
"type": "User",
"id": 37488,
"followers_url": "https://api.github.com/users/themactep/followers"
}
}
]
}
Something went wrong with that request. Please try again.