Skip to content

Instantly share code, notes, and snippets.

View ErgashevJahongir's full-sized avatar
🏠
Uydan ishlash

Jahongir Ergashev ErgashevJahongir

🏠
Uydan ishlash
View GitHub Profile
@muneesmmw
muneesmmw / firework-simulator-v2.markdown
Created September 5, 2022 07:58
Firework Simulator v2

Firework Simulator v2

Fireworks fan here. This simulation of various firework effects offers variety and an attempt at realism.

Be sure to check out the settings menu (cog icon on top right) for more features and controls.


🎆 Major v2 Update! 🎆


@ecxyzzy
ecxyzzy / .eslintrc.js
Last active September 10, 2022 20:17
Proposed ESLint config for ICSSC Projects, version 0.1
// JavaScript projects
// setup: npm install --save-dev eslint eslint-plugin-simple-import-sort eslint-plugin-import
const js = {
"root": true,
"plugins": ["simple-import-sort", "import"],
"extends": ["eslint:recommended"],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error", // these two autosort imports and exports
"import/first": "error", // ensures all imports are at top of file
@adrianhajdin
adrianhajdin / App.css
Last active May 14, 2025 11:17
Build and Deploy a Full Stack Realtime Chat Messaging App with Authentication & SMS Notifications
:root {
--primary-color: #005fff;
--primary-color-alpha: #005fff1a;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
@nikparo
nikparo / Effect.jsx
Created February 18, 2021 09:04
Running React parent effects before child effects
// Sometimes you want to run parent effects before those of the children. E.g. when setting
// something up or binding document event listeners. By passing the effect to the first child it
// will run before any effects by later children.
export function Effect({ effect }) {
useEffect(() => effect?.(), [effect]);
return null;
}
//
@wooooodward
wooooodward / axios.js
Created November 6, 2019 17:16
Axios plugin example with request interceptor that adds JWT token to the auth header and 401 response interceptor to refresh token
import Vue from 'vue'
import axios from 'axios'
import store from '../store'
import { TokenService } from '../services/storage.service'
// Full config: https://github.com/axios/axios#request-config
let config = {
baseURL:
process.env.baseURL ||