Skip to content

Instantly share code, notes, and snippets.

{ domain: null,
_events: {},
_maxListeners: 10,
size: 126083,
path: 'public/uploads/ffbf859e7ff6864f396021bcebbf2718.png',
name: 'avatar.png',
type: 'image/png',
hash: null,
lastModifiedDate: Sun Mar 30 2014 17:15:47 GMT+0600 (YEKT),
_writeStream:
@A
A / dabblet.css
Created April 18, 2014 11:40
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.a {
width: 600px;
height: 400px;
background: #eba;
position: relative;
}
@A
A / dabblet.css
Created April 18, 2014 11:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.a {
width: 600px;
height: 400px;
background-color: #eba;
position: relative;
}
@A
A / clinch.js
Last active August 29, 2015 14:00
Примеры использования модуля next-done
// Ожидание завершения сборки всех модулей
module.exports = function (done) {
var modules = config.get('clinch');
var keys = Object.keys(modules);
var next = new Countdown(keys.length, done);
for (var i = keys.length - 1; i >= 0; i--) {
var key = keys[i];
new Compilation(modules[key], next);
}
};
@A
A / the bogosort
Last active August 29, 2015 14:00
bogosort.js
var isSorted = function (arr) {
for (var i in arr) {
if (i === 1) next;
if (arr[i-1] > arr[i]) return false;
}
return true;
};
var shuffle = function (arr) {

[Go to anchore][1]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.

Vivamus fermentu

[books@elena ~/underpage]$ npm i nodetime
npm WARN package.json underpage@0.0.0 No repository field.
npm WARN package.json better-assert@1.0.0 No repository field.
npm WARN package.json debounce@0.0.3 No repository field.
npm WARN package.json jquery-form@3.50.0 No repository field.
npm WARN package.json keyboardjs@0.4.2 'repositories' (plural) Not supported. Please pick one as the 'repository' field
npm WARN package.json terminal-notifier@0.1.2 No repository field.
npm WARN package.json util@0.10.2 util is also the name of a node core module.
npm http GET https://registry.npmjs.org/nodetime
npm http 200 https://registry.npmjs.org/nodetime
{
initialize: function () {
kb.on('ctrl + c', this.trigger.bind(this, 'copy'));
kb.on('command + c', this.trigger.bind(this, 'copy'));
kb.on('delete, backspace', this.trigger.bind(this, 'delete'));
},
trigger: function (type, event, data) {
if ($(':focus').length) { return; } // fix для того, чтобы
event.preventDefault();
if ('copy' === type) { window.bufferCPE = []; }
'use strict';
/**
* Module dependencies.
*/
var config = require('nconf');
var log = require('microlog')(module);
// end of dependencies.
_.filter(um.stack.where({type: 'change'}), function (model) {
return !model.get('after')._id
});