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
/** | |
* Copyright (C) 2021 Hunter Kohler <[email protected]> | |
*/ | |
type Dict<T> = { [P: string]: T | undefined }; | |
export type SpecificationExtension = any; | |
export type OpenAPI = { | |
components?: Components; |
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
/* | |
* Copyright (C) 2021 John Hunter Kohler <[email protected]> | |
* | |
* Simple template-literal helpers for dynamic DOM manipulation. | |
*/ | |
const emptyTagNames = new Set([ | |
"area", "base", "br", | |
"col", "embed", "hr", | |
"img", "input", "link", |
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
/* | |
* Copyright (C) 2021 Hunter Kohler <[email protected]> | |
*/ | |
/* | |
* Global variables | |
*/ | |
:root { | |
} |
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 { WritableOptions, Writable } from "stream"; | |
export interface MemoryStoreOptions extends WritableOptions { | |
objectMode?: false | undefined; | |
maxBufsize?: number; | |
} | |
export const DEFAULT_MAX_BUFSIZE = 1024 ** 2; | |
export class MemoryStore extends Writable { |
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
/* | |
* Wraps the template parameter without changing any semantics. Good | |
* for wrapping pointers. | |
*/ | |
template <typename Iterator> | |
class normal_iterator { | |
public: | |
using difference_type = typename std::iterator_traits<Iterator>::difference_type; | |
using value_type = typename std::iterator_traits<Iterator>::value_type; | |
using pointer = typename std::iterator_traits<Iterator>::pointer; |
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
# System Files | |
.DS_Store | |
# Editor Files | |
.vscode/ | |
# Build Directories | |
bin/ | |
build/ | |
dist/ |
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
#!/usr/bin/env python3 | |
import pathlib | |
import subprocess | |
import tempfile | |
def main(): | |
result = subprocess.run( | |
["pip3", "freeze"], text=True, capture_output=True, check=True) |
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
/* | |
* Copyright (C) 2021 Hunter Kohler <[email protected]> | |
*/ | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/mman.h> | |
#include "reljump.h" | |
size_t page_size() | |
{ |
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
Show hidden characters
{ | |
"$schema": "https://json.schemastore.org/eslintrc", | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"plugins": [], | |
"extends": [], | |
"globals": {}, | |
"ignorePatterns": [], |
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
/* | |
* Copyright (C) 2021 Hunter Kohler <[email protected]> | |
*/ | |
import fs from "fs"; | |
import path from "path"; | |
interface WalkdirOptions { | |
withFileTypes?: boolean; | |
followlinks?: boolean; | |
files?: boolean; |