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
// tslint:disable | |
// MUI getContrastText | |
// REF: https://github.com/mui-org/material-ui/blob/ec37e2bb3c904d9552fa819425ee1eef72914996/packages/material-ui/src/styles/createPalette.js#L104 | |
import * as warning from './node_modules/warning/warning.js'; | |
export default function getContrastText({ | |
background, | |
contrastThreshold, | |
dark, |
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
## KEYS | |
# Mod1 alt | |
# Mod4 win | |
# Control ctrl | |
# exit fluxbox | |
Control Mod1 Delete :Exit | |
# click on the desktop to get menus | |
OnDesktop Mouse1 :HideMenus |
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
// tslint:disable no-any | |
export default function bind2(this: any, that: any) { | |
const f = this // tslint:disable-line no-this-assignment | |
const initialArgs = Array.prototype.slice.call(arguments, 1) | |
return (finalArgs: any[]) => f.apply(that, [...initialArgs, ...finalArgs]) | |
} |
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
# replaced with tgr-extension-pack, listed here: | |
# https://github.com/TGRstack/vscode-extensions/blob/master/package.json#L34 |
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
# Load NVM | |
export NVM_DIR="$(realpath $HOME/.nvm)" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# Linux antigen file | |
source /usr/share/zsh-antigen/antigen.zsh | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh |
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
// package-scripts.js, partial | |
const git = { | |
tags: { | |
push: 'git push --follow-tags origin master', | |
deleteAllLocally: "git tag -d `git tag | grep -E '.'`", | |
} | |
} | |
const release = { |
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
// package-scripts.js | |
const scripts = { | |
build, | |
commit, | |
default: start.default, | |
scrub, | |
start, | |
test: 'echo "Error: no test specified" && exit 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
/** Available scripts (camel or kebab case accepted) | |
* like `nps` or a series like `nps build start.build` | |
* for more info `nps help build` | |
* | |
* build - nps commit.pre && nps build.ts | |
* build.ts - nps scrub.build && nps build.ts.tsc | |
* build.ts.tsc - tsc | |
* commit.pre - nps commit.pre.saveFixes | |
* commit.pre.saveFixes - git add . | |
* commit.zen - git-cz |
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 = { | |
scripts: { | |
build: 'rimraf dist/ && tsc', | |
commit: { | |
default: 'git-cz', | |
retry: 'git-cz --retry', | |
noverify: 'git-cz --no-verify' | |
}, | |
default: { | |
build: 'node dist/index.js', |
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
/** TS-Module w/ Declarations (Part 1/4) | |
* http://TGRstack.com/#ts-module_articles_part-1 | |
* ./index.ts (Section 6. Figure 02.A.) | |
**/ | |
import Hello from '2018-ts-module' | |
console.log(Hello('Aloha', 'Jupiter')) |
NewerOlder