Skip to content

Instantly share code, notes, and snippets.

View ksarna's full-sized avatar

Kamil Sarna ksarna

View GitHub Profile
@ksarna
ksarna / devert
Created April 2, 2017 21:30 — forked from cfr/devert
Fix vertical video
#!/usr/bin/env sh
# http://stackoverflow.com/a/30819570/187663
ffmpeg -i $1 -lavfi '[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16' $1.fixed.mov
@ksarna
ksarna / index.js
Created March 3, 2017 14:20 — forked from mrzmyr/index.js
React Native - Detect Double Tap
var Index = React.createClass({
getInitialState: function () {
return {
lastPress: 0
}
},
onPress: function () {
var delta = new Date().getTime() - this.state.lastPress;