Skip to content

Instantly share code, notes, and snippets.

View catalinberta's full-sized avatar

Catalin Berta catalinberta

  • A bit of a nomad
View GitHub Profile
@catalinberta
catalinberta / styled-components.txt
Last active February 12, 2021 06:58
styled-components responsive mixin
/*
This mixin exposes 4 params that allows
you to create any type of media query
@param1: first breakpoint [400px, 800px, etc]
@param2 (optional): type [min, max]
@param3 (optional): orientation [width, height]
@param4 (optional): second breakpoint [1200px, 1600px, etc]
*/
@catalinberta
catalinberta / ffmpeg.txt
Last active March 31, 2021 09:05
ffmpeg
// Cut Video Length -ss startFrom -t cutLength
ffmpeg -ss 30 -i input.wmv -c copy -t 10 output.wmv
// Cut Audio -ss startFrom -t cutLength
ffmpeg -ss 0 -i output.mp3 -t 30 output.mp3
// Compress audio
ffmpeg -i input.mp3 -ab 48000 output.mp3
// Cut audio starting from 10 seconds for 6 seconds