Skip to content

Instantly share code, notes, and snippets.

View VictoriaVasys's full-sized avatar

Victoria Vasys VictoriaVasys

View GitHub Profile
@VictoriaVasys
VictoriaVasys / podcast_2.md
Last active April 10, 2017 23:40
Format for 2nd podcast episode!

Opening:

Ideas for opening catch-phraseish thing

  • Comin atcya perpetually live! The turing podcast!
  • V : I'm your co-host, Victoria Vasys, a module-2 back-end engineering student
  • T : and I'm your co-host, Travis Gregory, a mod-2 front-end engineering student

"Newsletter": Project goings-on

  • Everyone is getting their final projects assigned this week!!

Interview: SomebodY!

@VictoriaVasys
VictoriaVasys / sessions.md
Last active April 3, 2017 17:43 — forked from case-eee/sessions.md
Sessions, Cookies, and Flashes

Sessions, Cookies, and Flashes

  1. If we didn't have cookies and sessions, what would happen?
    There would be no data transfer/memory between each click of the page; victim of statelessness
  2. What is a cookie?
    object that you can access like a hash; store non-secure things in browser; expire
  3. What's the difference between a cookie and a session?
    session's data is serialized; more secure; expires at end of browser session. (session is maintained browser side, cookie = server-side)
  4. What's serialization and how does it come into play with sessions?
    Change format of storage; can't just read or edit- gives security

Opening:

Ideas for opening catch-phraseish thing

  • Comin atcya perpetually live! The turing podcast!
  • V : I'm your co-host, Victoria Vasys, a module-2 back-end engineering student
  • T : and I'm your co-host, Travis Gregory, a mod-2 front-end engineering student
  • V : In case you're new to the Turing lingo/format; we have 4 "mods" that are 6 weeks each, for a total of 7 months of schooling! Some people also repeat mods and some get hired before they finish, but generally, 7 months!
  • T : Another Turing-specific convention is how we name our cohorts: each one is the 2-digit-year followed by the 2-digit month of when your cohort started Mod 1. So for us mod-2ers, we're 1701 and our cohort will have that name til the end! :)
  • V : Speaking of Cohorts.... :D, Today at Turing:

"Newsletter": Project goings-on

@VictoriaVasys
VictoriaVasys / active_record_methods.md
Created March 31, 2017 22:53
Notes on active record methods and relationships needed for mid-mod

Need-to-know methods

#find() #find_by() #where() #create() == #new() & #save() #update() == #update_attributes() #destroy()

Need-to-know relationships

has_many :things

Setting Group Expectations

Group Member Names:

  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?

  2. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained?

  3. Which feature(s) does each group member want to work on? Which feature(s) does each group member not want to work on?

HTML & CSS Basics


Warmup

  • What is the purpose of HTML? HTML provides a way to order and structure content on a webpage
  • What is the purpose of CSS? CSS allows you to style your content
  • What are some HTML tags you learned over break? Anything interesting?
  • What is the purpose of a class in CSS? an id? Class allows you to classify related elements into groups that can be styled together; id allows you to single-out unique elements

A very abbreviated walkthrough to fix up your .bashrc and make your command line look SNAZZay :)

For a more thorough walkthrough, see Josh T's gist: https://gist.github.com/josh-works/7f2e6c82d22dca6e9fbc029c8b17703d

First off, we're editing our .bashrc rather than our .bash_profile. (Josh sent me this article which gives a great explanation on why). But before we do, we have to link it to run in our .bash_profile.

  1. open your bash_profile atom ~/.bash_profile
  2. Copy & paste the code below. This should be the only thing in your bash_profile (if you have aliases and other things you want to keep in there, cut & paste them into your .bashrc in step 4.)
1. Give one difference between Modules and Classes.

Modules contain static information, meaning they can be used as "mixins" where a class includes the module & thereby acts like the module's methods are its own.

2. Defining Modules

First, create a module Doughy which defines a method has_carbs? that always returns true. Then, given the following Pizza class, update Pizza to use your new Doughy module to gain the defined has_carbs? behavior.

module Doughy
  def has_carbs?
 true
@VictoriaVasys
VictoriaVasys / vv_week_3_diagnostic.md
Last active February 9, 2017 17:15
Diagnostic of things learned from Weeks 2 & 3 Mod 1 Turing

Week 3 Diagnostic

1

class PizzaOven

  def cook_pizza
    "mmm 'za"
  end
@VictoriaVasys
VictoriaVasys / VV Week 1 Diagnostic.md
Last active January 30, 2017 17:13
A diagnostic of what I've learned from week 1, from memory

Floats and Integers

What’s the difference between a float and integer?

  • A float is a numeric with a decimal, an integer is a whole-number numeric

What’s are the similarities and differences between BigNum and FixNum?

  • They are both integers, but BigNum is a very large number (> 18 or 19 digits long, depending on the binary equivalent), while FixNum is smaller.