Skip to content

Instantly share code, notes, and snippets.

View acareaga's full-sized avatar

Aaron Careaga acareaga

View GitHub Profile
@acareaga
acareaga / careaga_writing_sample.md
Last active August 29, 2015 14:10
Aging Demographics

##Aging Demographics Turing application writing sample by Aaron Careaga

Demographics hold far greater influence over society's collective understanding and decision making than most people appreciate. At the most basic level, demographics are really just the consumers and workers in an economy. But changes in the profile of these groups directly affect individual, business, and government structures. Successful policies at all three levels must become more dynamic by incorporating the effects of an aging population in order to guide a more prosperous future.

Fluctuations in birth rates between cohorts directly influence the level of growth in an economy - more demand translates into higher levels of revenue, employment, and taxation. Government captures this demand through taxation and redeploys the capital in hope of guiding even higher levels of prosperity. Today, we find that many government programs were structured dur

@acareaga
acareaga / performance_of_code.md
Created September 22, 2015 21:15 — forked from JoshCheek/performance_of_code.md
Performance of code

Performance of code

Time.now

Check the time. Do a thing. Check the time. What's the difference in time?

a = (1..60).to_a
start_time = Time.now
@acareaga
acareaga / snow-tech
Created October 11, 2015 02:33
Talk - Staying Alive in the Backcountry
### Staying Alive in the Backcountry
—> a focus on tech that increases your odds of survival
“When I worked on the Apollo program, I thought rocket science was the hardest form of physics. But snow science is even harder” - Bob Brown
Plan days/night before, plan morning of, plan at trailhead, reasses and adapt as conditions change.
SNOW-TECH
* Avalanche beacons & airbag packs
* GPS, Spot, RECCO chips

Setting Group Expectations

Group Member Names: Aaron Careaga, Cole Hall, Torie Joy-Warren

  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?

Torie can't work Saturday. Aaron wants to ski on the weekend in the morning, and meets with a mentor on Tuesday evening (5:30). Cole has mentoring for ~ an hour Tuesday and Wednesday after wrap-up. Cole likes to have some evening time, which we all like. Friday night is not good for us, after ~6.

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

How to Contribute to Open Source

  1. What is Open Source?

  2. Culture of Open Source

  • notable actors
  • languages & companies
  • government involvement
  1. Why should you care?

Asset Pipeline Notes

  • Concatenate files: combines stylesheets and javascripts into one file, loads faster

  • Precompile files: Translates Sass, Coffescript to plain CSS and Javascripts so rails can process the style easier by moving the translatde files to the public/assets folder

  • Minification takes out the extra whitespace and comments from your assets, faster load times

  • navigate to http://localhost:3000/assets/application.js: displays all the javascript code from app/lib/vendor and gem files

  • Manifest: application.js & application.css are the manifest that give directions for displaying all relevant code for each language built into the applciation

  • Files are referenced in the view/layouts/application.html.erb via:

@acareaga
acareaga / gist:9e4cc96cefd8ee5b7679
Created December 8, 2015 18:54 — 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

JavaScript practice with Exercisms

Leap

My Code

  • Brenna did a nice job splitting the variable and logic into contained pieces. We followed a similar if/else pattern but I felt mine was more succint, using only one else statement.
  • I really like Jeff's implementation of the leap exercise. Similar logic but cleaner if/elsif/else statement. The code is very readable and seems more dynamic than my solution.
  • Astronautas solution is very straight-forward. I like how he initialized the leap variable as an empty function and contained logic to a seperate function. I designed my solution using one variable but felt the implementation maintained an appropriate level of clarity for the exercise.
  • [Tgillus](http://exercism.i
@acareaga
acareaga / es6-aaron-careaga.markdown
Last active February 1, 2016 22:20 — forked from rrgayhart/es6.markdown
Aaron Careaga - ES6 Homework

ES5 vs. ES6

What is ES6?

  • ES6 is the latest version of the ECMAScript standard. This standard is a scripting-language specification that JavaScript (Chrome, etc.), JScript (IE) and ActionScript (Adobe) adhere to for client side development. The first edition of standards was released in 1997 and the last major update prior to ES6 was in 2009.

What is Transpilation and how does it relate to ES6?

  • Transpilaton is the process of taking code from one language or standard and transforming it into another similar language or standard. This relates because ES6 is not yet fully supported, so the client side javascript must be transpiled into ES5 via Babel or Traceur.

Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous.

  • An interesting update in ES6 is the let and const features. let is the new var and is used to declare a block scope local variable, where const is used in single assignment. The variable must be assigned (via

Array Prototype Methods

I understand that functions in JavaScript can take any number of arguments.

  • Yes, ultimate freedom.

I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript.

  • Anonymous functions allow you to pass a block similar to a Ruby enumerable setup.

Where are the methods available to all arrays (e.g. forEach, map, etc.) defined?

  • Array.prototype