Skip to content

Instantly share code, notes, and snippets.

View GregoryArmstrong's full-sized avatar

Gregory Armstrong GregoryArmstrong

View GitHub Profile

Array Prototype Methods

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

  • Sure do! Flexibility is cool!

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

  • They are essentially the same. A bit of code which is to be run by the method / function but doesnt need to be accessed outside of it.
@GregoryArmstrong
GregoryArmstrong / greg_armstrong_lightning_talk_module_4.md
Last active March 23, 2016 01:15
greg_armstrong_lightning_talk_module_4

Saving the world one app at a time

Current State of Educational / Medical Applications

  • Many hospitals use extremely outdated programs built on '80s technology
  • Educational field is more progressive in this respect, embracing current technologies more
  • Medical apps for medical literature, doctor discussion, medical information, current patient info
  • Educational apps for behavior tracking and management (KickBoard), turning in assignments (TurnItIn), student / parent feedback

Future Medical Application Technologies

  • Web-based: Mobile, quick access to information, small space for visualization
@GregoryArmstrong
GregoryArmstrong / SandiMetzRulesForDevelopers.md
Created March 17, 2016 17:02
Sandi Metz' Rules For Developers
  1. Classes can be no longer than one hundred lines of code.
  2. Methods can be no longer than five lines of code.
  3. Pass no more than four parameters into a method. Hash options are parameters.
  4. Controllers can instantiate only one object. Therefore, views can only know about one instance variable and views should only send messages to that object.

For me the most difficult to follow would be rule #4. In my last few modules Ive tried to adhere to SRP for methods and classes and that seems to bring down the line length for such things on its own. I am usually only using 1 or 2 arguments for a method anyways, so 3 isnt too difficult either. But #4 is problematic as Ive begun to use POROs more frequently, and so ive gotten used to using 2 or 3 in a controller. It will definitely force me to adhere even more to SRP, but sometimes I feel it's useful to have a couple of instantiated objects. I'll try it on my next project as a challenge to myself.

[SummonerStats]

Pitch

Leage of Legends statistics aggregator, w/ features to compare your account's characters played against top player accounts and be provided character suggestions

Problem

League of Legends game stats are viewable on a limited basis through the game maker's website, however their API provides

Intro - 10 Minutes

  • Installing p5
  • What is p5?
  • p5 sound library

How to p5.sound in a rockin' fashion - 10 Minutes

  • File & Song Setup
  • Visualizer Example/Starter File

What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?

  • To put them together so theyre treated as one. We might want to concatenate to send fewer files for the same amount of data.

What does it mean to precompile files? What does this have to do with coffeescript and sass files?

  • Coffeescript and Sass files are precompiled into their base language so that translation is not needed on the client side.

What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?

@GregoryArmstrong
GregoryArmstrong / proper_commit_messages.md
Created January 7, 2016 16:52
Proper Commit Messages

Teams should agree on commit message conventions:

  • Style: How does the team want to handle markup syntax, wrapping margins, grammar, capitalization and punctuation. This aids in consistency.
  • Content: What should your commit message contain or not contain?
  • Metadata: Do you want to have Tracking IDs, pull requests numbers, perhaps milestone references or waffle.io issue references?

http://chris.beams.io/posts/git-commit/ 's 7 rules of a great commit message:

  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 or less characters
  3. Capitalize the subject line
@GregoryArmstrong
GregoryArmstrong / programming_spinal_cord_injury.markdown
Created December 15, 2015 20:46
Can programming solve spinal-cord injury?

Can programming solve spinal-cord injury?

Spinal-Cord Anatomy Basics

  • Rough overview of spinal cord circuitry and anatomy for the uninitiated, possibly mention UF
  • [Spinal Cord Image]

What Spinal-Cord Injury Is

  • Discuss possible sources of spinal-cord injury
  • Describe what happens to the circuity and structures when injured, both short and long-term effects
  • [Spinal Cord Injury Image]
@GregoryArmstrong
GregoryArmstrong / migrations_databases_models_relationships_in_rails.md
Created December 15, 2015 19:43
Migrations, Databases, Models, and Relationships in Rails

What is the difference between a primary key and a foreign key?

  • Primary Key = Usually an autoincrementing number for each row in the database, specific to the row.
  • Foreign Key = Key in a database which comes from another table, doesnt have to be that other table's primary key but often is. Where would we find a primary key?
  • Primary key is usually the first column in a table, autoincrementing # called ID What would it be called by default?
  • ID Where would we find a foreign key?
  • Secondary table, coming from another (usually primary) table What is the naming convention for a foreign key?