I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
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
// The idea here is to make sure that ShipIt process that copies the updated app exits | |
// before we launch the new version. The code below checks if the update is still in progress, | |
// which means that we are running the old app still, it keeps checking until ShipIt exits and restarts | |
// the app hoping that a new version will start up at that time. | |
// | |
// "find-process": "~1.2.1", | |
import findProcess from 'find-process'; | |
const BUNDLE_NAME = 'com.myorganization.bundleName'; | |
const SHIP_IT_BINARY = 'ShipIt'; |
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 NiceScale (lowerBound, upperBound, _maxTicks) { | |
var maxTicks = _maxTicks || 10; | |
var tickSpacing; | |
var range; | |
var niceLowerBound; | |
var niceUpperBound; | |
calculate(); |