Skip to content

Instantly share code, notes, and snippets.

View bcourtney5965's full-sized avatar

Brandon Courtney bcourtney5965

  • San Francisco, CA
View GitHub Profile
@bcourtney5965
bcourtney5965 / Terminal - Rails import - Error Message
Created March 27, 2014 04:33
Can't import Rails in Terminal, gives error message
Last login: Wed Mar 26 20:45:26 on ttys000
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ ls
Desktop Library Sites
Documents Movies ganttproject.log
Downloads Music intro_rails
Dropbox Pictures java0.log
Google Drive Public temp
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ cd intro_rails
Brandon-Courtneys-MacBook-Pro:intro_rails brandoncourtney$ rails new myproject
@bcourtney5965
bcourtney5965 / gist:9845113
Created March 28, 2014 23:25
more rails installation problems
Last login: Fri Mar 28 16:18:23 on ttys000
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ ls
Desktop Library Sites
Documents Movies ganttproject.log
Downloads Music intro_rails
Dropbox Pictures java0.log
Google Drive Public temp
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ cd intro_rails
Brandon-Courtneys-MacBook-Pro:intro_rails brandoncourtney$ gem install rails
@bcourtney5965
bcourtney5965 / gist:9845827
Created March 29, 2014 00:26
sudo gem install rails
Last login: Fri Mar 28 17:18:26 on console
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ sudo gem install rails
Password:
Sorry, try again.
Password:
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
@bcourtney5965
bcourtney5965 / Rails installation difficulties, post XCode install
Created March 29, 2014 06:20
Rails installation difficulties, post XCode install
Last login: Fri Mar 28 22:56:53 on ttys000
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ rails new myproject
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ sudo gem install rails
Password:
@bcourtney5965
bcourtney5965 / Python != Ruby
Created March 29, 2014 06:45
Is my previously installed Python affecting Ruby in my terminal?
Last login: Fri Mar 28 23:10:47 on ttys000
Brandon-Courtneys-MacBook-Pro:~ brandoncourtney$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
==> The following directories will have their group set to admin:
@bcourtney5965
bcourtney5965 / Continuation of rails installation trouble
Created March 31, 2014 17:38
I am getting this after having installed XCode, and Homebrew
Last login: Mon Mar 31 10:14:53 on ttys000
brandontneysmbp:~ brandoncourtney$
brandontneysmbp:~ brandoncourtney$ sudo gem install rails
Password:
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for libkern/OSAtomic.h... yes
@bcourtney5965
bcourtney5965 / The Technical Interview Cheat Sheet.md
Created June 8, 2016 02:40 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.

System Design Cheatsheet

Step One: Framing The Problem a.k.a get the MVP

  • Identify the use cases that are in scope
  • Determine constraints based on scoped use cases

use case : the things your system needs to be do.

constraints : the things your system will have to consider to be able to do stuff