Skip to content

Instantly share code, notes, and snippets.

View ambsvan's full-sized avatar

Amber Spencer ambsvan

View GitHub Profile
@ambsvan
ambsvan / 0_reuse_code.js
Last active August 29, 2015 14:13
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

Setting up the Ruby dev environment on Mavericks

Why would I want to do that?

  • You want to run guard
  • You want use Sublime plugins (like RSpec or Guard plugins)

Installing brew

Brew aka Homebrew is a package management system for Mac OSX.

r = {
"shrimp" => [
"algae",
"other_shrimps",
"seaweed",
],
"toad" => [
"children",
"flies",

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
r = {
"shrimp" => [
"algae",
"other_shrimps",
"seaweed",
],
"toad" => [
"children",
"flies",
@ambsvan
ambsvan / sign.rb
Created June 4, 2014 04:31 — forked from MikaAK/sign.rb
def sign height, width, color = []
total = 0
sqrfeet = height * width
total = sqrfeet * 15
print "Enter your colors seperated with commas: "
color = gets.chomp.split(',').trim
if color.length > 2
total += color.length * 15
else
total += color.length * 10