Skip to content

Instantly share code, notes, and snippets.

View marlomajor's full-sized avatar

Marlo Major marlomajor

View GitHub Profile
@marlomajor
marlomajor / gist:5a871170d8633c2378b6
Created November 10, 2015 23:39
Outline for How to Start a Medical Device Company

How to Start a Medical Startup

My Story

  • GluCase
  • Accelerator
  • Funding Process

Why should I Start a Medical Startup?

  • My experience with health tech and humans
  • Health remains one of the more unfulfilled tech spaces in the world
@marlomajor
marlomajor / gist:d00c043df9305aa8629a
Created February 1, 2016 20:33
Write User Stories like a 12 year old
ROUGH DRAFT YUHHHHHHH
## Write User Stories like a 12 year old
#### My Story
* Twitter With Brother
#### What makes a 12 year old better than current developers at writing user stories?
* Talk about how many users on net are around 12
* Write a user story like a user by going to a website similar to yours etc

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

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

Throughout the module (and your journey to Google enlightenment while working on IdeaBox2.0) you may notice a few different ways that JavaScript code is being written.

That might have something to do with something called ES6 and ES5

Fork this gist and answer the following questions:

  • What is ES6? -ECMAScript 6, is also known as ECMAScript 2015 and is the new standard for ES. It is the first major update since 2009 with ES5. Several major changes have been made to the language, including, but not limited to the following: -Arrows - functional shorthand using =>. Share the same this as the surrounding code. -Class - single declarative form allowing for more interoperability -Enhanced Object Literals - I do not know what this means.
**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?"
The question of which sorting algorithm should be used versus another depends on the goal of the project one is trying to solve. Our main concern with sorting algorithms are with how long it takes to complete the algorithm and also how much memory the algorithm uses. Bubble sort is a simple sorting algorithm, often used for teaching first lessons on algorithms. It's easy to understand as a visual, simple to pseudocode for a beginner, but slow in actual processing and low on the memory usage. So just in this one case alone, the positives for bubble sort are that it's simple to learn and uses little memory, but also requires a lot of time to run. Depending on the goal, the balances and trade offs one makes on sorting algorithms is dependent on
@marlomajor
marlomajor / require.markdown
Last active April 15, 2016 15:52 — 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 part of an application that has a specific purpose. You can write an entire application in one module, or you can break a small application into many modules for better organization and readability.

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, and Setup are obvious to me, but data server communication and application state are things I normally just don't think about. Those were definitely surprising to me. Now...to incorporate this aha moment into my code...
  • Do you feel like you mentally split your client side code in IdeaBox and other past projects into these responsibilities?
  • Only after building the entire application in one module was I able to extract the responsibilities and split the code into their respective responsibilities. For me, this was an easier way to understand the beginning of JavaScript.

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? She codes like a storyteller. This approach is something that resonates with me because I think in stories, if you will, and being able to design an entire game step by step simple by telling the story is something I hope to incorporate into my code design from now on. Honestly, without this video, it would've been much harder for me to complete my Gametime project, which was also Space Invaders. This video was very helpful in my implementation.

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

@marlomajor
marlomajor / recursion.markdown
Last active April 15, 2016 15:53 — 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?
    • Bobble is CLASSIC.
      • Follow Up Question: Will you now? YASSSSSS
    • What is an example of why/where you might use recursion
  • Hmm...one place to use recursion would be...in a game loop where the games function has to be continually rerun. In Tyler and Jill's snake game, they had multiple instances of recursion in order to add to the snakes body and get the overall function of the game.

##Leap My code: here

  • Responder #1 (here) - This approach is significantly more simple than mine. The creater uses a one line function that includes an or/and operator and returns true.
  • Responder #2 (here) - This programmer assigns an anonymous function to a variable. Afterwards, she uses an if/elseif/else statement to check for each occurence.
  • Responder #3 (here) - This programmer also used an if else statement to accomplish the same task. Main difference is that the first statement is a check to make sure the year is divisible by 4. The nested if statement then checks for the other functionality.
  • Responder #4 (here) - This programmer uses one if statement to check for di