Skip to content

Instantly share code, notes, and snippets.

View laurenfazah's full-sized avatar

Lauren Fazah laurenfazah

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

GraphQL 101

Prerequisites

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).

Goals

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

@laurenfazah
laurenfazah / vim_commands.txt
Last active June 23, 2020 17:32
Handy vim commands for migrating from Minitest to RSpec
%s/test_helper/rails_helper/g
%s/<...>\./expect(<...>\./g
%s/\.must_/)\.to /g
%s/\.wont_/.not_to /g
%s/equal/eq/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
laurenfazah / intro_asset_pipeline.md
Created December 11, 2017 18:48
Intro to the Asset Pipeline

Intro to the Asset Pipeline

Goals

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
laurenfazah / express_postgress_knex.md
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).

Setup

// global dependencies
npm install -g knex
@laurenfazah
laurenfazah / authentication_with_express_postgres.md
Last active July 13, 2024 16: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
laurenfazah / react_integration_with_axios.md
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
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.
EPISODE,TITLE,APPLE_FRAME,AURORA_BOREALIS,BARN,BEACH,BOAT,BRIDGE,BUILDING,BUSHES,CABIN,CACTUS,CIRCLE_FRAME,CIRRUS,CLIFF,CLOUDS,CONIFER,CUMULUS,DECIDUOUS,DIANE_ANDRE,DOCK,DOUBLE_OVAL_FRAME,FARM,FENCE,FIRE,FLORIDA_FRAME,FLOWERS,FOG,FRAMED,GRASS,GUEST,HALF_CIRCLE_FRAME,HALF_OVAL_FRAME,HILLS,LAKE,LAKES,LIGHTHOUSE,MILL,MOON,MOUNTAIN,MOUNTAINS,NIGHT,OCEAN,OVAL_FRAME,PALM_TREES,PATH,PERSON,PORTRAIT,RECTANGLE_3D_FRAME,RECTANGULAR_FRAME,RIVER,ROCKS,SEASHELL_FRAME,SNOW,SNOWY_MOUNTAIN,SPLIT_FRAME,STEVE_ROSS,STRUCTURE,SUN,TOMB_FRAME,TREE,TREES,TRIPLE_FRAME,WATERFALL,WAVES,WINDMILL,WINDOW_FRAME,WINTER,WOOD_FRAMED
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
laurenfazah / sql_intro.md
Last active September 25, 2023 23:43
Introduction to SQL
title length tags
Intro to SQL
90 minutes
SQL, PostgreSQL, database, Ruby

Goals

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