Skip to content

Instantly share code, notes, and snippets.

@AndyLampert
AndyLampert / gist:f3541a4411dcab78c058
Last active August 29, 2015 05:36
Set up irb and rails console to look pretty
touch ~/.irbrc
open ~/.irbrc
paste this in:
require 'rubygems'
require 'ap'
require 'irb/completion'
IRB.conf[:AUTO_INDENT]=true
require "awesome_print"
$(document).ready(function(){
function resizeDiv() {
var vph = ( $(window).height() - 150 ); // adjust this as needed
var screen_width = $(window).width();
if (screen_width > 1199) {
$('.element-to-resize').css({'height': vph + 'px'});
} else {
$('.element-to-resize').css({'height': '585px'}); // adjust this as needed
}
}
@AndyLampert
AndyLampert / 0_reuse_code.js
Last active August 29, 2015 14:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
.
./.DS_Store
./.sync
./.sync/Archive
./.sync/ID
./.sync/IgnoreList
./.sync/StreamsList
./building_the_toolbelt_t2_2015
./building_the_toolbelt_t2_2015/.git
./building_the_toolbelt_t2_2015/.git/COMMIT_EDITMSG