Skip to content

Instantly share code, notes, and snippets.

View OlegChuev's full-sized avatar
♦️
Mining rubies

Oleg Chuev 👋 OlegChuev

♦️
Mining rubies
View GitHub Profile
# Pre-requisites
```bash
yarn add nice-select2
```
# HTML Element
```html
<select id="test">
@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_...
...