Skip to content

Instantly share code, notes, and snippets.

View gugacavalieri's full-sized avatar
keep jammin', keep coding 🎸

Gustavo Cavalieri Fernandes gugacavalieri

keep jammin', keep coding 🎸
View GitHub Profile
Sleavely / api.js
Last active June 1, 2024 18:33
A helper for running a local webserver against lambda-api
// Require the framework and instantiate it
const api = require('lambda-api')()
// Define a route
api.get('/status', async (req, res) => {
return { status: 'ok' }
api.get('/', async (req, res) => {
AgentOak /
Last active July 19, 2024 16:57
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
ahmadazimi / replace-zero-width-space.php
Last active April 23, 2024 16:20
PHP replace Zero Width Space using preg_replace
* U+200B zero width space
* U+200C zero width non-joiner Unicode code point
* U+200D zero width joiner Unicode code point
* U+FEFF zero width no-break space Unicode code point