Skip to content

Instantly share code, notes, and snippets.

@gmmowry
gmmowry / curriculum_changelog.md
Created November 5, 2020 23:49
Curriculum Changelog Example

Changelog

All notable changes or enhancements to this curriculum will be documented in this file.

2020-10-31

Added

Fixed

Removed

# Today we'll be creating a Task List for an individual
# who has a lot of errands and tasks to complete and multiple
# locations or stores to go to in order to complete them.
# Create a class for a Task List.
# All TaskList instances should have an owner and a dute date
# passed in on creation. For instance, our owner could be "Tyler"
# and his due date would be "Sunday". The owner should not be
# changeable but you should be able to read it outside of the class.
@gmmowry
gmmowry / cj_vampire.rb
Created April 25, 2017 22:27
CJ's vampire with comments
# build the driver to get the class arguments to pass into initialize
#takes in arguments to flesh out the instance.
#1.collect values from user
#2.call methods to evaluate at the beginning of vampire evaluate method
#to be better in line with best practice
class VampireIntake
attr_accessor :age, :name, :year_born, :allergy, :vampire, :insurance, :garlic, :allergies
# I would rename your return variables for your evaluation methods so they are not named the exact same as your instance variables
# Arrays are ordered, integer-indexed collections of any object.
# Arrays are indexed starting at 0. Any negative index values are relative to the end of the array. For instance, an index of -1 is the last value in the array, -2 is the second last value in the array.
# Arrays are useful for sequential information, things like lists, queues, etc.
zombie_apocalypse_supplies = ["hatchet", "rations", "water jug", "binoculars", "shotgun", "compass", "CB radio", "batteries"]
# 1. Iterate through the zombie_apocalypse_supplies array, printing each item in the array separated by an asterisk
# ----
# 2. In order to keep yourself organized, sort your zombie_apocalypse_supplies in alphabetical order.
# A for loop executes the code once for each variable in the expression passed in
# The break happens after the code has been executed for each variable
# Uncomment the loop below and run it to see what happens. The syntax looks like this:
# for i in 0..10
# puts "The value is #{i}"
# end
# Drill: create a for loop that counts up to 20, prints out each number along the way, and also prints each number multiplied by 3
# ----
# Brrr, it's cold out there! We're going to follow along with one of North America's most common mammals that we see all year round: the squirrel.
#
# Create a Squirrel class that can be initialized with a color and location. There are gray, red, black, and even albino squirrels and they live in locations like the city, state, woods, in town, whatever you feel like.
#
# For instance: one squirrel could be a gray squirrel who lives in the boonies, another instance of a squirrel could be red who lives in Manhattan. Initialize a couple of different squirrels to demonstrate this functionality.
# ----
# Our squirrels might want to find a new home base if too many humans or predators move in, but they can never change their color. Make the color readable from outside the class, and make the location readable and writeable.
# ----

Adding New Users

  1. In the FP backend (admin.floship.com/floship-admin-backend/) you can add new users by going to 'Auth - Users'. At the top there is a button to +Add User, click on this.
  2. This will take you to a form to create a new user. Fill in the client's email as their username.
  3. Use an online password generator to create a secure password (I recommend lastpass https://lastpass.com/generatepassword.php). Paste their password in and hit 'Save'.
  4. The form will reload and there is now a space to add the client's first name, last name, and email. Make sure you enter the user's email address correctly!
  5. Fill those in and at the bottom of the form, hit 'Save'.

Verifying User Set Up