<...> Required field
<A|B> A or B required
[...] Optional field
[A|B] A or B optional
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
/** | |
* Cheerio Wrapper for HTMLRewriter on Cloudflare Workers® | |
* | |
* Usage of cheerio here only simulates stream-oriented parser! It is slow! | |
*/ | |
import cheerio from 'cheerio' | |
function replace(content, options) { | |
this[0].nodeValue = content | |
} |
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 node | |
import { createRequire } from "module" | |
const require = createRequire(import.meta.url) | |
const data = require("./data.json") | |
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
/* * * * * * * * * * * * * * * * * * * * * * * * * | |
SASS string functions: | |
camelCase, kebabCase, titleCase, toLower, etc. | |
------------------------------------------------- | |
2021 Nicholas Berlette - https://git.io/Js3HD | |
* * * * * * * * * * * * * * * * * * * * * * * * */ | |
@use "sass:string"; | |
/* | |
upperCase($string) |
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
## Purge macOS Time Machine's Local Snapshots | |
## By Nicholas Berlette <github.com/nberlette> | |
## Usage: | |
## purge_local_snapshots [-q|--quiet] | |
function purge_local_snapshots() { | |
quiet=$(echo ${1,,} | grep "\-q") | |
snapshots=$(tmutil listlocalsnapshotdates | grep "-") |
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
VERSION "BMW_E90_0.0.8" | |
NS_ : | |
NS_DESC_ | |
CM_ | |
BA_DEF_ | |
BA_ | |
VAL_ | |
CAT_DEF_ | |
CAT_ |
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
/** Used by Flavor to mark a type in a readable way. */ | |
export interface Flavoring<FlavorT> { | |
_type?: FlavorT; | |
} | |
/** Create a "flavored" version of a type. TypeScript will disallow mixing flavors, but will allow unflavored values of that type to be passed in where a flavored version is expected. This is a less restrictive form of branding. */ | |
export type Flavor<T, FlavorT> = T & Flavoring<FlavorT>; | |
/** Used by Brand to mark a type in a readable way. */ | |
export interface Branding<BrandT> { | |
_type: BrandT; |
Update: As of 11 January 2022, git.io no longer accepts new URLs.
Command:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"
URLs that can be created is from:
https://github.com/*
https://*.github.com