Skip to content

Instantly share code, notes, and snippets.

View mdang's full-sized avatar

Mike Dang mdang

View GitHub Profile
@mdang
mdang / ES6_PRACTICE.md
Last active February 12, 2021 18:23
ES6 Practice

ES6 Practice

Convert the following ES5 code to ES6.

Template Literals

// Template literals
var li = '<li>' +
  '<div class="row">' +
@mdang
mdang / ES6_OUTLINE.md
Last active December 1, 2016 18:55
Lesson: ES6 Outline

ES6 Outline

Learning Objectives

  • Understand how ES6 differs from the JavaScript now
  • Explain and be able to use:
    • Template literals / String interpolation
    • let vs const vs var
    • Block scope
    • Arrow functions
@mdang
mdang / JS_ARRAY_FILTER.md
Created November 22, 2016 21:33
Exercise: JS Array Filter

JavaScript Array Filter

15 min

Now that we've seen how to use the array.map function, use array.filter to return an array with names that only start with the letter B.

var dogs = ['Scruffy', 'Bobo', 'Jake', 'Fido', 'Jack', 'Charlie', 'Buster', 'Winston', 'Bella']
@mdang
mdang / JS_CONTROL_FLOW.md
Last active November 21, 2016 18:26
Lesson: JS Control Flow
title type duration creator competencies
JavaScript Control Flow
lesson
1:25
name city
Gerry Mathe
London
Programming
@mdang
mdang / SPACE_JAM.md
Last active November 16, 2016 20:45
Exercise: Analyze Space Jam

Space Jam!

5 min

Now that we've learned about the proper way to structure our tags, attributes, and what semantic tags are, let's take a look at an older website and think about how we can improve it. The name of that site is Space Jam.

You Do

Take 5 minutes to view the source of the Space Jam website. Take note of all the things that we should change. We'll discuss those changes afterwards.

@mdang
mdang / PHP_PDO.md
Last active October 31, 2023 07:36
Lesson: PHP - PDO

PHP - PDO

Learning Objectives

  • Explain what PDO is and it's role in accessing data
  • Explain how to set up environment variables using PHP dotenv
  • Explain how to establish and destroy database connections
  • Describe what prepared statements are
  • Explain how to bind parameters to safely form SQL queries
  • Explain how to get the new ID generated from an insert statement
@mdang
mdang / PHP_CLASSES_OBJECTS.md
Last active September 28, 2016 19:00
Lesson: PHP Classes and Objects

PHP Classes and Objects

Learning Objectives

  • Create a class
  • Instantiating objects from classes
  • Constructors
  • private, protected, public variables and methods
  • Static methods
  • Classical inheritance with extends
@mdang
mdang / PHP_ARRAYS_LOOPS_FUNCTIONS.md
Last active September 27, 2016 21:24
Lesson: PHP Arrays, loops, functions

PHP Arrays, Loops, Functions

Learning Objectives

  • Indexed arrays
  • Associative arrays
  • Multi-dimensional arrays
  • Array helper methods
  • foreach loops
  • for loops
@mdang
mdang / PHP_INTRO.md
Last active September 27, 2016 19:06
Lesson: PHP Intro

PHP Intro

Lesson Objectives

  • Data types
  • Variables, constants
  • Arithmetic, comparison, logical operators
  • == vs ===
  • Truthy/falsy values
  • Conditionals
@mdang
mdang / WDI_PREP_DAY_TWO.md
Last active September 12, 2016 16:55
WDI Prep: Day Two

WDI Prep Workshop

Day Two: JavaScript

Sunday, September 11, 2016

Interested in transitioning into a career in Web Development? Thinking about enrolling in our Web Development Immersive? This prep workshop will cover web development fundamentals and an introduction to JavaScript. This workshop is free for students enrolled in the Web Development Immersive course. For students in the enrollment process or interested in applying, the cost of the workshop will go towards your tuition in the program.

For Web Development Immersive students, this workshop will count towards your pre-work.