Skip to content

Instantly share code, notes, and snippets.

@Kealii
Kealii / gist:a22513a9e17ceb90163c
Last active September 30, 2015 14:43
AR vs VR
AR vs VR
* What are they?
--What is AR?
--What is VR?
--How are they different, how are they the same?
* Why Should I Care?
--What are past, present, future potential applications (Entertainment, 3D Modeling, Displaying Information)
--Who are the big players now (Microsoft, Nintendo, Google, Valve/HTC)
@Kealii
Kealii / Drones.md
Created February 3, 2016 00:32
Drones: For more than just spying on your neighbors

Drones Overview

Expected Uses

  • Military
  • Amazon Delivery

Unexpected Uses

  • Real Estate Photography
  • Sports Broadcasts
  • Bridge Inspections

Array Prototype Methods

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

True.

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

True.

JavaScript Functions

I can explain the difference between function declarations and function expressions.

8/10

I can explain what the value of this is in a normal function.

8/10

@Kealii
Kealii / es6.markdown
Last active February 9, 2016 17:37 — forked from rrgayhart/es6.markdown
ES6 Homework

What is ES6?

ES6 is a tool for translating new Javascript functionality into syntax that is accepted by older browsers and browsers that suck....cough IE...cough

What is Transpilation and how does it relate to ES6?

Transpilation is taking code from one language as the input and translating it into an output that is code in another language. In ES6, this is specifically taking newer javascript functionality and translating it backwards to allow developers to use the newest features without worrying about shitty browser incompatibility (still looking at you IE...).

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

I can explain how the new keyword changes the way a function behaves.

8/10

I can explain the implicit steps that happen in my function when I use the new keyword.

8/10

I can explain the difference between an object's prototype and the prototype property on the constructor function.

What are some of the balances and trade offs between different sorting algoritms?

####Bubble Sort - Ideal for small lists or large lists that are almost in order. #####Pros

  • Great with almost sorted lists
  • Memory Cheap

#####Cons

  • Slow
@Kealii
Kealii / require.markdown
Last active February 9, 2016 20:40 — forked from rrgayhart/require.markdown
The Concept of Require
  • In the context of Node, what is a module?

A module is a reference to a value or function stored in another file but made available for use in another file.

  • The code examples from the second blog post look very different from the first. Why?

The code examples in the 2nd post are for a specific library (RequireJS) that handles javascript modules for easier requiring.

###Consider the four responsibilities that Rebecca lists for client side code (hint: they're color coded).

Did any of the responsibilities that she lists surprise you?

  • I'm not sure that it was surprising, but it was interesting to notice that when looking at the page itself and breaking out the actual display elements into those categories, that there wasn't any mention of testing the presentation side of things. We've been shown repeatedly that it is possible, but told to question whether that's really what we should be testing (ie test biz logic instead).

Do you feel like you mentally split your client side code in IdeaBox and other past projects into these responsibilities?

  • I haven't specifically tried to break out testing into these responsibilities, but it's obvious Rails tries to push that kind of breakdown by using things like Model tests to strictly test Data and View tests to test Presentation. I could see Feature tests being viewed as a way to test that your Applications State is be

###What is one approach you can take from Mary's code and implement in your project? Since we're building the same app, it's all pretty relevant, though specifically it was nice to see how to break logic out into a presenter, a function that checks state, and even getting a peek into how to map keyboard controls into on screen actions. I really hope to be as modular as she was and make a serious effort to keep different logic types separate.