Last active
April 22, 2016 11:54
-
-
Save axelerator/9b782fbee24e972189e8 to your computer and use it in GitHub Desktop.
oneliners.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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