- Copy contents of
extensions.txt
to your clipboard pbpaste | xargs -I % code --install-extension %
- Done.
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
/** | |
* Generate type definitions for `material-ui-icons`. | |
* The generated contens will be written to | |
* `src/typings/material-ui-icons.d.ts`. | |
*/ | |
const { parse, resolve } = require('path'); | |
const { EOL } = require('os'); | |
const chalk = require('chalk'); | |
const { writeFile } = require('fs-extra'); | |
const globby = require('globby'); |
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 | |
const { exec } = require('child_process'); | |
const { readFile, writeFile } = require('fs'); | |
const { EOL } = require('os'); | |
const CURRENT_BRANCH_JIRA_ISSUE_EXP = /[a-zA-Z]+[-][0-9]+/; | |
const messageFile = process.argv[2]; | |
/** | |
* We need the message file to append. |
"Batteries included": Angular comes with a good some good default libraries, like router, forms and http. These libraries will also always be compatible with the used Angular version, since they share the version and are (mostly) maintained by the Angular coreteam.
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
.then(([{cmd, args}, dependencies]) => { | |
process.chdir(dir); | |
return new Promise((resolve, reject) => { | |
const spinner = ora(chalk.dim('Installing dependencies. This may take a while...')).start(); | |
const stdio = verbose ? 'inherit' : [process.stdin, 'ignore', 'ignore']; | |
const child = spawn(cmd, args.concat(dependencies), { stdio }); | |
child.on('error', err => reject(err)); | |
child.on('exit', code => { | |
if (code > 0) { | |
spinner.text = 'Installation failed!'; |
- Path Intellisense
- ESLint
- TSLint
- Document This
- Gutter preview
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 { exists, readFile, writeFile } from 'graceful-fs'; | |
import { parse } from 'json-parse-helpfulerror'; | |
import fileAsync from 'lowdb/lib/file-async'; | |
/** | |
* Custom storage for `lowdb`, b/c we want to have read AND | |
* write to be async. This will make the API more easy to use. | |
*/ | |
const storage = { |
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
# Remove all stopped containers. | |
function docker-stop () { | |
if [[ $(docker ps -a -q) ]]; then | |
docker rm $(docker ps -a -q) | |
echo -e "\xf0\x9f\x93\xa6 ➡ \xf0\x9f\x92\xa5 All stoped containers removed!" | |
else | |
echo -e "\xf0\x9f\x91\x8c Nothing to stop!" | |
fi | |
} |
sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
-> https://coderwall.com/p/zguz_w/docker-remove-all-exited-containers
docker rmi $(docker images -f "dangling=true" -q)
(sometimes need to force with -f
)
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
this.state$ = Observable | |
.create((observer:any) => { | |
this.store.subscribe(() => observer.next(this.store.getState())); | |
}) | |
.startWith(this.store.getState()); |