- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
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 parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
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
/* | |
CollapsibleLists.js | |
An object allowing lists to dynamically expand and collapse | |
Created by Stephen Morley - http://code.stephenmorley.org/ - and released under | |
the terms of the CC0 1.0 Universal legal code: | |
http://creativecommons.org/publicdomain/zero/1.0/legalcode |
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
/** | |
* Light layer on top of a canvas element to represent an image displayed | |
* within. Pass in a canvas element and an Image object and you'll see the | |
* image within the canvas element. Use the provided methods (e.g. blur) to | |
* manipulate it. | |
* | |
* @constructor | |
* @param {HTMLElement} element HTML canvas element. | |
* @param {Image} image Image object. | |
*/ |
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
/* | |
Copyright (C) 2012-2013 Yusuke Suzuki <[email protected]> | |
Copyright (C) 2012 Ariya Hidayat <[email protected]> | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright |
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
/** | |
* Fuse - Lightweight fuzzy-search | |
* | |
* Copyright (c) 2012 Kirollos Risk <[email protected]>. | |
* All Rights Reserved. Apache Software License 2.0 | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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
if (!window.__p) { | |
window.originalSetTimeout = setTimeout; | |
window.originalSetInterval = setInterval; | |
eval("var setTimeout, setInterval;"); | |
setTimeout = function() { | |
return Function.prototype.apply.call(window.newSetTimeout, null, arguments); | |
}; | |
setInterval = function() { | |
return Function.prototype.apply.call(window.newSetInterval, null, arguments); | |
}; |
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 args = Array.prototype.slice.call(arguments, 0); | |
var condExpr = args[0], timeout = args[1], | |
poll = args[2], cb = args[3]; | |
var waitForConditionImpl = function(conditionExpr, limit, poll, cb) { | |
if ((new Date().getTime()) < limit) { | |
var res = eval(conditionExpr); | |
if (res === true ) { | |
cb(res); | |
} else { | |
setTimeout(function() { |
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
function defineProperty(me, children, data, p){ | |
Object.defineProperty(me, p,{ | |
get:function(){ | |
if(typeof data[p] == "object") | |
return children[p]; | |
else return data[p]; | |
}, | |
set:function(v){ | |
data[p] = v ; | |
me.dispatchEvent({ |