Skip to content

Instantly share code, notes, and snippets.

@mikeni
mikeni / gist:5423785
Created April 19, 2013 22:53
for balanced
balanced.init('/v1/marketplaces/TEST-MP42gu0HtjZsseCT3OJ3X5Ta');
var alertError = function(errors) {
$(".alert").remove();
el = $('<div class="alert alert-error"></div>')
for (var k in errors) {
el.append($("<p>" + errors[k] + "</p>"));
}
el.append($('<button class="close" type="button" data-dismiss="alert">x</button>'));
@mikeni
mikeni / gist:9242444
Created February 27, 2014 01:26
rvm install ruby-2.1.1
ruby-2.1.1 - #removing src.
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.1.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
==> Upgrading 1 outdated package, with result:
libyaml 0.1.5
==> Upgrading libyaml
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libyaml-0.1
######################################################################## 100.0%
@mikeni
mikeni / gist:9242458
Created February 27, 2014 01:28
rvm install 2.0.0-p451
rvm install 2.0.0-p451
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p451.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/mike/.rvm/rubies/ruby-2.0.0-p451, this may take a while depending on your cpu(s)...
ruby-2.0.0-p451 - #downloading ruby-2.0.0-p451, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
@mikeni
mikeni / gist:9242649
Created February 27, 2014 01:45
rvm install 2.1.1 --disable-install-doc
rvm install 2.1.1 --disable-install-doc
ruby-2.1.1 - #removing src.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/mike/.rvm/rubies/ruby-2.1.1, this may take a while depending on your cpu(s)...
ruby-2.1.1 - #downloading ruby-2.1.1, this may take a while depending on your connection...
ruby-2.1.1 - #extracting ruby-2.1.1 to /Users/mike/.rvm/src/ruby-2.1.1.
ruby-2.1.1 - #configuring....................................................
ruby-2.1.1 - #post-configuration.