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
<!doctype html> | |
<html> | |
<head> | |
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script> | |
<script> | |
// ensure the web page (DOM) has loaded | |
document.addEventListener("DOMContentLoaded", function () { | |
// Create a popcorn instance by calling the Vimeo player plugin | |
var pop = Popcorn.vimeo( |
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 onGLC(glc) { | |
glc.loop(); | |
glc.size(400, 400); | |
glc.setDuration(3.5); | |
glc.setFPS(30); | |
glc.setMode('single'); | |
//glc.setEasing(false); | |
glc.setMaxColors(256); | |
glc.setQuality( 1 ); | |
var list = glc.renderList, |
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
# Grav Specific | |
.sass-cache | |
composer.lock | |
cache/* | |
assets/* | |
logs/* | |
images/* | |
user/data/* | |
# OS Generated |
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
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build-js": "browserify index.js -o build/bundle.js", | |
"watch-js": "nodemon -e js -w sketch.js -x 'npm run build-js'", | |
"browser-sync": "browser-sync start --server --files ./sketch.js", | |
"watch": "npm run watch-js", | |
"dev": "npm run watch & npm run browser-sync" | |
}, |
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
<snippet> | |
<content><![CDATA[ | |
map(function(${1:value}, ${2:index}, ${3:array}) { | |
return ${0} | |
}); | |
]]></content> | |
<tabTrigger>map</tabTrigger> | |
<scope>source.js</scope> | |
<description>Array map</description> | |
</snippet> |
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
/** | |
* Interpolates a Catmull-Rom Spline through a series of x/y points | |
* Converts the CR Spline to Cubic Beziers for use with SVG items | |
* | |
* If 'alpha' is 0.5 then the 'Centripetal' variant is used | |
* If 'alpha' is 1 then the 'Chordal' variant is used | |
* | |
* | |
* @param {Array} data - Array of points, each point in object literal holding x/y values | |
* @return {String} d - SVG string with cubic bezier curves representing the Catmull-Rom Spline |
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
python3 -m http.server |
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
{ | |
"name": "npm-scripts-boilerplate", | |
"version": "1.0.0", | |
"description": "npm scripts based workflow including scss & livereload", | |
"dependencies": { | |
"lodash": "^4.17.4" | |
}, | |
"devDependencies": { | |
"browserify": "latest", | |
"livereload": "latest", |
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
convert -resize 50% -delay 20 -loop 1 *.png mygif.gif |
OlderNewer