Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| var kue = require('kue'); | |
| var jobs = kue.createQueue(); | |
| console.log('Restarting job ' + process.argv[2]); | |
| jobs.state(process.argv[2], function (err, ids) { | |
| ids.forEach(reactivate); | |
| }); | |
| function reactivate (id) { |
| %% Read image and convert to grayscale | |
| img = imread('pic.jpg'); | |
| img = rgb2gray(img); | |
| %% Define grayscale representations of 0-255 | |
| chars = fliplr([' ', '.', ',', ':', '-', '=', '+', '*', '#', '%', '@']); | |
| step = 256 / 11; | |
| %% Cut image so its size is 8*w times 13*h | |
| imgSize = size(img); |
| // lo-dash lib is the dependency | |
| function readOnly(target){ | |
| var _readOnly = function (target, acc) { | |
| // acc is passed into the function to be used for observer | |
| var _defineProperty = function (propName, target, acc) { | |
| var i, len; | |
| // operation to be performed when add occurred |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |