Skip to content

Instantly share code, notes, and snippets.

@vferries
vferries / images_processing.md
Last active March 22, 2016 14:41
Some image manipulation tricks

Resize to a maximal size keeping aspect ratio

mogrify -resize 2000x1500 *.jpg

Video from time lapse pictures

ffmpeg -r 25 -pattern_type glob -i '*.jpg' -c:v mjpeg -q:v 2 output.avi

@vferries
vferries / templates.txt
Created June 17, 2015 13:44
Templates Eclipse jdk8
foreach jdk8 style :
${iterable}.forEach(${iterable_element} -> {
${cursor}
});
stream :
${iterable}.stream()
.map(${element} -> ${element}${cursor})
@vferries
vferries / characters.rb
Last active January 12, 2023 08:24
Ascii art characters in order to display them on LED grids
chars_dict = {
"A" => [" OOO ",
" OO OO ",
"OO OO",
"OO OO",
"OOOOOOO",
"OO OO",
"OO OO",
" ",
" "],