Skip to content

Instantly share code, notes, and snippets.

View adamhundley's full-sized avatar

Adam Hundley adamhundley

View GitHub Profile
@adamhundley
adamhundley / cfu_crud_in_sinatra.markdown
Last active February 3, 2016 00:28 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD.
  • Create Read Update Delete.
  1. There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for.
  • GET /all - shows everything created
  • GET /all/specific - shows a specific thing created
  • GET /all/new - gives form to create something new
  • POST /all - creates something new
  • GET /all/specific/edit - shows something that has already been created but needs to be changed
  • PUT /all/sepcific - makes changes
  • DELETE /all/specific - deletes
@adamhundley
adamhundley / Github_Keyboard_Shortcuts.md
Created February 25, 2016 16:41
a list of a few github shortcuts

All of these key commands are while in a repo

  • t - Activates the file finder
  • w - Switch to a new branch or tag
  • s- Focus the search bar
  • g + p - go to the repos pull requests
  • g + i - go the the repos issues
  • l - Jump to a line in your code(while in an actual file)
  • g + c - Go to your repository
  • g + i - Go to your issues

Setting Group Expectations

Group Member Names: Nick, David, Adam

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed?
  • We discussed working together most of the times. There are a few commitments that each of us have and will respect.
  1. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained?
  • We plan on being together moajority of the time. In person communication is strongest. Else we will use slack.
@adamhundley
adamhundley / mod_2_portfolio.md
Last active March 11, 2016 18:04
Module 2 Portfolio

Adam Hundley - M2 Portfolio

Mission:

Beginning MOD 2 I have a desire to become more proficient in my command line, typing and git skills.

Goals:

  • MASTER GIT! I still do not feel confident in my gitbilities and I want to fix that. I want to be the git leader who knows all that is git.
  • I love the design and prettiness aspect that programming can I have. I would like to learn things outside of what we are being taught to make the things I create prettier on the web. ie CSS, Bootstraps, etc.
  • For my soft skills goal, I would love to improve my listening skills. Not only in the classroom setting but in a personal, one on one, conversational context.
  • constantly improve Blog
@adamhundley
adamhundley / the_pivot_dtr_memo.md
Last active March 21, 2016 19:24
The Pivot DTR Memo

Setting Group Expectations

​ Group Member Names: Adam, Nate, Alex

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed?
  • We decided to work together a lot at the beginning and try a more remote working process throughout the project. We all have things on Sunday. Alex has the gym MWF 4:15-6:15. Adam has family in town over the weekend and church commitments on Friday evening and Sunday morning. Nates wife gets back in town on Sunday.
  1. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained?
  • Slack and in person are the best forms of open and direct communication
@adamhundley
adamhundley / intermediate_sql_hw.md
Last active March 25, 2016 05:26
Intermediate SQL tutorial for Mod 3

SERIAL generates id's

SELECT sum(revenue) FROM items;
SELECT avg(revenue) FROM items;
SELECT max(revenue) FROM items;
SELECT min(revenue) FROM items;
SELECT count(name) FROM items;

SELECT count(*) FROM items;
@adamhundley
adamhundley / Spotishow.md
Last active April 17, 2016 21:43
spotishow

Spotishow

Pitch

Spotishow is a web app that connects an app that scans your spotify account and gives you upcoming shows in your area based on the music you listen to.

Problem

We listen to music via Spotify all the time, but how often does a song or artist we listen to get left on a playlist. There needs to be a better way connect listeners with the bands they discover via Spotify to their live shows.

@adamhundley
adamhundley / local_production.md
Last active April 19, 2016 18:24
Running App Locally in Production

This is step by step instructions on how to run your app locally in the production environment.

  1. Add gem 'rails_12factor' to your Gemfile. This will add error logging to the command line and the ability for your app to serve static assets.
  2. run bundle
  3. run bundle exec rake secret and copy the output
  4. in application.yml set the secret_key to match what secret.yml is expecting (<%= ENV["SECRET_KEY_BASE"] %>)
  5. in database.yml under production: delete username and password
  6. run rake assets:precompile - This will create a folder public/assets that contains all of your assets.
  7. run RAILS_ENV=productions rake db:create db:migrate db:seed or db:setup
  8. fire up the server with http://localhost:3000
@adamhundley
adamhundley / require-1511.markdown
Created May 23, 2016 22:33 — forked from rrgayhart/require-1511.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
  • The code examples from the second blog post look very different from the first. Why?
@adamhundley
adamhundley / fareharbor_api_project.md
Created September 9, 2016 20:43
FareHarbor API Project

Turing API Project

Quick Pitch:

Build a client-side library for an easy and straightforward consumption of the FH API, write documentation explaining how to use the library and build an example project that uses the library.

Details: