Skip to content

Instantly share code, notes, and snippets.

Process

  • Phone
  • Tech
    • Pairing
    • Whiteboarding
  • Culture

What should you get out of the interview process?

<html>
<head>
<title>Topic Clouds</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script src="http://d3js.org/d3.v2.min.js?2.10.0"></script>
<script type="text/javascript" src="d3.layout.cloud.js"></script>
</head>
<body>
<script>
@jaybobo
jaybobo / Answers.md
Last active August 29, 2015 14:01 — forked from tennety/IntroClues.md

#firstguess

1 8 each 10 cycle 11 partition 12 .shuffle

2 initialize

Render and Redirect

The normal controller/view flow is to display a view template corresponding to the current controller action, but sometimes we want to change that. We use render in a controller when we want to respond within the current request, and redirect_to when we want to spawn a new request.

Render

The render method is very overloaded in Rails. Most developers encounter it within the view template, using render :partial => 'form' or render @post.comments, but here we'll focus on usage within the controller.

:action

@jaybobo
jaybobo / clithehardway.md
Last active August 29, 2015 14:02
cli terms (mac)
  • pwd - print working directory
  • hostname - my computer's network name
  • mkdir - make directory
  • cd - change directory
  • ls - list directory
  • rmdir - remove directory
  • pushd - push directory
  • popd - pop directory
  • cp - copy a file or directory
  • mv - move a file or directory
@jaybobo
jaybobo / .vimrc
Created June 24, 2014 19:48
.vimrc
"Pathogen install
execute pathogen#infect()
"Autosaves everything when focus is lost
:au FocusLost * silent! wa
"Change the mapleader from \ to ,
let mapleader=","
"Setup Ctrlp.vim plugin
@jaybobo
jaybobo / problem1.markdown
Last active August 29, 2015 14:03
Square Interview Question (Dev Bootcamp)

Question 1:

Let's assume you are building a programming language for only boolean values, that is, true and false: true, false

(Variables: a, b, c... (booleans))

  1. You support the 3 boolean operations, AND (&&), OR (||), and NOT (!):
a &amp;&amp; b

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
install PostgreSQL 9 in Mac OSX via Homebrew
Mac OS X Snow Leopard
System Version: Mac OS X 10.6.5
Kernel Version: Darwin 10.5.0
Install notes for PostgreSQL 9.0.1 install using Homebrew:
sh-3.2# brew install postgresql
@jaybobo
jaybobo / whaat.markdown
Created August 26, 2014 16:26
freetds is missing when installing tiny_tds gem

--with-freetds-include=/usr/local/freetds/include and --with-freetds-lib=/usr/local/freetds/lib

when in doubt, restart terminal.