function Dictionary(vocabulary) {
var counter = 0,
length = vocabulary.length,
cache = {},
position = function(counter) {
var word, remainder;
if (counter in cache) return cache[counter];
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 s = make(1)(2)(3)(4)(5); | |
var add = function (a, b) { return a + b; }; | |
var mul = function (a, b) { return a * b; }; | |
s(add); //15 | |
s(mul); // 120 | |
//Write make =) |
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
[1, 2, 3].tail() => [1, 2, 3, 1, 2, 3] | |
[1, 2, 3].dublicate() => [1, 1, 2, 2, 3, 3] |
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
Array.prototype.tail = function() { | |
return Array.prototype.concat.apply(this, this); | |
} | |
Array.prototype.dublicate = function() { | |
var dublicated = [], | |
length = this.length; | |
for (var i=0; i<length; i++) { | |
dublicated.push(this[i], this[i]); |
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
# files | |
.gitignore | |
.idea | |
cgi-bin | |
#OS FILES | |
.DS_Store | |
Thumbs.db | |
#DEV |
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
# files | |
.gitignore | |
.idea | |
cgi-bin | |
#OS FILES | |
.DS_Store | |
Thumbs.db | |
#DEV |
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
git remote add origin https://github.com/emfy/dev.rudenta.git | |
git push -u origin master | |
git remote add origin https://github.com/emfy/dev.interpremium.git | |
git push -u origin master | |
git fetch --all | |
git reset --hard origin/master |
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
body { | |
background: none repeat scroll 0 0 #FFFFFF; | |
color: #000000; | |
font: 0.8em Arial,Helvetica,sans-serif; | |
margin: 0; | |
padding: 0 0 1em; | |
position: relative; | |
z-index: 0; | |
} |
#TC
![Сборка скриншотов dev][dev_screenshots] ![Прверка PR][pr_screenshots]
#Как работает Tyrion
- Собранный web4
- Общая родительская папка
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 () { | |
'use strict'; | |
var cluster = require('cluster'), | |
http = require('http'), | |
os = require('os'), | |
/* | |
* ClusterServer object |
OlderNewer