Skip to content

Instantly share code, notes, and snippets.

View jcockhren's full-sized avatar
👨‍🍳
Cooking up something 🔥

Jurnell Cockhren jcockhren

👨‍🍳
Cooking up something 🔥
View GitHub Profile
@jcockhren
jcockhren / Migrations_Setup.md
Last active December 9, 2015 20:36
How to setup Migrations
  1. From the menu, Go to Tools -> NuGet Package Manager -> Package Manager Console
  2. Follow Steps in commits to ready project for migrations
  3. Run Enable-Migrations -ContextTypeName Jitter.Models.JitterContext
  4. In order to Create an initial migration -> Add-Migration InitialCreate
  5. To apply that migration -> Update-Database
@jcockhren
jcockhren / instructions.md
Created December 5, 2015 20:34
Wrangling Database Migrations

In order to Re-create initial migration (In Package Manager Console)

  1. Update-Database -TargetMigration $InitialDatabase (Deletes all tables in database, but keeps Database file)
  2. If you have a file with the name "InitialCreate1" delete it. If it's not there, no worries.
  3. Add-Migration InitialCreate (re-create InitialCreate migration file with you new models changes)
  4. Update-Database (now apply the newly created migration)
@jcockhren
jcockhren / final-capstone.md
Last active December 9, 2015 22:27
Day Class Capstone and Due Dates

Final Capstone

This is the final capstone for this class.

Project Criteria:

  • Pick a project you're at least midly excited about!
  • This is the ultimate resume piece that you will be showing to employers, so take that into consideration.
  • Backend must be fully tested.
  • Must have Create, Read, Update and Delete operations.
@jcockhren
jcockhren / intstructions.md
Created November 24, 2015 15:08
Keeping your fork in sync

Keeping your fork in Sync

  1. Make sure all your changes are commited on your branch.
  2. git push origin your branch
  3. git checkout master
  4. git pull upstream master
  5. git push origin master
  6. git checkout -b a new branch
@jcockhren
jcockhren / simplecalc-advanced-1.md
Last active November 23, 2015 18:53
Calculator Assignment for those who finished their calculator.

Simple Calculator Advanced - Persisting Constants

Task

Write tests that ensure Constants are persisted across multiple runs of your calculator. You do not have to have persisting Constants working in your calculator project (yet). However you must have the passing tests to prove you could.

Keep in mind, our end goal is

First Run:

1 pound tilapia
1/2 pound Asparagus
Green Peas
Thai Basil
Green Curry Paste
Kaffir Lime Leaves (optional)
Lime Juice
Coconut Oil
Palm Sugar or Brown Sugar
Fish Sauce
@jcockhren
jcockhren / README.md
Created November 18, 2015 23:13
Files for demonstrating Issue #6073 doesn't solve all our problems

To reproduce the problem mentioned in the description of Issue #6382 and it's comments do the following:

Included

  • Vagrantfile
  • minion config (placed in a directory salt/)
  • top.sls (placed in a directory salt/states/)
  • something.sls (placed in directory salt/states/; used to prove that a even the most trivial of states won't run)

Assumptions

  1. You should have a directory called salt which contains a states subdirectory and the minion config file provided below. The Synced Folder setting in the Vagrantfile requires it.
@jcockhren
jcockhren / README.md
Last active November 17, 2015 16:56
Acceptance Criteria For Jitter

Jitter

Key Vocabulary

  • Jot - Editable. 141 characters max. Like a Tweet but better.
  • Follower - A user that tracks another user's feed.

Acceptance Criteria

  1. User will be able to Create a Jot with the option of attaching a picture.
@jcockhren
jcockhren / final-capstone.md
Last active December 4, 2015 15:40
Final Capstone Project

Final Capstone

This is the final capstone for this class.

Project Criteria:

  • Pick a project you're at least midly excited about!
  • This is the ultimate resume piece that you will be showing to employers, so take that into consideration.
  • Backend must be fully tested.
  • Must have Create, Read, Update and Delete operations.
@jcockhren
jcockhren / nov-09-mvc2.md
Last active November 9, 2015 23:49
Homework for the week of November 9th