Skip to content

Instantly share code, notes, and snippets.

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? We prefer after school and typically not too late.

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

1. What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
It means one can reduce the number of requests that a browser makes to render a web page, which leads to faster load time. Compiling a bunch of files into one location.
Ex. file1.txt file2.txt ---> file3.txt
What does it mean to precompile files? What does this have to do with coffeescript and sass files?
Precompiling pulls all JS and CSS files and brings them together and makes them smaller. By default .coffee and .scss files will not be precompiled on their own and Rails uses CoffeeScript for JavaScript and SCSS for CSS. A "translator"
What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
@jillmd501
jillmd501 / gratitude.md
Last active November 18, 2015 16:13
Lightning Talk - Module 2 - The Science Behind Gratitude

The Science Behind Gratitude

####Think of three things you are grateful for

  • Been sad recently? Worry and guilt activate reward center
  • Why? In the short term, worrying makes your brain feel a little better — at least you’re doing something about your problems.

####Gratitude

  • Wellbutrin boosts the neurotransmitter dopamine - so does gratitude.
  • Prozac boosts the neurotransmitter dopamine - so does gratitude.
  • Forces you to think about positive things which releases seratonin - Even if it is forced!
@jillmd501
jillmd501 / gist:f1e3a63295067af006a6
Created December 9, 2015 23:26 — forked from adamki/gist:20bded28810675f9e7b3
Implementing Mandrill Email
Pre-Work:
Got to Mandrill and set up and account. Have your `username` and `keys` ready.
In Rails, run ` rails g mailer NotificationsMailer` (or something similar) will set up a new file in the `app/mailer/` folder. In this case it generates a `notifications_mailer.rb`. It also creates a new dir: `app/views/notifications`
1. Configure your Mail APP . In `config/application.rb` add the following configuration :
```
config.action_mailer.delivery_method = :smtp
@jillmd501
jillmd501 / WebTrend.md
Created January 2, 2016 17:33
Jill Donohue's M3 Lightning Talk

Front End is Your Friend!

####Have you ever not used an app/website because of how it looks?

  • User Interface (UI) is becoming more and more important
  • Why? YOu could have written the best code possible for an app, but most people won't want to use it if it doesn't look updated

####Trends

  • Account registration (Oauth)
  • Long scroll
  • Card layouts
// Teaspoon includes some support files, but you can use anything from your own support path too.
// require support/expect
// require support/sinon
//= require support/chai
// require support/chai-jq-0.0.7
// require support/your-support-file
//
// PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
// Use this polyfill to avoid the confusion.
//= require support/phantomjs-shims

Array Prototype Methods

  • I understand that functions in JavaScript can take any number of arguments. Yes
  • I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript. Mostly
  • Where are the methods available to all arrays (e.g. forEach, map, etc.) defined? prototype
  • I can explain the difference between using a for loop and the forEach method. Sort of......

JavaScript Functions

  • I can explain the difference between function declarations and function expressions. Yes
  • I can explain what the value of this is in a normal function. Yes
  • I can explain what the value of this is when called from the context of an object. Yes
  • I can explain how to explicitly set the value of this in a function. No
@jillmd501
jillmd501 / require.markdown
Created February 8, 2016 23:38 — forked from rrgayhart/require.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
  • The code examples from the second blog post look very different from the first. Why?

Step One: Watch Mary Rose Cook Live Codes Space Invaders from Front-Trends. (The second worst conference name ever?)

Step Two: Fork this gist.

Step Three: Respond to this question in your fork: What is one approach you can take from this Mary's code and implement in your project?

Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.