| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| { | |
| "compilerOptions": { | |
| "plugins": [ | |
| { | |
| "name": "@unsplash/ts-namespace-import-plugin", | |
| "namespaces": { | |
| "A": { | |
| "importPath": "fp-ts/Array" | |
| }, | |
| "B": { |
| // Name: today-timestamp | |
| // Description: inserts the today date (not including time) formatted as YYYY/MM/DD | |
| // Snippet: !tday | |
| import '@johnlindquist/kit'; | |
| function twoDigits(number: number): string { | |
| return number.toString().padStart(2, '0'); | |
| } |
| // Name: url encode | |
| import "@johnlindquist/kit" | |
| const text = await arg("What do you want to encode"); | |
| const encoded = encodeURIComponent(text) | |
| await copy(encoded); |
| // Name: os version | |
| import "@johnlindquist/kit" | |
| const version_info = (await $`sw_vers`).stdout | |
| const version_lines = version_info.split("\n"); | |
| console.log(version_lines); | |
| const version_number = version_lines[1].replace(/(?:.*?)(\d+)/,"$1"); | |
| copy(`macOS ${version_number}`); |
| #if macro | |
| import haxe.macro.Context; | |
| import haxe.macro.Expr; | |
| import haxe.macro.TypeTools; | |
| #end | |
| @:remove // Doesn't seem to work on lua, eh | |
| interface Job<TJobOpt:{}> {} | |
| @:pure |
| const recoverAll = (kind,iterator) => { | |
| while (iterator.hasNext()) { | |
| const next = iterator.next(); | |
| next.setTrashed(false); | |
| Logger.log(kind + ": " + next.getName() + " RESTORED!"); | |
| } | |
| } | |
| function RecoverTrash() { | |
| const folders = DriveApp.getTrashedFolders(); |
This is just an example to demonstrate how lab code coverage can get in the way
| language: node_js | |
| cache: yarn | |
| node_js: | |
| - "8.9.0" | |
| branches: | |
| only: | |
| - master | |
| script: # this are lerna-setup related | |
| - npm run npm-setup | |
| - npm run publish -- --yes --skip-git # lerna does not pick the correct repo url, so skip git |