Skip to content

Instantly share code, notes, and snippets.

View dunlapww's full-sized avatar

Will Dunlap dunlapww

  • Currently seeking employment opportunities
  • Denver, CO
View GitHub Profile
@dunlapww
dunlapww / gist:6ee180e99d50d176dec16aa266819208
Created February 19, 2021 02:19
wd_viewing_party_.travis.yml
language: ruby
rbenv:
- 2.5.3
addons:
postgresql: 9.6
script:
- bundle exec rails db:{create,migrate} RAILS_ENV=test
- bundle exec rspec
deploy:
provider: heroku
@dunlapww
dunlapww / mod_3_project_apis.md
Last active January 3, 2021 00:47
mod_3_project_apis

Board Game Night

  1. Board Game Atlas API provides a list of all boardgames, their price, and average rating. Could be useful generating ideas for board game night, games to purchase for game night, etc. games by popularity: https://www.boardgameatlas.com/api/search?order_by=popularity&ascending=false&pretty=true&client_id=JLBr5npPhV

  2. Google calendar API could help highlight board game times that work for people I setup the quickstart app. I requires OAuth 2.0, but returns a list of all upcoming events on my calendar.

/Users/dunlapww/turing/mod_3/winter_break/gcal-api  $ruby quickstart.rb 
Open the following URL in the browser and enter the resulting code after authorization:
@dunlapww
dunlapww / graphql_vs_rest_apis.md
Created December 27, 2020 19:19
GraphQL vs ReST APIs

GraphQL is a gem/tool that provides an alternative way of organizing your API. GraphQL allows clients to query your server for exactly the data they need (no more, no less) with a single query (even if the query touches multiple end points.

ReST APIs, while intuitive, require multiple queries of the database and often return more or less data than the client actually needs. And often requires multiple calls to the database to get all the data needs. Imagine you have a database that transaction data. A client wants to see a list of user names and their last three transaction dates and quantities. in a ReST setup, this would require a call to the database to get a list of users (e.g. /users). next it would call the database for each user /users/:id/invoices. So it requires multiple db calls, and you'd get not just the last three transactions, but all the users transactions and all the transaction details. With GraphQL, you can specify exactly what you want the server to provide back:

{ users {
  nam
@dunlapww
dunlapww / will_dunlap_mod2_prework.md
Last active September 30, 2020 17:57
will_dunlap_mod2_prework

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML? Hyper Text Markup Language
  2. What is an HTML element? a start tag, content, and end tag
  3. What is an HTML attribute?
@dunlapww
dunlapww / Will_Dunlap_Career_Journal.md
Created August 19, 2020 21:27
Will Dunlap's thoughts on his career path during Turing

layout: page title: Career Journal Template

Career Journal Template

Mod 1

Week 1: [Link here to your gist]

  • (completed)
@dunlapww
dunlapww / Will_Dunlap_4_Pairin_Results.md
Last active July 19, 2020 13:46
Will Dunlap Top 4 Pairin Results

here are my top 4 Pairin Results:

image

What role does empathy play in your life and how has it helped you?

Learning empathy has allowed me to control my emotional responses to situations. My most memorable exposure to the imporance of empathy was when I managed a bookstore a few years ago. A woman came into the store looking for the health section and despite my best efforts to direct her to the area, she was frustrated and angry with the level of service I provided. The situation stressed me out and I was tempted to ask her to leave the store, but I refrained. Eventually she stormed off and returned a 30 minutes later. She apologized for her behavior (without prompt) and had several titles on brain cancer in her arms. She explained that she was diagnosed with terminal cancer that morning. I was devastated by her admission, and it changed my whole perspective on the situation. My biggest take away from this interaction is that we won't ever know the struggles that people in our lives are dealing with, but it's certain that everyone is

Will Dunlap Career Development - Mod 0 Capstone

A couple starter questions:

What is the value of a checklist?

Checklists can provide a number of benefits. First, while it may seem easier to hold a number of tasks in your head rather than taking the time to write them down, this only holds true for me if the list of tasks is less than three. More than 2 items and I quickly start to forget details of the first or find myself constantly thinking about all the tasks which is more work than just writing them down. Writing down tasks, or keeping a written calendar of events ensures you won't forget any tasks and alleviates you from the stress of trying to manage all these items in your head. Second, writing down tasks and crossing them off as you complete them gives you a greater sense of accomplishment. Occasionally I forget to write down my list of tasks and at the end of the day I often wonder what I did all day. Simply writing down the tasks so you can cross them off later provides a greater sen