Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

James Newman jnewman12

🎯
Focusing
Block or report user

Report or block jnewman12

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jnewman12
jnewman12 / gh_pages.md
Last active Jun 8, 2017
Github pages intro
View gh_pages.md

Your project on github pages

  • first, make sure you have been pushing your project to github
  • if you're in a good spot for your project, commit and push to master

gh-pages branch

  • go into your project directory in your terminal
  • run git checkout -b gh-pages
  • then run git commit -am "gh-pages branch"
View note.md

What is a Callback?

A reference to executable code, or a piece of executable code, that is passed as an argument to other code.

All a callback is, is a function that takes a function as an argument.

Here is an example

function mySandwich(param1, param2, callback) {
    alert('Started eating my sandwich.\n\nIt has: ' + param1 + ', ' + param2);
@jnewman12
jnewman12 / bling.md
Last active May 31, 2017
WDI 47 SM Fellowship of the bling
View bling.md

Fellowship of the Bling ($)

Frodo ponders the power of the ring.

Using our new-found knowledge of jQuery, create a function for each of the following steps to practice DOM Manipulation, JavaScript, and jQuery.

Setup

@jnewman12
jnewman12 / debugging_js.md
Last active May 26, 2017
WDI SM Debugging JS
View debugging_js.md

JS Debugging

Objectives

After this lesson, students will be able to:

  • Identify and resolve common and uncommon "logical errors" that affect the results of your program
  • Use logs to troubleshoot errors in an application (console log in Dev Tools)
  • Conduct real-time debugging in the browser (start small, triangulation, remove code)
  • Access properties of a class using helper methods ( typeOf( ) for datatypes)
  • Use debuggers and breakpoints to identify logical errors in expressions
@jnewman12
jnewman12 / DOM_intro.md
Last active May 25, 2017
WDI SM Intro to the DOM
View DOM_intro.md

Intro to the DOM

Students will be able to...

  • Explain what the DOM is
  • Use JavaScript to select parts of the DOM
  • Use JavaScript to change parts of the DOM

What is the DOM?

@jnewman12
jnewman12 / js_dom_manipulation.md
Created May 25, 2017
WDI SM DOM manipulation and events
View js_dom_manipulation.md

DOM Manipulation & Events

SWBAT

  • Understand the role of events
  • Recognize and respond to common types of events
  • Describe how to pass an anonymous function to an event listener
  • Describe how to pass a named function to an event listener

What are events?

@jnewman12
jnewman12 / js_functions.md
Last active May 24, 2017
WDI SM functions intro lab
View js_functions.md

Functions and Javascript Scope


Students will be able to...

  • Confidently write functions, then invoke them
  • Explain what scope is
  • Create a new local scope
  • Explain hoisting in terms of load order
@jnewman12
jnewman12 / js_functions_lab.md
Created May 24, 2017
WDI SM JS functions intro lab
View js_functions_lab.md

JavaScript Functions Lab

Introduction

This lab provides an opportunity to practice defining and coding some real-world functions.

Note: Feel free to work in pairs or groups to complete this lab. Also, Google/StackOverflow is a good friend to have around...

@jnewman12
jnewman12 / BoxModel.md
Last active Apr 11, 2017
Box Model lesson for GA WDI OC
View BoxModel.md

Positioning the Web with the Box Model

Objectives

  • Explain how marigin, border, padding, and content relate to one another in the box model
  • Describe the difference between block, inline, and inline-block elements
  • Create a page with multicolumn layout
  • Explain the difference between and use cases of static, relative, absolute, and fixed positioning

Plan

  • Instructor Lead: I Do – 10 minutes
@jnewman12
jnewman12 / Puplove.md
Last active Apr 11, 2017
A lab on Box Model Styling
View Puplove.md

Uncle Derry's Dog Needs a Date

Derry

HTML/CSS Lab

Well, lemme tell you, my terribly sad Uncle Derry has been projecting onto his dog again, and is determined he needs to help his pup, Bobo, find someone special.

Living alone near a pond more sewage than water leads you to do some crazy things, but it also affords you a lot of thinking time. Good ol' Uncle Derry has been trying to build website with those lonely hours.

You can’t perform that action at this time.