- 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
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
<div class="js-favorite"> | |
<a href="/favoriteActionWithAjaxSupport" class="js-favorite-link">Favorite</a> | |
</div> |
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 precss = require('precss'); | |
var autoprefixer = require('autoprefixer'); | |
var sorting = require('postcss-sorting'); // ! | |
module.exports = { | |
module: { | |
loaders: [ | |
{ | |
test: /\.css$/, | |
loader: "style-loader!css-loader!postcss-loader" |
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 fs = require('enb/lib/fs/async-fs'), | |
vow = require('vow'), | |
path = require('path'); | |
module.exports = require('enb/lib/build-flow').create() | |
.name('enb-exports-file') | |
.target('target', '?.js') | |
.useSourceFilename('source', '?.txt') | |
.builder(function(cssFilename) { | |
var def = vow.defer(); |
These rules are adopted from the AngularJS commit conventions.
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
const values = [ | |
() => console.log({moveCircleToMiddle: true}), | |
1000, | |
() => console.log({showGrayCircle: true}), | |
() => console.log({showMicrophone: true}), | |
5000, | |
() => console.log({moveCircleToTop: true}), | |
1000, | |
() => console.log({pulseGrayCircle: true}), | |
5000, |
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 gcd(a, b) { | |
if (a < 0 || b < 0) throw Error ('positive numbers only'); | |
if (a === 0 || b === 0) | |
return Math.max(a, b); | |
else if (a >= b) | |
return gcd(a % b, b); | |
else | |
return gcd(a, b % a); | |
} |
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 get_pos(arr, number) { | |
var l = 0, | |
r = arr.length, | |
m; | |
while (l < r) { | |
m = Math.floor( (l + r) / 2 ); | |
if (number < arr[m]) { | |
r = m; |
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 sort(nums) | |
{ | |
if (!nums.length) return nums; | |
var a = [], b = [], p = nums[0]; | |
for (var i = 1; i < nums.length; i++) | |
{ | |
if (nums[i] < p) | |
a[a.length] = nums[i]; |