Skip to content

Instantly share code, notes, and snippets.

Avatar
🕹️

Sam Landfried samlandfried

🕹️
View GitHub Profile
@samlandfried
samlandfried / sl-prework.md
Last active Jan 19, 2017 — forked from mbburch/prework.md
Sam Landfried's prework
View sl-prework.md

Turing School Prework

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist:

View Empathy.md

What role does empathy play in your life and how has it helped you?

Empathy has been a tool for navigating professional and social situations. Without empathy, we're just pinballs bouncing around, reacting to whatever bumper we collide with. Empathy allows us to handle interactions with others in a way that is more productive and enjoyable for both parties that making decisions based solely on our personal condition at the time.

How does empathy help you build better software?

You make software for a user. Someone, at some point, has to interact with that software. If you can't anticipate the user's needs, you will deliver an unsatisfactory product. Depending on the user, you might be in a position to imagine what the user needs that the user might not even realize.

Why is empathy important for working on a team?

View week_1_diagnostic.md

Floats and Integers

What’s the difference between a float and integer?

An integer is a whole number, a float includes a decimal value

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

A bignum is a number that exceeds the storage capacity of a fixnum. I'm not sure at ### what point that distinction occurs, and I'm not sure what different methods are available on both.

What will 4.0 / 2 return?

2.0

What will 1.5.to_i.to_f return?

1.0

View week_2_and_3_diagnostic.md

Week 2 and 3 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we’ve covered during the week.

For these questions, write a short snippet of code that meets the requirement. In cases where the question mentions a “given” data value, use the variable given to refer to it (instead of re-writing the information).

Use single () and triple backticks (```) to container code snippets.

Define a class called PizzaOven which has a method cook_pizza which returns the string "mmm 'za".

View week_4_diagnostic.markdown

Module 1 Week 4 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

For these questions, write a short description or snippet of code that meets the requirement. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing the information).

1. Give one difference between Modules and Classes.

You can instantiate instances of classes but not modules.

View html_css_basics.md

#HTML

Hyper text markup language. Web browsers read it to build web pages.

###HTML Skeleton

The minimum outline for an HTML document

###<head>

@samlandfried
samlandfried / dtr_expectations.markdown
Last active Mar 20, 2017 — forked from case-eee/dtr_expectations.markdown
Group Work Expectations for bike share
View dtr_expectations.markdown

Group Expectations

Group Member Names:

Project Manager:

Defining the Relationship (DTR) Questions:

  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? B: Team collab daily ends at 6:30.
@samlandfried
samlandfried / sessions.md
Last active Apr 3, 2017 — forked from case-eee/sessions.md
Sessions, Cookies, and Flashes
View sessions.md

Sessions, Cookies, and Flashes

  1. If we didn't have cookies and sessions, what would happen?
  • We wouldn't be able to persist anything that didn't exist in our database. We'd be at the mercy of the stateless model
  1. What is a cookie?
  • An insecure hash like object that persists data across sessions.
  1. What's the difference between a cookie and a session?
  • A session's data is serialized making it more difficult to manipulate its contents
  1. What's serialization and how does it come into play with sessions?
  • Serialization protects the contents of a session object. It requires a special key to deserialize it. The key is held by the Rails app.
View setting_expectations.markdown

Setting Group Expectations

Group Member Names: Danny Radden, Jonathan Kidd, Maria Stenquist, Sam Landfried

  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?

Check Google Calendar project

Group: After class - 7 pm Maria: Birthday on Saturday. Wants to meet mornings.

@samlandfried
samlandfried / a_p_s_h.md
Last active Apr 12, 2017
asset_pipeline_scav_hunt.md
View a_p_s_h.md
  1. What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
  • File concatenation is combining files. This saves us time when loading assets because the browser needs to make fewer external calls.
  1. What does it mean to precompile files? What does this have to do with coffeescript and sass files?
  • Precompiling converts higher level languages into their base language. SASS -> CSS. Coffeescript -> Javascript.
  1. What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
  • Minifying a file reduces it to the smallest size possible while retaining its functionality. For example, variable names are compressed to single letter values, and white space is stripped out.
  1. Start up the server for Catch ‘em All (rails s) and navigate to http://localhost:3000/assets/application.js. Then open up the code for application.js in your text editor. Why are these not the same?