Skip to content

Instantly share code, notes, and snippets.

View SerenModz21's full-sized avatar
🏠
Working with TypeScript at home!

Seren_Modz 21 SerenModz21

🏠
Working with TypeScript at home!
View GitHub Profile
@samselikoff
samselikoff / use-state.code-snippets
Last active October 15, 2024 22:27
A VSCode snippet that lets you type `ush` to define some new React state.
{
"Use state": {
"scope": "javascriptreact,typescriptreact",
"prefix": "ush",
"body": [
"let [${1}, set${1/(.*)/${1:/capitalize}/}] = useState($2);",
],
"description": "useState()"
}
}
@samselikoff
samselikoff / range.code-snippets
Last active July 30, 2024 01:37
VSCode snippet for creating a loop of n numbers in JSX! https://twitter.com/samselikoff/status/1611406980639244301
{
"Range of numbers": {
"scope": "javascriptreact,typescriptreact",
"prefix": "range",
"body": [
"{[...Array($1).keys()].map((i) => (",
" <$2 key={i}>",
" $3",
" </$2>",
"))}",
@technorav3nn
technorav3nn / filters.ts
Created August 24, 2021 12:35
Filters for lavalink
const reset = {
op: "filters",
};
const vaporwave = {
op: "filters",
equalizer: [
{ band: 1, gain: 0.3 },
{ band: 0, gain: 0.3 },
],
timescale: { pitch: 0.5 },
@parmentf
parmentf / GitCommitEmoji.md
Last active November 15, 2024 20:33
Git Commit message Emoji