Skip to content

Instantly share code, notes, and snippets.

View OlegChuev's full-sized avatar
👻
$> mining rubies & grazing gophers

Oleg Chuev 👋 OlegChuev

👻
$> mining rubies & grazing gophers
View GitHub Profile
@OlegChuev
OlegChuev / settings.json
Created January 8, 2026 15:30
Github Copilot Commit message instructions
{
"github.copilot.chat.commitMessageGeneration.instructions": [
{
"text": "Use conventional commit format: type(scope): description"
},
{
"text": "Use imperative mood: 'Add feature' not 'Added feature'"
},
{
"text": "Keep subject line under 50 characters"
# 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_...
...