Skip to content

Instantly share code, notes, and snippets.

View danbroadbent's full-sized avatar

Dan Broadbent danbroadbent

View GitHub Profile
@danbroadbent
danbroadbent / db-prework.md
Last active June 26, 2016 18:49 — forked from mbburch/prework.md
An example template for your Turing pre-work Gist

Turing School Prework - Dan Broadbent

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist:

Module 1 Week 2 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

When complete, fill out this form.

For these questions, write a short snippet of code that meets the requirement. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing

@danbroadbent
danbroadbent / resources.md
Last active August 16, 2016 21:02 — forked from case-eee/resources.md
Module 2 Resources
@danbroadbent
danbroadbent / railscmd.md
Last active September 11, 2016 16:30
Rails Command Line Cheat Sheet:

#Rails Command Line Cheat Sheet:

Create a New Rails App: $ rails new “app_name_goes_here”

Create a New Rails App w/ Postgres Database: $ rails new “app_name_goes_here” -d=postgresql
Create a New Rails App w/o Minitest: $ rails new “app_name_goes_here” -T

If you add a new gem, don’t forget to $ bundle install

Show all existing routes: $ rake routes

Companies I'm Interested In:
GoSpotCheck - Erin Hallows
Ello - Jay Zeschin
Full Contact - Jessica Nolan
Quick Left - Ingrid Alongi
CaptianU - Jim Ray
Twitch - Kelly Lynch
AirBNB - Jonathan Mildenhall
Tesla - Elon Musk

#Leap# My code Here

  • Responder 1 here - This responder used an if statement for each of the possible leap year definitions. He also depended on 0 evaluating to false in order to get his ! on each statement to work.

  • Responder 2 here - This responder got down his code to just a single line. His code started similar to mine and then he refactored it down to just return either true or false without the explicit need for an 'if'.

  • Responder 3 here - This responder used two if statements, each evaluated whether the year was divisible by 4 and then he split them based on their divisibility by 400 or 100.

  • Responder 4 here - This responder used a combination of responders 1 and

Deploy for web command: $npm run ionic:build --prod
@danbroadbent
danbroadbent / mod4success.md
Last active January 9, 2017 21:48
Keys to Success Mod 4 Final Assessment
### Keybase proof
I hereby claim:
* I am danbroadbent on github.
* I am danbroadbent (https://keybase.io/danbroadbent) on keybase.
* I have a public key ASAPS_d5a5EREotWM2B4cbYlE8v4oE219s2KcISI3YoMrQo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am danbroadbent on github.
  • I am danbroadbent (https://keybase.io/danbroadbent) on keybase.
  • I have a public key ASAPS_d5a5EREotWM2B4cbYlE8v4oE219s2KcISI3YoMrQo

To claim this, I am signing this object: