This file contains hidden or 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
ffmpeg -i some_movie.mov -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > some_movie.gif |
This file contains hidden or 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
$(document).on 'keypress', '[data-behaviour="prevent-submit"]', (ev) -> | |
ev.preventDefault() if ev.keyCode == 13 && ev.target.tagName != 'TEXTAREA' |
This file contains hidden or 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
Array(8).fill().map((_, b) => ({ value: ++b, label: String(b) })) |
This file contains hidden or 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
{ | |
"editor.codeLens": false, | |
"files.trimTrailingWhitespace": true, | |
"files.insertFinalNewline": true, | |
"window.zoomLevel": 0, | |
"editor.tabSize": 2, | |
"editor.detectIndentation": false, | |
"editor.insertSpaces": true, | |
"workbench.startupEditor": "newUntitledFile", | |
"typescript.check.npmIsInstalled": false, |
This file contains hidden or 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
bounding_box([bounds.width * 0.5, cursor], width: 200, height: 113) do | |
image_width = 200 | |
image_height = 113 | |
crop_size = 20 | |
save_graphics_state do | |
soft_mask do | |
fill_color 0, 0, 0, 0 | |
fill_rectangle [crop_size, image_height - crop_size], image_width - crop_size * 2, image_height - crop_size * 2 | |
end | |
image "#{IMAGES_PATH}/cat.jpg", at: [bounds.left, bounds.top], width: image_width, height: image_height |