Skip to content

Instantly share code, notes, and snippets.

@golomidov
golomidov / gist:141d2eeb1a13f4815afef7bbc2606e02
Created October 21, 2016 10:52
no flatten flatten with same behavoir
require 'minitest/autorun'
include MiniTest::Assertions
def arr_deep(arr)
raise NoMethodError if (!arr.respond_to?(:to_a) or arr.nil?)
arr.to_a.map do |q|
if q.is_a?(Array)
arr_deep(q)
else
q
@golomidov
golomidov / stepbystep.txt
Created January 7, 2014 13:57
FFmpeg - custom filter addition
//
// ffmpeg_customfilter
// - base name - ainfoda (audio filter)
// - base name - vinfoda (video filter)
//
// 1. create new filein libavfilter/infoda_af.c
// use any filters as template, simplest is af_afnull.c
// filename is arbitrary (all recent named as af_name), but for me all my stuff called with