View routes.rb
BananaPodcast::Application.routes.draw do
class APIEndPoint
def self.call(mapper, options)
mapper.namespace :api, path: '/', constraints: { subdomain: 'api' }
end
end
concern :api, APIEndPoint
resources :zombies, concerns: :api
View retrospective.md

Coding Dojo @ RailsConf 2014

These are some of the things people had to say during our retrospective:

Things we did well

  • No one took over the code
  • Good collaboration
  • Good Communication
  • Used MiniTest for the first time
View data.sql
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
View emitter.js
var EventEmitter = require('events').EventEmitter;
var util = require('util');
function Player(name, signature){
this.name = name;
this.signature = signature;
}
util.inherits(Player, EventEmitter);
View Dockerfile
# DOCKER-VERSION 1.2.0
FROM centos:centos6
# Enable EPEL for Node.js
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Install Node.js and npm
RUN yum install -y npm
# Bundle app source
View Dockerfile
# DOCKER-VERSION 1.2.0
FROM centos:centos6
# Enable EPEL for Node.js
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Install Node.js and npm
RUN yum install -y npm
# Creates a new folder on the container
VOLUME /src
View Dockerfile
# DOCKER-VERSION 1.2.0
FROM centos:centos6
# Enable EPEL for Node.js
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Install Node.js and npm
RUN yum install -y npm
ADD https://raw.githubusercontent.com/caike/ExpressDocker/master/src/app.js /tmp/app.js
ADD https://raw.githubusercontent.com/caike/ExpressDocker/master/src/package.json /tmp/package.json
View angular_size.sh
wget -O angular.js https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js
gzip angular.js
ls -h angular.js.gz # 45KB
View twit-tv-demo.rb
class Person
def initialize(name, location)
@name, @location = name, location
end
def greet
"Hello my name is #{@name} and I'm from #{@location}"
end
end