Skip to content

Instantly share code, notes, and snippets.

View rwarbelow's full-sized avatar
💭
hungry

Rachel Warbelow rwarbelow

💭
hungry
  • Guild Education
  • Denver, CO
View GitHub Profile
@rwarbelow
rwarbelow / seed_pg_database_using_node_and_sequelize_elastic_beanstalk.md
Last active September 10, 2019 06:11
Seeding a PG database using Sequelize, Node, and Elastic Beanstalk
  1. SSH into your EC2 instance: $ ssh -i <NameofKeyPair>.pem ec2-user@123.123.123.123
  2. $ cd /var/app/current
  3. ./node_modules/.bin/sequelize db:seed:all --env production --url postgres://[username]:[password]@[host]:[databaseport]/[databasename]

For example: ./node_modules/.bin/sequelize db:seed:all --env production --url postgres://taskmanager:taskmanager@taskmanager.ca1ksgalbb7j.us-east-1.rds.amazonaws.com:5432/taskmanager

Object: Pink Nalgene
Attributes:
Color: "Pink"
LidType: "Twist top"
...
Methods:
CalculatePercentFull: 800 / 1000 = .8
Class: Bottle
Attributes:
Color (string)
LidType (string)
TotalCapacity (integer)
Stickers (array)
CurrentCapacity (integer)
Recyclable (boolean)
@rwarbelow
rwarbelow / mod_0_session_4_practice_tasks.md
Last active June 15, 2022 10:25
Mod 0 Session 4 Practice Tasks

Session 4 Practice Tasks

The assignments listed here should take you between 1.5 and 2 total hours.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
@rwarbelow
rwarbelow / mod_0_markdown_practice.md
Last active April 15, 2019 16:36
Mod 0 Markdown Practice

Markdown Practice

Take a look at the Mod 0 Tech Setup instructions. Next, click the Raw button and compare the raw markdown to how the gist displays.

Look for the following elements, and under each bullet point, paste an example of the markdown that creates each.

  • Headings of various sizes
  • Links
  • Bold text
  • Auto-numbered lists
@rwarbelow
rwarbelow / command_prompt.md
Last active June 2, 2023 04:21
Changing Your Command Prompt

First, make sure you're at the home directory by typing cd.

Next, type nano .bash_profile. Copy and paste this into the window:

# get current branch in git repo
function parse_git_branch() {
  BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
  if [ ! "${BRANCH}" == "" ]
 then
@rwarbelow
rwarbelow / Practice.md
Last active January 18, 2019 22:31 — forked from timomitchel/Practice.md
For Rachel to Fork

This is random text

More

  • than
  • before
  • Howdy
@rwarbelow
rwarbelow / mod_0_setup.md
Last active March 24, 2019 16:32
Turing School Module 0 Technical Setup Instructions

Mod 0 Tech Setup

Complete the following steps before Mod 0 in order to get the tools you'll need on your machine. In this setup, we'll go over the following topics:

  1. New to Mac?
  2. Installing a Text Editor
  3. Installing Xcode
  4. Installing Homebrew
  5. Installing Git
  6. Configuring Git
  1. Sign in to GitHub and go to https://github.com/new
  2. Type in the name of your project for repository name
  3. Select the checkmark for "Initialize this repository with a README"
  4. Click "Create Repository"
  5. Click the button "Create new file"
  6. In the box that says "Name your file..." enter index.html
  7. Paste your HTML into the large text box area
  8. Click "Commit new file"
  9. Click "Create new file" again
  10. In the box that says "Name your file..." enter styles.css (or whatever you called your stylesheet file)
@rwarbelow
rwarbelow / funnythings.txt
Created August 15, 2018 00:37
Funny things
https://web.archive.org/web/20150221125906/http://www.sewingandembroiderywarehouse.com/embtrb.htm
https://www.facebook.com/uniladmag/videos/5192506594105691/
http://www.cakewrecks.com/home/2009/5/4/happy-falker-satherhood.html