Pinned Loading
-
rust-full-websocket-example
rust-full-websocket-example PublicRust Websocket Server Example w/ De/Serialization, Async/Await, Arg Parsing and Logging.
Rust 7
-
[TypeScript] Iterating over enums
[TypeScript] Iterating over enums 1function isStringEnum<T extends Record<string, string | number>>(t: T): boolean {
2return typeof Object.values(t).pop() === 'string';
3}
45export function enumKeys<T extends Record<string, string | number>>(t: T): (keyof T)[] {
-
[TypeScript] Types for JavaScript's ...
[TypeScript] Types for JavaScript's replacerFunction in String.prototype.replaceAll 1export interface ReplacerArgs {
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 file
2async function loadScript(url) {
3return await new Promise((resolve, reject) => {
4const script = 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.