Pinned Loading
- rust-full-websocket-example
rust-full-websocket-example PublicRust Websocket Server Example w/ De/Serialization, Async/Await, Arg Parsing and Logging.
Rust 10
- [TypeScript] Iterating over enums
[TypeScript] Iterating over enums 1functionisStringEnum<TextendsRecord<string,string|number>>(t: T): boolean{
2returntypeofObject.values(t).pop()==='string';
3}45exportfunctionenumKeys<TextendsRecord<string,string|number>>(t: T): (keyofT)[]{
- [TypeScript] Types for JavaScript's ...
[TypeScript] Types for JavaScript's replacerFunction in String.prototype.replaceAll 1exportinterfaceReplacerArgs{
2match: string;// the matched substring
3groups: string[];// captured groups
4offset: number;// offset of match
5string: string;// entire string
- [JS] Load scripts dynamically
[JS] Load scripts dynamically 1// Function to load a JS file2asyncfunctionloadScript(url){
3returnawaitnewPromise((resolve,reject)=>{
4constscript=document.createElement('script');
5script.src=url;
- [C++] Short IntervalMap data structu...
[C++] Short IntervalMap data structure implementation 1/*2* NOTE 1: This works on VC++ but might need a little extra syntax to work on GCC.3* NOTE 2: It breaks when calling set_interval on the minimum key (std::numeric_limits<K>::lowest()) and maybe on the maximum key too.4*5* OPERATIONS:
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.
Uh oh!
There was an error while loading. Please reload this page.

