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
function npm-reinstall -d "remove & then install package - changing package.json - so we can ignore semver restrictions | |
usage - `npm-reinstall -S|-D pkg1 pkg2 ...`" | |
npm uninstall $argv[1] $argv[2..-1] | |
npm install $argv[1] $argv[2..-1] | |
end |
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
function npm-look -d "look at specific fields from a local package.json - much like npm view - `npm-reinstall -S|-D pkg1 pkg2 ...`" | |
cat package.json | jq (string join '' '.' $argv[1]) | |
end |
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
function docker-switch-to-old-version -d "Switch to the old Docker Toolkit commands - Using VirtualBox" | |
mv /usr/local/bin/docker /usr/local/bin/docker.new | |
mv /usr/local/bin/docker-compose /usr/local/bin/docker-compose.new | |
mv /usr/local/bin/docker-machine /usr/local/bin/docker-machine.new | |
mv /usr/local/bin/docker.backup /usr/local/bin/docker | |
mv /usr/local/bin/docker-compose.backup /usr/local/bin/docker-compose | |
mv /usr/local/bin/docker-machine.backup /usr/local/bin/docker-machine | |
end |
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
function docker-switch-to-new-version -d "Switch to the new Docker for Mac commands - Using HyperVisor" | |
mv /usr/local/bin/docker /usr/local/bin/docker.backup | |
mv /usr/local/bin/docker-compose /usr/local/bin/docker-compose.backup | |
mv /usr/local/bin/docker-machine /usr/local/bin/docker-machine.backup | |
mv /usr/local/bin/docker.new /usr/local/bin/docker | |
mv /usr/local/bin/docker-compose.new /usr/local/bin/docker-compose | |
mv /usr/local/bin/docker-machine.new /usr/local/bin/docker-machine | |
end |
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
"scripts": { | |
"goodInstall": "npm install", | |
"postgoodInstall": "npm shrinkwrap --dev", | |
} | |
// Install a devDependency with `npm run goodInstall -- -D react-animate` |
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
<html data-ember-extension="1" class=""><head> | |
<link rel="stylesheet" type="text/css" href="/s/b0dcca.css" title="Default"> | |
<title>xkcd: Pixels</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<link rel="shortcut icon" href="/s/919f27.ico" type="image/x-icon"> | |
<link rel="icon" href="/s/919f27.ico" type="image/x-icon"> | |
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="/atom.xml"> | |
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/rss.xml"> | |
<script async="" src="//www.google-analytics.com/analytics.js"></script><script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
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
print "Press Return to continue..." | |
STDIN.getc |
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
javascript:(function() { var username=prompt("Hide comment blocks including user:"); if (username!=null && username!="") { $(".comment-header-author:contains("+username+")").parents("tr.inline-comments").hide(); } })(); |
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
javascript:(function() {var e = document.getElementById('pull_request_body');if (e) {e.value += '# What? Why?\n\n\n# How was it tested?\n\n\ncc project_narhwal @mLewisLogic @clizzin @Raphomet @LogicWolfe';}})(); |
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
(Math.max.apply(Math, | |
$.makeArray($('*') | |
.map(function () { | |
return $(this).css('z-index'); | |
}).filter(function () { | |
return $.isNumeric(this); | |
}).map(function () { | |
return parseInt(this, 10); | |
})))); |