https://github.com/latentflip/webpack-unused
webpack --config webpack/webpack.dev --json | webpack-unused -s src
https://github.com/latentflip/webpack-unused
webpack --config webpack/webpack.dev --json | webpack-unused -s src
./ngrok https 8000
--disable-host-check
// Source | |
// http://bgrins.github.io/devtools-snippets/#console-save | |
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; |
Link - http://victorblog.com/html5-canvas-gradient-creator/
Build a script with Gradients. Built over Angular 1.x
netstat -a -n -o | find "443"
tasklist /svc /FI "PID eq 37400"
git branch -r --merged | egrep -v "(^\*|master|dev|release|staging)" | xargs git branch -d
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
Found on Stackoverflow - https://stackoverflow.com/a/33548037
git branch -r --merged | egrep -v "(^\*|master|dev|release|staging)" | sed 's/origin\///' | xargs -n 1 git push --delete origin
https://www.npmjs.com/package/local-web-server
ws --rewrite "* -> http://127.0.0.1/$1"
getCityCountry(results) { | |
const location: any = {}; | |
for (const component of results[0].address_components) { | |
if (component.types.includes('sublocality') || component.types.includes('locality')) { | |
location.city = component.long_name; | |
} else if (component.types.includes('administrative_area_level_1')) { | |
location.state = component.short_name; | |
} else if (component.types.includes('country')) { | |
location.country = component.long_name; |