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
function renderImagesFromFrames(frames, width, height) { | |
// gif patch canvas | |
const tempCanvas = document.createElement('canvas'); | |
const tempCtx = tempCanvas.getContext('2d'); | |
// full gif canvas | |
const gifCanvas = document.createElement('canvas'); | |
gifCanvas.width = width || frames[0].dims.width; | |
gifCanvas.height = height || frames[0].dims.height; | |
const gifCtx = gifCanvas.getContext('2d'); |
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
#!/bin/bash | |
# for more info @see http://www.pokret.org/2017/02/how-to-build-and-install-subversion-on-shared-hosting/ | |
set -e # exit on error | |
set -x # echo on | |
MYPREFIX=$HOME/apps # Target build directory | |
MYSRC=$HOME/src # Target directory for storing source files | |
# Ensure directories are created | |
mkdir -p $MYPREFIX $MYSRC |