Skip to content

Instantly share code, notes, and snippets.

@axelerator
Last active April 22, 2016 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axelerator/9b782fbee24e972189e8 to your computer and use it in GitHub Desktop.
Save axelerator/9b782fbee24e972189e8 to your computer and use it in GitHub Desktop.
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