Skip to content

Instantly share code, notes, and snippets.

View ferrerluis's full-sized avatar

Luis Ferrer-Labarca ferrerluis

View GitHub Profile
@ferrerluis
ferrerluis / docker-compose.yml
Created February 7, 2018 23:03
Simple docker-compose for multiple test databases
version: '3'
services:
postgres:
image: postgres:10.1-alpine
volumes:
- ./data:/var/lib/postgresql/data
ports:
- '5432:5432'
restart: always
mysql:
@ferrerluis
ferrerluis / Dockerfile
Last active April 30, 2017 20:52
Basic Docker containerization for Ruby (2.4) on Rails (5.0.0.1)
FROM ruby:2.4.0
# Installing NodeJS for some Ruby gems needed by Rails
RUN apt-get update && apt-get install -y nodejs
ENV APP /app
RUN mkdir $APP
WORKDIR $APP
@ferrerluis
ferrerluis / data_structures.py
Last active April 3, 2017 14:55
Files for the Python Bootcamp by PH in Spring 2017
class Monster:
agility = 20
def __init__(self, health, defense): # => Constructor
self.health = health
self.defense = defense
def say(self): # => Instance Method
print('Rawr')