Skip to content

Instantly share code, notes, and snippets.

Avatar

Lauren Fazah laurenfazah

View GitHub Profile
View refactor.md
if (weatherCode === "good"){
    body.removeClass(currentClass);
    body.addClass("good");
    //dialog.css("background-color", "rgb(169,247,188)");
    return "Looks like a great day to ride!";
  } else if (weatherCode === "maybe"){
    body.removeClass(currentClass);
    body.addClass("maybe");
@laurenfazah
laurenfazah / vim_commands.txt
Last active Jun 23, 2020
Handy vim commands for migrating from Minitest to RSpec
View vim_commands.txt
%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 / 1706_osp.md
Created Jan 8, 2018
1706 Open Source Project
View 1706_osp.md
View 1706_tca.md

Draft Schedule:

Time Name Instructor
1/4 9am Jay P Lauren
1/4 9am Aaron Katelyn
1/4 9:45am Sam S Lauren
1/4 9:45am Mimi Katelyn
1/4 10:45am Dan P Lauren
1/4 10:45am Michael B Katelyn
@laurenfazah
laurenfazah / js_rubric.md
Created Dec 14, 2017
JS Assessment Rubric
View js_rubric.md

Rubric

1. Completion:

  • At a minimum, developer completes challenges 1-3 and deploys to GitHub pages in the allotted three hours.

Above Expectations

Meets Expectations

Below Expectations

@laurenfazah
laurenfazah / intro_asset_pipeline.md
Created Dec 11, 2017
Intro to the Asset Pipeline
View intro_asset_pipeline.md

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 Aug 9, 2020
Cheat Sheet: Setting up Express with Postgres via Knex
View express_postgress_knex.md

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 Jul 28, 2020
Authentication with an Express API and Postgres
View authentication_with_express_postgres.md

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 Sep 12, 2017
Integrating React with an Existing Client Application
View react_integration_with_axios.md

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 Feb 22, 2017
An absurdly long & repetitive list of 538's Bob Ross - Elements By Episode CSV
View bob_elements.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
You can’t perform that action at this time.