Skip to content

Instantly share code, notes, and snippets.

View dirkdunn's full-sized avatar

Dirk Dunn dirkdunn

  • Cognizant
  • Burlington, VT
View GitHub Profile

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 / 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)

@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:

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
@dirkdunn
dirkdunn / garnet_docs.md
Last active March 3, 2017 20:26
Documentation on how to use the Garnet attendance web software for the WDI program at General Assembly
@dirkdunn
dirkdunn / Git_practice.md
Created February 28, 2017 15:02
Git practice activity

Git Practice

15 min

  1. Initialize a new directory in your workspace
  • Navigate to your WDI code directory and create a new folder mkdir [directory name]
  • Change into your new directory cd [directory name]
  • Use git init to initialize a new Git repository
  1. Create 3 new files
@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 / .md
Created January 6, 2017 19:55
Firebase React Lab

Firebase React Lab

Let's extend our todo list by adding more functionality, and making it look better.

There's a couple things we will do to improve it's functionality and look:

1. Guard input against sending nothing

As of right now, when we submit our form, we are automatically pushing the todo to our firebase.