Skip to content

Instantly share code, notes, and snippets.

@laurenhavertz
Last active December 18, 2015 14:49
Show Gist options
  • Save laurenhavertz/5800360 to your computer and use it in GitHub Desktop.
Save laurenhavertz/5800360 to your computer and use it in GitHub Desktop.
WDI Action Adventure

ls: list directories pushd: push last file pwd: print working directories irb: interactive Ruby mkdir: make directory #keep it DRY

    literal: what you see is what you get
    ex. integer, boolean value, string, 
    
    MVC: model/view/data
    controller: what does work on the program

why ./ why ruby vs. irb repl: read/evaluate/print/loop ctrl + d: end of file character cat: concatenate "put things together" clear ( cmd + k) ctrl + c: close q: quit when in history or manual less: used to display in terminal - scroll up or down -p: going to the parent branch/ won't show up as an error message #!: SheBang -instruction for a shell (ex. Bash) expressions are evaluated in order rw-r--r-- rw (owner has read/write permission)...r(group can read)...r(anyone can read) in line code block ls

4 spaces/ 2 tabs indented code block
  ti
  line```

**always add a line at the end of the file/ editor doesn't add it at the end**

Features of People Picker (PPLPKR) Program
    random?
    groups
    takes out student after drawn
    number of people
      number of groups -g
       number of people -n
       names x
*look at ruby-doc.org*

HW

#BLOG

Blog post in the form of teaching

#CODE

1. create a literal array of all the names you can remember
2. accept `-g` or `-n`
3. accept a number for either
4. when you get `-g n`, split the array into `n` groups and print them
5. when you get `-n n`, print out `-n` names

Bonus 1

store /retrieve the array in a json file

Bonus 2

keep track of selected names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment