This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
http://james.padolsey.com/javascript/parsing-urls-with-the-dom/ | |
*/ | |
function parseURL(url) { | |
var a = document.createElement('a'); | |
a.href = url; | |
return { | |
source: url, | |
protocol: a.protocol.replace(':',''), | |
host: a.hostname, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
request: { | |
method: 'POST', | |
url: '/api/forums', | |
header: { | |
host: 'localhost:3000', | |
connection: 'keep-alive', | |
'content-length': '77', | |
'cache-control': 'no-cache', | |
origin: 'chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<opml version="1.0"> | |
<head> | |
<title>寸志 subscriptions in Digg Reader</title> | |
</head> | |
<body> | |
<outline text="Framer Blog" title="Framer Blog" type="rss" xmlUrl="http://framerjs.tumblr.com/rss" htmlUrl="http://framerjs.tumblr.com/" /> | |
<outline text="粉丝日志" title="粉丝日志" type="rss" xmlUrl="http://blog.fens.me/feed/" htmlUrl="http://blog.fens.me" /> | |
<outline text="AngularJS" title="AngularJS" type="rss" xmlUrl="http://blog.angularjs.org/feeds/posts/default" htmlUrl="http://blog.angularjs.org/" /> | |
<outline text="blog.izs.me" title="blog.izs.me" type="rss" xmlUrl="http://blog.izs.me/rss" htmlUrl="http://blog.izs.me/" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var STRIP_COMMENT_TAG_REGEXP, end, start, stripCommentTag, testStringA, testStringB; | |
STRIP_COMMENT_TAG_REGEXP = /<!--(.|\s)*?-->/gm; | |
stripCommentTag = function(html) { | |
return html.replace(STRIP_COMMENT_TAG_REGEXP, ""); | |
}; | |
testStringA = '<!-- -->'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.requestAnimFrame = (function() { | |
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(a) { | |
window.setTimeout(a, 1000 / 60) | |
} | |
})(); | |
window.onload = function() { | |
var m = canvas.getContext("2d"), | |
k, g; | |
canvas.width = k = window.innerWidth * 2.1; | |
canvas.height = g = window.innerHeight * 1.4; |
OlderNewer