- HTML
- HTML page
- tags
- semantic HTML
- style tag
- script tag
- blocking: async+defer
- form tag
- input tag and variants
- CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3668 | |
app.eldorado.market | |
app.eldorito.club |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choco install -y ` | |
autohotkey ` | |
copyq ` | |
cpu-z ` | |
crystaldiskinfo ` | |
crystaldiskmark ` | |
geforce-experience ` | |
git ` | |
googlechrome ` | |
gpu-z ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function christmasTree(n: number) { | |
let padding = n - 1; | |
for (let index = 1; index < n; index++) { | |
const oddNumber = index * 2 - 1; | |
console.log(' '.repeat(padding), '*'.repeat(oddNumber)); | |
padding -= 1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type A = { a: 1; b: 2 }; | |
type ObjectToArray<O> = { | |
[Key in keyof O]: [Key, O[Key]]; | |
}[keyof O][]; | |
type B = ObjectToArray<A>; | |
const entries = <O>(o: O): ObjectToArray<O> => { | |
const a: ObjectToArray<O> = []; | |
for (const key in o) { | |
const element = o[key]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const groupByProp = <P extends string, O extends { [Key in P]: string }>( | |
objects: O[], | |
prop: P, | |
) => { | |
return objects.reduce((groups, object) => { | |
const key = object[prop]; | |
return { ...groups, [key]: (groups[key] ?? []).concat(object) }; | |
}, {} as Record<O[P], O[]>); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type RequiredKeys<O extends unknown> = { | |
// eslint-disable-next-line @typescript-eslint/ban-types | |
[Key in keyof O]: {} extends Pick<O, Key> ? never : Key; | |
}[keyof O]; | |
type DeepPick<O extends unknown, Keys extends unknown[]> = Keys extends [ | |
keyof O, | |
...infer Rest | |
] | |
? Keys[0] extends RequiredKeys<O> |