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
| import debounce from 'lodash-es/debounce'; | |
| import { | |
| catchError, | |
| combineLatest, | |
| defer, | |
| filter, | |
| map, | |
| Observable, | |
| of, | |
| shareReplay, |
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
| /* eslint-disable @typescript-eslint/no-non-null-assertion -- ignore it. */ | |
| /* eslint-disable @typescript-eslint/no-unused-vars -- ignore it. */ | |
| /* eslint-disable simple-import-sort/imports -- ignore it. */ | |
| import { act, renderHook, render } from '@testing-library/react'; | |
| import { useEffect, useState, useSyncExternalStore } from 'react'; | |
| it('test', () => { | |
| const store = new Store<State>({ | |
| id: '1', | |
| articles: { 1: { title: '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
| const kittens = []; | |
| for(const cat of cats) | |
| { | |
| if(cat.months < 7) | |
| { | |
| kittens.push(cat.name); | |
| if(kittens.length === limit) | |
| break; | |
| } | |
| } |
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
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: %name% | |
| # Required-Start: $network $remote_fs $local_fs | |
| # Required-Stop: $network $remote_fs $local_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: forever-service startup script for %name% | |
| # Description: forever-service startup script for node script based service %name%, uses forever to start the service |
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 { Suite } = require("benchmark"); | |
| const Random = require("random-js"); | |
| const { map, into, compose, filter, take, pluck } = require("ramda"); | |
| const suite = new Suite(); | |
| const random = new Random(); | |
| function present({ name, hz, count }) { | |
| console.log( | |
| ` |
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
| the = 4144 | |
| and = 2193 | |
| to = 2042 | |
| a = 1812 | |
| of = 1656 | |
| harry = 1516 | |
| he = 1402 | |
| was = 1266 | |
| said = 1218 | |
| his = 1169 |
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() | |
| { | |
| "use strict"; | |
| let limit = 100000; | |
| class A1 | |
| { | |
| a1(){ return '1'; } | |
| b1(){ return 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
| (function() | |
| { | |
| "use strict"; | |
| function test(label, co) | |
| { | |
| let times = 3000; | |
| function * g1(){ return 1; } | |
| function * g2() | |
| { |
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
| void 0; | |
| dqw |
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
| Traceback (most recent call last): | |
| File "/home/faiwer/po/sublime_text_3/sublime_plugin.py", line 524, in run_ | |
| return self.run(**args) | |
| TypeError: run() got an unexpected keyword argument 'regex_exclude' |
NewerOlder