Skip to content

Instantly share code, notes, and snippets.

View laurenfazah's full-sized avatar

Lauren Fazah laurenfazah

View GitHub Profile
laurenfazah /
Last active September 26, 2023 17:26
Introduction to GraphQL

GraphQL 101


Before starting this lesson, you should have an established understanding of RESTful APIs. Ideally, you have experience writing API endpoints and/or consuming APIs (third-party or your own).


By the end of this lesson, you'll be able to:

laurenfazah / vim_commands.txt
Last active June 23, 2020 17:32
Handy vim commands for migrating from Minitest to RSpec
%s/\.must_/)\.to /g
%s/\.wont_/.not_to /g
%s/ eq true/ be true/g
%s/ eq false/ be false/g
%s/to raise/to raise_error/g
%s/to be_instance_of/to be_an_instance_of/g
laurenfazah /
Created December 11, 2017 18:48
Intro to the Asset Pipeline

Intro to the Asset Pipeline


By the end of this lesson, you will know/be able to:

  • Explain the purpose of the asset pipeline
  • Explain how Heroku works with the asset pipeline
  • Run your app in a production environment locally
  • Be comfortable using figaro to set environment variables
laurenfazah /
Last active November 26, 2022 13:19
Cheat Sheet: Setting up Express with Postgres via Knex

Express & Postgres via Knex

Note: <example> is meant to denote text replaced by you (including brackets).


// global dependencies
npm install -g knex
laurenfazah /
Last active November 8, 2022 01:51
Authentication with an Express API and Postgres

Authentication with an Express API and Postgres

Setting Up

Let's make sure our Express app has the required base modules:

# within root of API
npm install --save express pg knex bcrypt
npm install --save-dev nodemon
laurenfazah /
Created September 12, 2017 15:57
Integrating React with an Existing Client Application

Integrating React with an Existing Client Application

Do you have an existing client application built with vanilla JavaScript that you’d like to transform into a React application? It’s not as complicated as you’d might think it’d be.

Installing Modules

Per the React docs, we'll need a few things:

laurenfazah / bob_elements.csv
Created February 22, 2017 02:37
An absurdly long & repetitive list of 538's Bob Ross - Elements By Episode CSV
We can't make this file beautiful and searchable because it's too large.
S01E01,"""A WALK IN THE WOODS""",0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0
S01E02,"""MT. MCKINLEY""",0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0
S01E03,"""EBONY SUNSET""",0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0
laurenfazah /
Last active September 25, 2023 23:43
Introduction to SQL
title length tags
Intro to SQL
90 minutes
SQL, PostgreSQL, database, Ruby


By the end of this lesson, you will know/be able to: