Skip to content

Instantly share code, notes, and snippets.

View malcoriel's full-sized avatar

Valeriy Kuzmin malcoriel

View GitHub Profile
@malcoriel
malcoriel / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<polymer-element name="my-element">
@malcoriel
malcoriel / gm-better-slidescom-styles.js
Last active May 20, 2017 04:49 — forked from stowball/gm-better-slidescom-styles.js
A Greasemonkey script for better slides.com styles
document.querySelector('.controls').remove();
document.querySelector(".slide-number").style['font-size']='40px';
@malcoriel
malcoriel / gist:fdeba2a5d88c4a2b8d0dc9a76d4b89b3
Created July 4, 2017 10:42
Convert mp4 to gif via ffmpeg
ffmpeg -y -i $1 -vf fps=10,scale=1024:-1:flags=lanczos,palettegen palette.png
ffmpeg -y -i $1 -i palette.png -filter_complex "fps=10,scale=1024:-1:flags=lanczos[x];[x][1:v]paletteuse" -loop 1 $1.gif
rm palette.png