This is just an example to demonstrate how lab code coverage can get in the way
This file contains 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
{ | |
"compilerOptions": { | |
"plugins": [ | |
{ | |
"name": "@unsplash/ts-namespace-import-plugin", | |
"namespaces": { | |
"A": { | |
"importPath": "fp-ts/Array" | |
}, | |
"B": { |
This file contains 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
// 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'); | |
} |
This file contains 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
// Name: url encode | |
import "@johnlindquist/kit" | |
const text = await arg("What do you want to encode"); | |
const encoded = encodeURIComponent(text) | |
await copy(encoded); |
This file contains 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
// 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}`); |
This file contains 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
#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 |
This file contains 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
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 file contains 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
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 |
This file contains 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
#!/bin/bash | |
# function to make a commit on a branch in a Travis CI build | |
# be sure to avoid creating a Travis CI fork bomb | |
# see https://github.com/travis-ci/travis-ci/issues/1701 | |
function travis-branch-commit() { | |
local head_ref branch_ref | |
head_ref=$(git rev-parse HEAD) | |
if [[ $? -ne 0 || ! $head_ref ]]; then | |
err "failed to get HEAD reference" | |
return 1 |
This file contains 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
module.exports = { | |
config: { | |
hyperCommandGifs: { | |
disabledCommands: [ 'push' ] | |
}, | |
npmRegistry: 'https://registry.npmjs.org/', | |
// default font size in pixels for all tabs | |
fontSize: 12, |
NewerOlder