Skip to content

Instantly share code, notes, and snippets.

View jnewman12's full-sized avatar
🎯
Focusing

James Newman jnewman12

🎯
Focusing
  • Santa Monica, CA
View GitHub Profile
@jnewman12
jnewman12 / Forms.md
Last active November 3, 2023 15:36
Forms, form_for, link_to lesson

Forms, form_for, and link_to


Lesson Objectives

  1. Understand forms and the ways we write them
  2. Understand the difference between form_tag and form_for
  3. Understand link_to and how we can use it to dynamically link our application together
@jnewman12
jnewman12 / AdvancedMongoose.md
Last active August 22, 2023 20:45
Advanced Mongoose

Advanced Mongoose

advanced mongoose


Objectives

  • Define virtual properties for a model
  • Modify how a model is serialized to JSON
@jnewman12
jnewman12 / Mongo.md
Last active March 30, 2023 11:47
Data Modeling With Mongo

Data Modeling with MongoDB

mongo


Objectives

  • Understand model relationships in MongoDB
  • Understand One-to-Many relationships
@jnewman12
jnewman12 / Templating.md
Last active January 13, 2023 13:36
Client Side Rending With UnderScore Templating

Client Side Rendering With Underscore.js Templating

underscore


What is Underscore?

  • Underscore.js is a highly useful complement to JavaScript’s rather sparse standard library. In a pinch, Underscore gives you simple templating, too.
  • Underscore gives you a large list of helper functions, similar to what ruby might have waiting for you out of the box
@jnewman12
jnewman12 / Git&Github.md
Created November 28, 2016 08:06
Day 1 GA WDI OC Intro to Git & GitHub

Git and Github intro

Learning Objectives

After this lesson, you will be able to

  • Understand 4 foundational git commands: init, add, commit, and push
  • Explain what a repository is, and distinguish between local and remote repositories
  • Create, copy, and delete repos locally and on github
  • Fork and Clone remote repositories

STUDENT PRE-WORK

@jnewman12
jnewman12 / active_storage.md
Last active June 16, 2019 09:44
WDI DTLA Active Storage Intro

File Uploads with Rails and Active Storage

rails + active-storage


Lesson Objectives

  • set up an account on Amazon Web Services to store uploaded images inside AWS S3
  • set up rails app to handle file uploads
  • understand the how and why, of a rails model with an image attribute
@jnewman12
jnewman12 / js_debugging.md
Created June 14, 2018 08:18
WDI DTLA JS Debugging

Chrome Dev Tools

Objectives

After this lesson, students will be able to:

  • Open and describe the components of the Chrome developer tools
  • Use the developer tools to manipulate page elements (HTML/CSS)

Preparation

Before this lesson, students should already be able to:

@jnewman12
jnewman12 / practice.js
Last active June 13, 2018 23:04
WDI Week #1 JS Practice Problems
/*
1. Counting Sheep
Consider an array of sheep where some sheep may be missing from their place.
We need a function that counts the number of sheep present in the array (true means present).
*/
var arr = [true, true, true, false,
true, true, true, true ,
true, false, true, false,
true, false, false, true ,
true, true, true, true ,
@jnewman12
jnewman12 / carmen_san_diego.md
Created June 14, 2017 05:26
WDI SM Carmen San Diego

Use SQL to find Carmen Sandiego

Introduction

Where In The World Is Carmen Sandiego?

We're going to use what we've learned already about searching with SQL commands, and apply it to chase down and capture an elusive and world-reknowned thief, Carmen Sandiego. Follow the clues, use the interweb - write down both the SQL commands /queries you used and your answers to the clues - and figure out where Carmen's headed, so we can catch her and bring her in.

Exercise

@jnewman12
jnewman12 / active_record.md
Created June 14, 2017 05:25
WDI SM intro to active record

ActiveRecord Methods and Finders

Objectives

  • Query a model using AR methods
  • Instantiate and create a new instance of a model
  • Edit a model's attributes
  • Destroy a model

Preparation

  • Write a model that inherits from ActiveRecord