- Versioning:
npm version patch|minor|major
uses semver and so should we. - Node.js version mgmt:
.nvm
file via https://github.com/creationix/nvm - ENV vars:
.env
file (see: dotenv) - Dependency locking:
npm shrinkwrap
(so we don't have to commit ./NODE_MODULES) - Logging: winston
- Code style + linting: js-standard
- Security scanning: Snyk
- Build system: Gulp
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
license: gpl-3.0 |
From Wikipedia:
Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.
Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.
forked from mbostock's block: Epicyclic Gearing
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
#!/bin/bash | |
CURRHASH=`git rev-parse --short HEAD` | |
CURRBRANCH=`git rev-parse --abbrev-ref HEAD` | |
git commit -am "Deploying ${CURRHASH} to Heroku" | |
git checkout -b "deploy-${CURRHASH}" | |
gulp lib-build |
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
// resolution is [width, height] structure | |
// Evaluate resolution by width (height doesn't matter, just keep it proportional) | |
function evalResolutionByWidth(requiredWidth, actualResolution) { | |
var actualWidth = actualResolution[0]; | |
var actualHeight = actualResolution[1]; | |
if (actualWidth > requiredWidth) { | |
var scale = actualWidth / requiredWidth; | |
return [requiredWidth, Math.round(actualHeight / scale)]; | |
} else { |
NewerOlder