Skip to content

Instantly share code, notes, and snippets.

View brookr's full-sized avatar
💭
🚀

Brook Riggio brookr

💭
🚀
View GitHub Profile
@brookr
brookr / serve.sh
Created October 27, 2014 04:39
serve function
function serve {
port="${1:-4000}"
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => $port, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
}
@brookr
brookr / gemstore.html
Created October 27, 2014 04:24
Sharpen up with AngularJS skeleton
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js"></script>
@brookr
brookr / deck.html
Last active August 29, 2015 14:06
A visualization of shuffling a deck of cards
<!doctype html>
<html>
<head>
<title>
Deck of Cards
</title>
<style>
#deck {
width: 52em;
background-color: purple;
@brookr
brookr / listking.html
Created September 18, 2014 06:57
Demo code from Class 5
<!DOCTYPE html>
<html>
<head>
<title>JavaScript &amp; jQuery - Chapter 7: Introducing jQuery - Looping</title>
<link rel="stylesheet" href="css/c07.css" />
</head>
<body>
<div id="page">
<h1 id="header">List</h1>
<h2>Buy groceries</h2>
@brookr
brookr / deck.html
Created September 17, 2014 06:30
A deck of cards, modelled in HTML and JS
<!doctype html>
<html>
<head>
<title>
Deck of Cards
</title>
</head>
<body>
<ul id="deck" class="collection">
</ul>
@brookr
brookr / cards.html
Created June 12, 2014 05:23
Example code from in-class live coding of a deck of cards
<script>
function Deck() {
this.cards = [];
this.count = function() {
return this.cards.length;
}
this.init = function() {
for (s = 1; s <= 4; s++) {
for (r = 1; r <= 13; r++) {
this.cards.push(new Card(r, s));
<script>
var usa, ghana, portugal, germany, miles;
function Racer(name, speed, intelligence, luck) {
this.name = name;
this.speed = speed;
this.intelligence = intelligence;
this.luck = luck;
this.position = 0;
this.race = function() {
<script>
var random, result;
var findDifference = function(answer, guess) {
if (answer > guess) {
return answer - guess;
}
else {
return guess - answer;
}
}

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 / 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.