Skip to content

Instantly share code, notes, and snippets.

View dirkdunn's full-sized avatar

Dirk Dunn dirkdunn

  • Cognizant
  • Burlington, VT
View GitHub Profile
@dirkdunn
dirkdunn / Git.md
Last active May 30, 2019 18:26
Git lesson

Git Fundamentals

LEARNING OBJECTIVES

After this lesson, you will be able to:

  • Explain what version control is
  • Explain why developers use version control
  • Explain the process of how git works
  • Distinguish between local and remote repositories
  • Understand basic git commands like init, add, commit, push, pull and clone
@dirkdunn
dirkdunn / RESPONSIVE.md
Last active December 7, 2017 19:57 — forked from mdang/RESPONSIVE.md
Responsive Design

Responsive Web Design & Bootstrap Framework

Lesson Objectives

Part 1
  • Describe the benefits of using responsive design
  • Describe what it means to go mobile first
  • Explain the difference between a responsive website and a mobile-specific website
  • Describe how to test responsive layouts while developing
  • Use media queries to target viewport sizes
@dirkdunn
dirkdunn / fbauth.md
Last active May 31, 2017 15:02
fb_auth_codealong

Firebase Authentication

We will be re-building the infamous growler app, this time with firebase and react.JS . Instead of using Auth0 for authentication, we will use Firebases build in authentication. We will use react-router

Firebase has Oauth, and standard authentication built in. Signing up or logging in is as easy as calling a method. However, it will be our responsibility to persist the user on the frontend.

(Tutorialspoint Demo)

Bubble Sort Algorithm

Because most programming languages come with a built in method to sort a list / array, we often overlook how the computer is actually doing this.

There are many algorithms that can be used in order to sort a list.

A couple examples:

  • Bucket sort
@dirkdunn
dirkdunn / PPRQ.md
Last active April 17, 2017 13:34
Post Project Retrospective Questionaire

Post Project Retrospective Questionaire

Working with a group can be a demanding process, both technically and collaboratively. Like most post-sprint workflows, we would like you complete the questionaire below to reflect on the experience.

Why: Developers also typically find themselves working in small groups, it is therefore imperative to start honing the skills necessary to work well in this setting.

Reflecting back on last weeks project, take a moment to reflect how YOU worked technically and collboratively with your group:

  1. What's one thing you would like to continue doing in your next project?
@dirkdunn
dirkdunn / b2b.md
Last active April 4, 2017 13:57
B2B Interface discussion

Brain To Brain Interfaces (B2B interfaces)

It’s no Vulcan mind meld, but brain-to-brain interfaces (BBI) have been achieved, allowing for direct communication from one brain to another without speech. The interactions can be between humans or between humans and animals.

More info here: http://reilly.nd.edu/outreach/emerging-ethical-dilemmas-and-policy-issues-in-science-and-technology-2015/brain-to-brain-interfaces/

Let's have a formal discussion / debate about the ethical implications of this, and it coming into the future.

@dirkdunn
dirkdunn / spa_challenges.md
Last active March 22, 2017 22:01
challeges for a spa

Convert to Fahrenheit

Right now the temperature is in kelvin units, using this existing API, make the JSON response give back the temperature in Fahrenheit.

Check out the API documentation, and scroll to the bottom under "Unit Format" to see how this is done. http://openweathermap.org/current

Include an icon representing the weather above the city

Let's make this app a little more visual by adding weather icons on the page representing the cities existing weather.

If you look at the JSON response, at response.weather[0].icon , we can see that the JSON gives us an icon ID such as 03n. Let's look at the documentation to see how we can take that ID here:

Ajax

By the end of this lesson, students will be able to

  • Explain what AJAX is
  • Explain Synchronous VS Asynchronous
  • Explain what is Cross Origin Resource Sharing is
  • Use and explain methods such as .ajax, $.get and $.getJSON
  • Explain How to make a AJAX request
  • Explain What a callback function is
  • Reviewing AJAX

#jQuery & The DOM By the end of this lesson students will be able to:

  • Explain the DOM, and how we use javascript to interact with it.
  • Explain what a library is and why one would get used
  • Explain how jQuery syntax works
  • Explain method chaining and how it differs from object dot syntax
  • Select a DOM element with jQuery and explain the object that is returned
  • Explain the difference between JS DOM objects and native JQ DOM objects
  • List common jQuery methods and their application

Array Zipper

Using two existing arrays, create a new array that contains all of the items from array1 and array2 in a "zipped" like fashion.

So for example

// Array 1
[1,2,3,4,5,6,7]

// Array 2