Skip to content
View test.js
// simple memory test
var memoryTest = function() {
function clickTest() {
var test = 'clickTest ' + iteration;
if (this.timing) {
console.time(test);
} else {
console.info(test);
}
$(".plugintab label").each(function(i, el){$(el).find("span:first").click();})
View log.js
/**
* Log wrapper and config
*
* @return module
*/
var winston = require('winston');
function getLogger(module) {
return new winston.Logger({
transports : [
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

View lol.js
// paste in your console
speechSynthesis.onvoiceschanged = function() {
var msg = new SpeechSynthesisUtterance();
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0];
msg.text = Object.keys(window).join(' ');
this.speak(msg);
};
View check.js
var isInput = function(e) {
return (e.srcElement.contentEditable === "true"
|| e.srcElement == 'textarea' || e.srcElement == 'textarea');
}
View router.js
// micro Router for Front-end
//
// Deps: Require.js
//
// Tries to get the first portion ('folder') of the current location
// using Require.js and evaluate it;
//
// Alex Buznik (shu@buznik.net), 2015
var Router = function() {
this.routes = {
View computer-sale.md

Продаю некогда облюбованный и долгожданный компьютер.

Хотелка 6000 грн. Пока только комплектом.

View debounce.js
/**
* Debounce creates a FUNCTION that when invoked, delays invoking func for wait milliseconds since
* the last time it is called.
*
* Examples of where this may be useful:
*
* // Avoiding repeated costly operations while a window size is in flux
* jQuery(window).on('resize', debounce(calculateLayout, 150));
*
* // Avoiding triggering an event on a double button press
View README.md

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.

View data.json
{
"nodes": [
{"group":1, "neighbours":[3,7,8,9,10,11],"node_id":1},
{"group":1, "neighbours":[1],"node_id":3},
{"group":1, "neighbours":[1,8,9,10],"node_id":7},
{"group":2, "neighbours":[1,7,10,11],"node_id":8},
{"group":3, "neighbours":[1,7,10],"node_id":9},
{"group":1, "neighbours":[1,7,9,11],"node_id":10},
{"group":1, "neighbours":[1,7,9],"node_id":11}
]
Something went wrong with that request. Please try again.