Skip to content

Instantly share code, notes, and snippets.

Avatar

Brandon Courtney bcourtney5965

  • San Francisco, CA
View GitHub Profile
@bcourtney5965
bcourtney5965 / Terminal - Rails import - Error Message
Created Mar 27, 2014
Can't import Rails in Terminal, gives error message
View Terminal - Rails import - 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 Mar 28, 2014
more rails installation problems
View gist:9845113
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 Mar 29, 2014
sudo gem install rails
View gist:9845827
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 Mar 29, 2014
Rails installation difficulties, post XCode install
View 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 Mar 29, 2014
Is my previously installed Python affecting Ruby in my terminal?
View Python != Ruby
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 Mar 31, 2014
I am getting this after having installed XCode, and Homebrew
View Continuation of rails installation trouble
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 Jun 8, 2016 — 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.
View The Technical Interview Cheat Sheet.md

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.
View system-design-cheatsheet.md

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