npm install
npm install is-color # Only installs is-color
npm install cldr-data # second level dep (of rxaviers-foo-bar)
npm install is-color # Installs is-color + re-installs cldr-data
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
/** | |
This is a shim for the npm binary shim of Nodist. | |
It exists, so that WebStorm is happy. | |
See https://github.com/marcelklehr/nodist/issues/158 | |
Instructions: | |
1. Create the following directory: `Nodist\bin\bin` | |
2. Place this file in the new directory | |
*/ | |
var child_process = require('child_process') |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var vdom = require('virtual-dom') | |
, h = vdom.h | |
var virtualize = createVNode | |
var vtree = h('div', null, [ | |
h('button', {onclick: function() { |
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 ObservStruct = require('observ-struct') | |
, ObservArray = require('observ-array') | |
, Computed = require('observ/computed') | |
, vdom = require('virtual-dom') | |
, h = vdom.h | |
var state = ObservStruct({ | |
users: ObservArray([ | |
ObservStruct({id: 0, name: 'foo'}) | |
, ObservStruct({id:1, name: 'bar'}) |
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 dom = require('virtual-dom'); | |
var fromHTML = require('vdom-virtualize').fromHTML; | |
var html = '<svg namespace = "http://www.w3.org/2000/svg" class="stats-aside__svg" height="160" width="160"> <circle namespace = "http://www.w3.org/2000/svg" class="stats-aside__svg-bg" cx="80" cy="80" r="78" stroke="#f2f2f2" stroke-width="4" fill="none" ></circle> <circle namespace = "http://www.w3.org/2000/svg" class="stats-aside__svg-progress" cx="80" cy="80" r="78" stroke="#f9c033" stroke-width="4" fill="none" stroke-dashoffset="228.92" stroke-dasharray="503, 999"></circle> </svg>' | |
var vsvg = fromHTML(html); | |
var node = dom.create(vsvg); | |
document.body.appendChild(node); |
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
/* | |
This is a debug tool. It checks all revisions for data corruption | |
*/ | |
if(process.argv.length != 3) | |
{ | |
console.error("Use: node bin/checkPad.js $PADID"); | |
process.exit(1); | |
} | |
//get the padID |
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
* SECURITY FIX: PLugin manager: escape rendered npm package info | |
* FIX: PLugin manager: Update npm to fix fetching of plugins | |
* FIX: Import: Dont die on bad html | |
* FIX: Export: when exporting HTML include html and body | |
* FIX: Editor: Correct links with protocols that are not equal to http | |
* FIX: Finally, Update padList correctly | |
* FIX: Fix walking caret bug (#1766) | |
* FIX: Add input validation for html param in setHTML() | |
* FIX: Timeslider: Don't crash if CHANGESET_REQ fails | |
* FIX: Dont error when pressing del at pos(0,0) |
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
/** | |
* Find a (minimal) path from a given revision to another revision, | |
* regardless of what changesets are available | |
* @param {number} from - The revision # from which to start. | |
* @param {number} to - The revision # which the path should try to reach. | |
* @param {number} max - The last revision # | |
* @returns {object} - A list of tuples (i.e. [10, 20]) which each describe an edge between two revisions. | |
*/ | |
calcPath: function (from, to, max) { | |
var path = [] |
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
Birds: https://secure.flickr.com/photos/lightlypaintedpixels/50175328/ |