- HTML
- HTML page
- tags
- semantic HTML
- style tag
- script tag
- blocking: async+defer
- form tag
- input tag and variants
- CSS
This file contains hidden or 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 listOfPasswords = [ | |
| "password", | |
| "blink182", | |
| "12345678", | |
| "whateverPass", | |
| "password", | |
| "iamyourfather", | |
| "12345678", | |
| "blink182", | |
| "password", |
This file contains hidden or 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 quickSort = (a: Array<number>): Array<number> => { | |
| if (a.length <= 1) { | |
| return a | |
| } | |
| const [n, ...ns] = a | |
| const { left, right } = ns.reduce<{ left: Array<number>; right: Array<number> }>( | |
| ({ left: left1, right: right1 }, m) => { | |
| if (m > n) { | |
| return { left: left1, right: right1.concat(m) } | |
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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> |