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
$ node -v | |
v0.10.0 | |
$ npm -v | |
1.2.14 | |
$ npm list | |
npm WARN package.json fs-boot@0.0.9 'devDependences' should probably be 'devDependencies' | |
bem-project-stub@0.0.1 /Users/megatolya/project-stub |
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
// inspired by https://gist.github.com/rpflorence/701407 | |
// alias s='node /path/to/server' [port] | |
// alias ss='sudo node /path/to/server 80' | |
var http = require("http"), | |
url = require("url"), | |
PATH = require("path"), | |
fs = require("fs") | |
path = './', | |
port = process.argv[3] || process.argv[2] || 8888; |
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
{ | |
"vadd": "0", | |
"vdel": { | |
"vadd": "0", | |
"vdel": "14", | |
"vshow": { | |
"vadd": "0", | |
"vdel": { | |
"vadd": { | |
"vadd": { |
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
chrome.tabs.onUpdated.addListener(console.log.bind(console)); |
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 Twitter = require('node-twitter'); | |
var path = require('path'); | |
var restClient = new Twitter.RestClient( | |
// ;) | |
); |
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
// ==UserScript== | |
// @name metrika logs helper | |
// @namespace https://metrika.yandex.ru/ | |
// @description Позволяет скрывать ошибки на странице параметры визитов | |
// @include https://metrika.yandex.ru/stat/user_vars/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var $ = document.querySelector.bind(document); |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
}); | |
grunt.loadNpmTasks(); | |
grunt.registerTask(); | |
}; |
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
/*! | |
* jQuery JavaScript Library v1.8.3 | |
* http://jquery.com/ | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ | |
* | |
* Copyright 2012 jQuery Foundation and other contributors | |
* Released under the MIT license | |
* http://jquery.org/license |
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
{ | |
"kino-199d19d1-fb2d-4def-9479-66c782aed5e7":{ | |
"originalId":"199d19d1-fb2d-4def-9479-66c782aed5e7", | |
"type":"kino", | |
"id":"199d19d1-fb2d-4def-9479-66c782aed5e7", | |
"shortName":"Кинотеатр", | |
"fullName":"Каро Фильм Атриум", | |
"address":"Земляной Вал, д.33", | |
"phone":"(495) 545 05 05", | |
"site":"karofilm.ru", |
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 net = new (require('brain').NeuralNetwork); | |
var practice = []; | |
for (var i = 20; i < 30; i++) { | |
practice.push({input: [i], output: [1]}); | |
} | |
for (var i = 40; i < 80; i++) { | |
practice.push({input: [i], output: [0]}); | |
} | |
for (var i = 0; i < 20; i++) { |
OlderNewer