Skip to content

Instantly share code, notes, and snippets.

@axelerator axelerator/onliners
Last active Apr 22, 2016

Embed
What would you like to do?
oneliners.md
# Ruby
Hash[*((0..4).flat_map{|i| ['column_' + i.to_s, nil]})]
# => {"column_0"=>nil, "column_1"=>nil, "column_2"=>nil, "column_3"=>nil, "column_4"=>nil}
# Shell
### Bildersequenzen in Video für Web konvertieren mit:
avconv -f image2 -i "img_00%02d.jpg" -c:v libvpx -b:v 1M -an loop.webm
avconv -f image2 -i "img_00%02d.jpg" -c:v libx264 -b:v 1M -an loop.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.