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 x = [1, 2, 3] | |
| x.reduce((n, acc) => { | |
| if (n > 2) { | |
| return acc | |
| } | |
| return acc + n | |
| }, 0) |
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
| nnoremap <Tab> :CocCommand explorer<CR> | |
| call coc#config('explorer', { | |
| \ 'sources': [{'name': 'file', 'expand': 1}], | |
| \ 'file.columns': ['git', 'indent', 'icon', 'filename', 'size', 'readonly'], | |
| \ 'file.showHiddenFiles': 1, | |
| \ 'width': 60, | |
| \ 'icon.enableNerdfont': 1, | |
| \ 'keyMappings.<tab>': 'quit', | |
| \ 'keyMappings.<cr>': 'expandOrShrink' |
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
| package main | |
| import ( | |
| "encoding/hex" | |
| "fmt" | |
| ) | |
| func main() { | |
| var md5, err = hex.DecodeString("7f94dd413148ff9ac9e9e4b6ff2b6ca9") | |
| if err != nil { |
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
| package main | |
| import "fmt" | |
| func main() { | |
| var md5 = []byte("7f94dd413148ff9ac9e9e4b6ff2b6ca9") | |
| fmt.Println(len(md5)) | |
| } |
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
| package main | |
| import "fmt" | |
| func main() { | |
| var md5 = "7f94dd413148ff9ac9e9e4b6ff2b6ca9" | |
| fmt.Println(len(md5)) | |
| } |
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
| export type MapToBlocValue<T extends {}> = { | |
| [K in keyof T]: T[K] extends BlocSelect<any> ? T[K]['value'] : MapToBlocValue<T[K]> | |
| } |
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
| interface PathArray<T, L> extends Array<string | number> { | |
| ['0']?: keyof T | |
| ['1']?: L extends { | |
| ['0']: infer K0 | |
| } | |
| ? K0 extends keyof T | |
| ? keyof T[K0] | |
| : never | |
| : never | |
| ['2']?: L extends { |
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
| nick | c | |
| ----------+------- | |
| Aleksejs | 54188 | |
| daGrevis | 32604 | |
| ij | 25946 | |
| dianshi | 23906 | |
| snowball | 22033 | |
| zn | 20907 | |
| jurgenzz | 13936 | |
| emilsp | 11013 |
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
| nick | c | |
| ----------+------ | |
| dianshi | 2292 | |
| Aleksejs | 1438 | |
| daGrevis | 1100 | |
| snowball | 694 | |
| zn | 662 | |
| siers | 556 | |
| vdk | 303 | |
| emilsp | 287 |
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
| nick | c | |
| ----------+------- | |
| Aleksejs | 54188 | |
| daGrevis | 32604 | |
| ij | 25946 | |
| dianshi | 23906 | |
| snowball | 22033 | |
| zn | 20907 | |
| jurgenzz | 13936 | |
| emilsp | 11013 |
NewerOlder