Skip to content

Instantly share code, notes, and snippets.

View ryanorsinger's full-sized avatar
🎏
Reading the readme... again :)

Ryan Orsinger ryanorsinger

🎏
Reading the readme... again :)
View GitHub Profile
@ryanorsinger
ryanorsinger / day_one_handout.md
Created November 7, 2018 15:36
Day One Handout

Welcome to Codeup!

Thought for the day

"The secret to building great products is not creating awesome features, it's to make your users awesome." - Kathy Sierra

Mindset

  • Attitude is contageous
  • Mistakes are fuel for learning
  • You learn more when you're having a good time. Have fun & enjoy the journey!
@ryanorsinger
ryanorsinger / first_git_exercise.md
Created November 7, 2018 15:36
First Git Exercise

Using your preferred editor...

Exercise will be to create a "resources" directory on your Desktop

Save a text from https://raw.githubusercontent.com/CodeupClassroom/git-intro/master/README.md as a text file there named "git-intro.md"

Save a copy of the handout file inside Slack into the "resources" directory

initialize your "resources" folder as a git repo add the files inside

@ryanorsinger
ryanorsinger / sales-report.js
Created November 30, 2018 15:47
JavaScript sales report exercise w/ string and array manipulation
// Output should include:
// - total number of employees
// - total number of units sold
// - avg units sold per employee
// - Then output should share employee production, ordered from highest to lowest # of units
// * Units | Full Name | Employee Number
// * 5 Bob Boberson 2
var reportContents = "Monthly Sales Report\nDate: 03-17-2015\nOffice: Codeup\n ===================================================\nEmployee Number, First Name, Last Name, Sales Units\n***************************************************\n\n1, Jane, Janeway, 3\n3, Tricia, Triciason, 5\n4, Jeannette, Jeanson, 4\n5, Charles Emmerson III, Winchester, 2\n6, Chet, Chedderson, 8\n7, Chaiam, Chaiamson, 12\n8, Dale, Dalesinger, 1\n9, Zig, Ziglar, 50\n10, Henry, Kissinger, 1\n11, Arthur Herbert, Fonzarelli, 23\n12, Betty, Boop, 67";
@ryanorsinger
ryanorsinger / exercise-prompts.txt
Last active November 30, 2018 15:57
array, loop, and function exercises
More practice w/ loops and arrays
Exercise 1:
Write a function named oneHundred() that returns an array with integers starting at 1 and ending at 100;
Exercise 2:
Write a function named reverse() that takes in an array and returns a reversed copy of the provided array. This function should not alter the orignal array sent into it.
Exercise 3:
Write a function named sumAll() that takes in an array of numbers and returns the sum of all the numbers. Use sumAll() on oneHundred() to get the sum of all numbers 1 + 2 + 3... + 100
@ryanorsinger
ryanorsinger / game.py
Created December 18, 2018 01:09
Intro game in python
treasure = 0
def get_input(string):
print(string)
user_input = input("> ")
return user_input.upper()
def end_game():
if treasure > 0:
print("You got " + str(treasure) + " treasures!")
@ryanorsinger
ryanorsinger / sales_report.py
Last active December 29, 2018 18:31
Sales report challenge
# Assign the following string to a variable named sales_string. "Monthly Sales Report\nDate: 03-17-2015\nOffice: Codeup\n ===================================================\nEmployee Number, First Name, Last Name, Sales Units\n***************************************************\n\n1, Jane, Janeway, 3\n3, Tricia, Triciason, 5\n4, Jeannette, Jeanson, 4\n5, Charles Emmerson III, Winchester, 2\n6, Chet, Chedderson, 8\n7, Chaiam, Chaiamson, 12\n8, Dale, Dalesinger, 1\n9, Zig, Ziglar, 50\n10, Henry, Kissinger, 1\n11, Arthur Herbert, Fonzarelli, 23\n12, Betty, Boop, 67". Now, write a function named sales_report() that takes in the sales_string as an argument.
# Now write a function named sales_report() that takes in this string as its input.
# The sales_report will be returning a dictionary with the following keys
# number_of_employees is a key that returns a value containing the number of employees
# total_units_sold is a sum of all units sold by this sales team
# average units sold per employee is the total unit
# Flashcard Drills
4 in [1, 2, 3, 4]
list(range(1, 7))
[x for x in range(1, 5)]
[x*3 for x in range(1, 5)]
# Flashcard Drills
4 in [1, 2, 3, 4]
list(range(1, 7))
[x for x in range(1, 5)]
[x*3 for x in range(1, 5)]
@ryanorsinger
ryanorsinger / Blackjack.txt
Created January 16, 2019 21:48
Build a BlackJack game in Java
Build a command line game of BlackJack in Java
Start with a Card class. Each card object should have a face value and a suit property.
Next, build an array of 52 cards and store it as a variable called "deck".
Add functionality for a user to play the computer.
Rules of blackjack apply.
The computer should follow dealer rules.
@ryanorsinger
ryanorsinger / todoList.txt
Created January 23, 2019 23:21
Java TodoList
Let's make a Java todo list
1. Make TodoList.java and add a main method.
2. Add a method for viewing all the todos inside of "todo.txt"
3. Add a method for adding new todo items
BONUS:
- Add a method named last() for showing the latest (last) todo.
- Add a method named first() that prints out the first todo