Open up a new Terminal and run the following to install nvm
:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
#### | |
# ZSH function to auto-switch to correct Node version | |
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5 | |
# | |
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does. | |
# | |
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING. | |
# | |
# - Works correctly if your .nvmrc file contains something relaxed/generic, | |
# like "4" or "v12.0" or "stable". |
mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.
Github will be the main account and bitbucket the secondary.
/** | |
* Responsive mixin. The media breakpoints are as defined | |
* in the twitter bootstrap framework: | |
* | |
* - phone | |
* - tablet-portrait | |
* - tablet-landscape-desktop | |
* - large-desktop | |
* | |
* Additional parameters for tagetting retina and non-retina |
#!/bin/sh | |
OPTIONS=`vagrant ssh-config | awk -v ORS=' ' '{print "-o " $1 "=" $2}'` | |
scp ${OPTIONS} "$@" || echo "Transfer failed. Did you use 'default:' as the target?" |
Latest update 20-Oct-2012. [email protected]
Command Line Tools are required for Homebrew. Previously it was suggested to download Xcode 4, but since the new version doesn't ship the proper gcc compiler for rvm, the command line tools are a better option and then using homebrew to get the gcc compiler. If preferred, install Xcode 4, although this setup doesn't follow that set of instructions.
Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
// bootstrap | |
PX.app = new PX.App(); | |
Backbone.history.start(); |
// ==UserScript== | |
// @name Hide Jimmy Wales. | |
// @match http://*.wikipedia.org/* | |
// ==/UserScript== | |
(function() { | |
var banner = document.getElementById('siteNotice'); | |
banner && banner.style.display = 'none'; | |
}()); |
jQuery.placeholder = function() { | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.hasClass('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val() === '') { |