Skip to content

Instantly share code, notes, and snippets.

View adamki's full-sized avatar
🤙

Adam Ki adamki

🤙
View GitHub Profile

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

**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI)
**Step Two**: Fork this gist.
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
Trying NOT to oversimplify this questions, but it is a balnace of Space and Time. Space refers to memory. Time refers to the amount time time consumed while performing a task.
Jenn describes how Big O is a variable that can be used to measure run time. While handy, this doesn't take into account when SPACE must be taken into consideration. We can use the example of a Space efficient sort (Bubble) contrasted with a time effecient sort(merge). Depending on the use case, and resources, one may choose a slightly slower sort to save space.
@adamki
adamki / require.markdown
Last active February 9, 2016 20:41 — 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? A module is a the essential building block of Node. In node, a module maps directl to a file. The contents of said file are still private and node requires that any access to the files' contents be explicetely returned.

Step One: Watch Writing Testable JavaScript - Rebecca Murphey from Full Frontal 2012 (award for worst conference name ever?)

Step Two: Fork this gist.

Step Three: 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?

presentation & interaction data/server communication

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?

Hands down, the best approach that speaks to me is the tick() function. OUr game time project has a index.js file that is gradually growing larger and larger. I like the idea of having a Game obj and placing a tick function to control drawing and requestAnimationFrame.

@adamki
adamki / recursion.markdown
Last active February 26, 2016 21:43 — forked from rrgayhart/recursion.markdown
Recursion and Generators Homework
  • Watch Recursion

  • Fork this gist

  • Answer the following questions in your fork

    • Do you pronounce 'babel' in the same way? I was watchng with Subtitles and trying to be quiet. Youtube detects his pronuncition as Bubble. I learned not to npm install -g bubble.

      Also, the music is really good in this video.

  • Follow Up Question: Will you now?

@adamki
adamki / readmelove.md
Created February 22, 2016 16:22 — forked from rrgayhart/readmelove.md
README Love

##PROTIP: README Love

READMEs are AWESOME. They are one of the best things you can add to a repo, (other than quality code), to make it look professional.

####Things that make a README great:

  • A link to the production site on heroku
  • A screenshot (or a few) of what the app does (This is especially important if you don't have the production app up and running yet)
  • Directions on how to clone or fork the repo and run it locally (explain it like you're explaining things to a totally new programmer)
@adamki
adamki / KITE.md
Last active March 19, 2016 18:49
answers for KITEco

Q.1

What does MVC stand for and what does each part of MVC do?

MVC stands for Model View Controller. It is not a proprietary pattern or technokofy. It is simply a way to seperating tasks in a web application. The following parts can be broken up like so:

MODEL:  is an OO representation of Data in the System. The Model should be used to implement Business logic. In Rails, the model leverages Active Record to interact w/ Database and Plain Ruby Objects.

VIEW: Is used to prepare data for for presentation for the user. Should not contain logic. In Rails, use of html.erb or haml is fairly common. Can also use external templating if needed.
@adamki
adamki / seattle_trip.md
Last active April 8, 2016 23:12
Seattle Trip highlights

###Friday - April 8:

  • DevOps meetup was fruitful. Got an interview at Outreach.io on Apr 16. Extremely happy with inperson networking!
  • I also met Myron Marston(MOZ). We had a walking meeting and it was semi-fruitful. He supported me, but I was unable to get much out of him. We got along great and we are buddies.
  • I met with Dave Foley ( Lightboard ) who was very helpful. Dave reviewed my resume and recommended some companies and offered to vouch for me if I get interviews with any companies that he knows(included below). Pretty handy for future prospects as Dave is well-connected.

Overall, I got alot of emails and will continue my networking over weekend.

Dave mentioned these as good based on my resume: formidable labs, facebook, adobe, foundry interactive, pioneer square labs, usermind, general ui, pivotal

@adamki
adamki / jhundam.md
Last active August 22, 2016 16:39
meh...

Interview #1

The Challenge
  • Given a .ZIP file with many files. Files contained:

    • A "Dataset" made of lots of CSV files. The CSV's did not have headers, just comma-seperated strings and integers.
    • Headers were stored in seperate file that acted as a CSV directory/key.
  • the task consisted of dynamically consuming the CSV data and rendering dynamic vizualization of said Data.

  • restrictions / guidelines: