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
// viewport dimensions | |
const WIDTH = 300; | |
const HEIGHT = 400; | |
// initial values | |
var tx = 0, | |
ty = 0, | |
scale = 1; | |
/** |
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
// Whitewater object | |
function Whitewater(canvas, inputPath, options) { | |
'use strict'; | |
var context = null; | |
var imageIndex = 0; | |
var coordinates = { | |
x: 0, | |
y: 0 | |
}; |
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
# add remove | |
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git | |
git remote -v | |
# checkout master and delete other branches | |
git checkout master | |
git branch | grep -v master | xargs git branch -D | |
# sync master | |
git fetch upstream |