Skip to content

Instantly share code, notes, and snippets.

View brookr's full-sized avatar
💭
🚀

Brook Riggio brookr

💭
🚀
View GitHub Profile
@brookr
brookr / conversation-about-rest.md
Last active December 6, 2021 21:28
A Conversation about REST with my brother

(This is a lightly edited version of an article by Ryan Tomayko (original no longer online). Used with permission.)

Brother: Hey, I have a question for you… Who is “Roy Fielding”?

ME: Some guy. He's smart.

Brother: Oh? What did he do?

ME: He helped write the first web servers, that sent documents across the internet… and then he did a ton of research explaining why the web works the way it does. His name is on the specification for the protocol that is used to get pages from servers to your browser.

@brookr
brookr / hashlist.js
Last active December 16, 2018 17:44
'use strict';
class Node {
constructor(val, nxt = null) {
this.value = val;
this.next = nxt;
}
}
class LinkedList {
@brookr
brookr / top-nav.css
Created November 17, 2018 08:30 — forked from stephanielingwood/top_nav.css
CSS styling template for a nav bar on the top
/* Note to students: Some properties are given to you to fill out,
others you can modify as they stand, and if you have time,
there are definitely some properties you should add!*/
html {
height: 100%;
}
body {
width: 800px;
height: 100%;
@brookr
brookr / left-nav.css
Last active November 17, 2018 08:29 — forked from stephanielingwood/gist:4e3d06d284c82ec057a7
CSS template for nav bar on the left
/* Note to students: Some properties are given to you to fill out,
others you can modify as they stand, and if you have time,
there are definitely some properties you should add!*/
html {
height: 100%;
}
body {
height: 100%;
}
@brookr
brookr / gist:2493622
Created April 25, 2012 21:34 — forked from derekharmel/gist:2399684
How to fix pow not using the correct gemset
# From the project root
rvm env -- `rvm current` >> .powenv
Verifying my Blockstack ID is secured with the address 1CEM4cy211TVPuDz1r7ry6b4PN9muGN4nm https://explorer.blockstack.org/address/1CEM4cy211TVPuDz1r7ry6b4PN9muGN4nm
@brookr
brookr / Google Apps Standard DNS Settings
Last active May 25, 2017 16:11
All the DNS records for a new Google Apps account, as entered in AWS:Route53
A: # If using naked domain redirects via Google
216.239.32.21
216.239.34.21
216.239.36.21
216.239.38.21
MX: # If using Google Mail
1 ASPMX.L.GOOGLE.COM.
5 ALT1.ASPMX.L.GOOGLE.COM.
5 ALT2.ASPMX.L.GOOGLE.COM.
@brookr
brookr / config.ru
Created April 16, 2012 04:36
Rackup file I use for running WordPress on Pow
# config.ru for Pow + Wordpress, based on http://stuff-things.net/2011/05/16/legacy-development-with-pow/
# added hackery to work around wordpress issues - Patrick Anderson (patrick@trinity-ai.com)
# clearly this could be cleaner, but it does work
require 'rack'
require 'rack-legacy'
require 'rack-rewrite'
# patch Php from rack-legacy to substitute the original request so
# WP's redirect_canonical doesn't do an infinite redirect of /

Welcome Aboard

Welcome to your Code Fellows Ruby on Rails Bootcamp! We are honored you have set aside 8 weeks to be with us. Your commitment and trust means the world to us. Are you ready to dive in and work hard?

Our Teaching Philosophy

At Code Fellows, a large part of what we do is shaped by our promise to help you find a job. When we talk to hiring managers, the overwhelming message is that coders don't usually get taught the professional skills necessary to perform well in a team. Even Computer Science majors are not prepared for what it's like to work in a high-achieving group of professional software developers with industry experience.

For this class, we create a simulation of how real software professionals develop applications. First, we introduce you to the professional toolchain for Ruby on Rails: the set of programs and libraries, that we combine together and craft quality applications that deliver business value. Secondly, we give you a sandbox t

@brookr
brookr / postgresql upgrade.md
Last active December 19, 2015 10:09
Upgrading Postgresql from 9.2 to 9.3.1

Make a temporary home for the new database

mkdir -p /usr/local/var/postgres9.3

Tell postgres to set up the new database

initdb /usr/local/var/postgres9.3 -E 'UTF-8' --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'

Migrate the data

pg_upgrade -d /usr/local/var/postgres9.2/ -D /usr/local/var/postgres9.3/ -b /usr/local/Cellar/postgresql/9.2.1/bin/ -B /usr/local/Cellar/postgresql/9.3.1/bin/ -v

Make the new db the canonical db