Skip to content

Instantly share code, notes, and snippets.

View OlegChuev's full-sized avatar
⚙️

Oleg Chuev OlegChuev

⚙️
View GitHub Profile
@OlegChuev
OlegChuev / .js
Last active January 28, 2025 11:27
Rive JS Runtime Assets Caching
// helpers/rive.js
/**
* Fetches and caches Rive animation data using localStorage
* @param {string} url - The URL of the Rive animation file
* @returns {Promise<ArrayBuffer>} The animation data as ArrayBuffer
*/
export async function getAnimationData (url) {
const cacheKey = `rive-animation-${url}`
@OlegChuev
OlegChuev / dev.env
Created August 3, 2023 10:32
Docker Compose Stripe CLI
...
# stripe-cli will automatically pick up STRIPE_API_KEY from dev.env file
STRIPE_API_KEY=sk_test_...
...