Skip to content

Instantly share code, notes, and snippets.

@janjachacz
janjachacz / README.md
Created April 18, 2022 09:46 — forked from sir-dunxalot/README.md
An example of Cypress, Auth0, and Next.js authentication for a local Cypress test

Edit:

Since writing this gist, sir-dunxalot/cypress-nextjs-auth0 was released, which encapsulates this gist in a more user-friendly way. Try it out:

yarn add cypress-nextjs-auth0 --dev

This gist

@janjachacz
janjachacz / ffmpeg
Last active May 6, 2022 06:20
Ffmpeg: Create m3u8 stream files
###
### to m3u8
###
FILE_NAME=video
FILE_EXT=m4v
ffmpeg -i ${FILE_NAME}.${FILE_EXT} \
-filter_complex \
"[0:v]split=4[v1][v2][v3][v4]; \
@janjachacz
janjachacz / easing.js
Created February 28, 2019 10:17 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity