This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file="./container/docker-compose.yml" | |
project="whatever" | |
case $1 in | |
"up") | |
echo "setting up containers in background" | |
docker-compose -f $file -p $project up -d | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CryptoAnimal - interface we're extending with concrete instances and decorators | |
class CryptoAnimal { | |
// each animal has some sort of history that makes them who they are today | |
background() { | |
throw new Error('implement me pls'); | |
} | |
// all of the things in that history make them less common | |
rarity() { | |
throw new Error('implement me pls'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const knex = require('knex')({ | |
client: 'pg', | |
connection: { | |
user: 'dev', | |
password: 'dev', | |
database: 'dev', | |
}, | |
}); |