- You should think before adding an article. You really need to read it? Which profit it brings to your Knowledge?
- You should periodically remove some articles using the question from the first step.
- Links to pages that contains sophisticated manuals or books is not about Pocket. They are tasks, they should be moved to task or TODO tracker (I use TargetProcess for my tasks)
This file contains hidden or 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
exports.fastElements = function(obj) { | |
if (%HasFastSmiElements(obj)) { | |
console.log('Fast SMI elements'); | |
} | |
if (%HasFastSmiOrObjectElements(obj)) { | |
console.log('Fast SMI or Object elements'); | |
} | |
if (%HasFastObjectElements(obj)) { | |
console.log('Fast Object elements'); | |
} |
This file contains hidden or 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
/** | |
* Universal custom error class | |
* @param {String} message | |
* @param {Error} [prevError] | |
* @constructor | |
*/ | |
function CustomError(message, prevError) { | |
if (!CustomError.isInstance(this)) { | |
// Can't use custom errors like `throw Error('Message')` | |
// because of stack capturing |
This file contains hidden or 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
// ==UserScript== | |
// @name Открыть Видео с диска | |
// @namespace yandex | |
// @include https://yadi.sk/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener('load', main); |
This file contains hidden or 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('fs'), | |
profiler = require('v8-profiler'), | |
runSelectionSort = require('./selection-sort'), | |
runMergeSort = require('./merge-sort'); | |
profiler.startProfiling('sort-app'); | |
console.time('selection sort'); | |
runSelectionSort(); |
This file contains hidden or 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
/** | |
* Get UTF-8 string length in bytes | |
* @see http://stackoverflow.com/questions/2848462/count-bytes-in-textarea-using-javascript | |
* | |
* @param {String} string | |
* @returns {Number} | |
*/ | |
function countUtf8Bytes(string) { | |
var utf8length = 0; | |
for (var i = 0; i < string.length; i++) { |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
COLOR_RED="\e[0;31m" | |
COLOR_GREEN="\e[0;32m" | |
COLOR_YELLOW="\e[0;33m" | |
COLOR_RESET="\e[0m" | |
SEPARATOR="${COLOR_YELLOW}----------${COLOR_RESET}" |
This file contains hidden or 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
{ | |
"env": {"mocha": true}, | |
"globals": { | |
"assert": false, | |
"sinon": false, | |
"chai": false | |
} | |
} |
This file contains hidden or 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('fs'); | |
var Http = require('q-io/http'); | |
var Q = require('q'); | |
var R = require('ramda'); | |
var readFile = R.composeP(R.toString, R.partial(Q.ninvoke, Fs, 'readFile')); | |
var readPackageInfo = R.composeP(JSON.parse, readFile, R.partial(Q, 'package.json')); | |
var homePageFromAuthor = R.compose(R.propOr('', 1), R.match(/.+?\((.+?)\)$/), R.prop('author')); |
Здесь приведены шаги для выполнения задания с использованием стандартных компонент. Любые из них можно заменить аналогами
- GitHub
- Создать репозиторий своего приложения
- Приложение
- Можно использовать любое Node.js приложение, можно даже самое простое
- Приложение должно писать логи. К примеру, построение страницы можно окружить
console.time('render')
,console.timeEnd('render')
- Есть пример приложения, где можно посмотреть, как что настроено. Его использование в своём задании не будет считаться зазорным
OlderNewer