I hereby claim:
- I am nosajio on github.
- I am nosaj (https://keybase.io/nosaj) on keybase.
- I have a public key whose fingerprint is B2F7 BF62 9A76 E734 4FE9 8AB7 9450 AC6D 906F 6AD2
To claim this, I am signing this object:
for i in `find . -type d -maxdepth 1`; do | |
echo $i; | |
cd $i; | |
git log --oneline --all --author="\(jason\)" | wc -l; | |
cd ~/Code; | |
done |
import csv | |
sourcefile = './src/origin.csv' | |
destinationfile = './dist/https-comments.csv' | |
data = [] | |
print('Opening write file %r' % destinationfile) | |
with open(destinationfile, 'w') as writeFile: | |
writer = csv.writer(writeFile, delimiter=',') | |
print('Opening read file %r' % sourcefile) | |
with open(sourcefile, newline='') as csvfile: | |
disqussrc = csv.reader(csvfile, delimiter=' ', quotechar='|') |
// ================================================== | |
// Active media query listener / breakpoint manager | |
// @depends: Modernizr | |
// ================================================== | |
var breaker = function( breakpoints ) { | |
var exec = [] | |
, self = this; | |
if (typeof breakpoints !== 'object') return false; | |
self.test = function() { |
/**! | |
* SCSS Modular scale function | |
* Will use $ms-base as the scale, and $degrees to calculate stops on the scale | |
* | |
* @author Jason Howmans <@jhwmns> | |
* | |
* @examples | |
* Usage example for font size: | |
* // Using a scale of 1.4, this will output font-size: 1.96rem; | |
* font-size: #{ms(2)}rem; |
/**! | |
* Unless | |
* @created April 2013 by @jasonhowmans | |
*/ | |
var unless = function( condition, callback ) { | |
if (typeof callback === 'function') { | |
if (!condition) callback(); | |
}else{ | |
return !condition; | |
} |
(function() { | |
'use strict'; | |
/** | |
* Radial Coordinates animation | |
* For use with <path d="{coords}"> | |
* | |
* | |
* Example | |
* |
I hereby claim:
To claim this, I am signing this object:
First, save the input video as individual frames at 10 FPS:
ffmpeg -i input.mp4 -vf scale=500:-1:flags=lanczos,fps=10 frames/ffout%03d.png
Next, join the frames up again to make the gif:
ffmpeg -i ./frames/ffout%03d.png output.gif
Bonus to optimise the gif with gifsicle:
gifsicle -O3 output.gif -o output-optimized.gif
#!/bin/bash | |
sudo rm /System/Library/Caches/com.apple.IntlDataCache*; | |
sudo rm /var/folders/*/*/*/com.apple.IntlDataCache*; |
$('.animated-hover').each(function(i) { | |
$(this).on('mouseover', function() { | |
$(this).addClass('animated'); | |
}) | |
.on('mouseout', function() { | |
$(this).removeClass('animated'); | |
}); | |
}); |