Skip to content

Instantly share code, notes, and snippets.

View vjk2005's full-sized avatar

Vijay vjk2005

View GitHub Profile
@vjk2005
vjk2005 / three_vids.sh
Created July 28, 2018 21:00 — forked from Erkaman/three_vids.sh
example script, that uses ffmpeg to make a video that shows three videos side by side
# Example video made by this script: https://twitter.com/erkaman2/status/990873258416361472
ffmpeg \
-y \
-i vid1.mp4 \
-i vid2.mp4 \
-i vid3.mp4 \
-filter_complex '[0:v]pad=iw*3:ih[int];[int][1:v]overlay=W*0.33:0[temp];[temp][2:v]overlay=W*0.66:0[vid]' \
-map [vid] \
-c:v libx264 \
@vjk2005
vjk2005 / counter.js
Last active June 22, 2016 21:23 — forked from anonymous/counter.js
/** @jsx React.createElement */
/* ^ JS bin needs this or it will start complaining */
/* Redux code to create a counter. Needs a div with ID "app" to start working */
const counter = (state = 0, action) => {
switch(action.type) {
case 'INCREMENT':
return state + 1