Skip to content

Instantly share code, notes, and snippets.

View vitalik74's full-sized avatar

Vitaliy Tsibikov vitalik74

  • Russia, Ekaterinburg
View GitHub Profile
@vitalik74
vitalik74 / mov2webp.sh
Created May 29, 2018 15:12 — forked from dreampiggy/mov2webp.sh
ffmpeg MOV to Animated WebP
ffmpeg -i input.mov -vcodec libwebp -lossless 1 -q:60 -preset default -loop 0 -an -vsync 0 output.webp
@vitalik74
vitalik74 / encoding-video.md
Created May 29, 2018 14:33 — forked from Vestride/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@vitalik74
vitalik74 / docker-clear.bat
Last active June 27, 2018 11:34 — forked from daredude/docker-clear.bat
delete all docker container and images on windows
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")