Skip to content

Instantly share code, notes, and snippets.

View jdmorlan's full-sized avatar

Jay Morlan jdmorlan

  • Freelance Web Developer
  • Houston, TX
View GitHub Profile
@jdmorlan
jdmorlan / abstract.md
Created June 29, 2015 16:29
Thoughts on an improved Course Catalog

Going back to school has shown some of the defencies in current Course Catalog packets that LoneStar College provides. It isn't that information isn't provided, its just that it lives in so many different locations and systems don't really help in seeing what you can take versus what you need to take to complete specific degrees.

I can look at degree plans which provide core classes that must be taken, but the list is nothing more than a department and course number. If I want to look up what the courses are (title) then I have to open a pdf that has all the class descriptions. This is certainly doable, but it does limit my motivation to really explore all the available courses.

Another thing is that the search feature in PDF's isn't the greatest. I would be awesome if I could just go

@jdmorlan
jdmorlan / dep.md
Created June 1, 2015 14:56
Definition and Execution Phases of Life?

The definition phase is a fancier, and maybe ambiguous terms for what is commonly labeled as the design phase. However, I don't want to label it as such, since I think it the term design limits the application in many minds.

So...at the beginning of the definition phase, you have an idea of what you would like to accomplish, but the idea has so many paths at this point, that you haven't determined the scope required to execute it.

There are two ways you can work through the definition phase, and I liken this to the software development design processes (waterfall vs. iterative).

@jdmorlan
jdmorlan / rps_algorithm_test.rb
Created May 13, 2015 03:51
Rock, Paper, Scissors Algorithm Test
require 'minitest/autorun'
require_relative 'rps_algorithm'
class AlgorithmTest < Minitest::Test
def setup
@algo = RPSAlgorithm.new
end
[*(0..3000)].each do |value|
@jdmorlan
jdmorlan / rps.rb
Last active August 29, 2015 14:21
Rock, Paper, Scissors Winner Algorithm
class RPSAlgorithm
# Let Paper = 1, Rock = 2, Scissors = 3
def initialize(values={})
@values = {paper: 1, rock: 2, scissors: 3}
end
def set_values(values)
@values = values
end
@jdmorlan
jdmorlan / model_stat.rb
Created March 11, 2015 21:24
Aero Components - Ingersoll Rand
class Model
attr_reader :model_number
def initialize(model_number)
@model_number = model_number
@aeros = []
end
@jdmorlan
jdmorlan / commercial_invoice_fields.txt
Created March 2, 2015 14:56
Common Fields used for Commercial Invoices
1. Shipper/Exporter (Full Address)
2. Consignee (Full Address)
3. Intermediate Consignee (Full Address)
4. Date
5. Customer Purchase Order Number
6. Invoice Number
7. Country of Origin
8. Terms of Sale
9. Terms of Payment
10. Terms of Freight
@jdmorlan
jdmorlan / yaml_front_matter.rb
Created February 1, 2015 22:28
How to read YAML Front Matter.
require 'yaml'
thing = YAML.load_file('some.yml')
puts thing.inspect
@jdmorlan
jdmorlan / notification-server.rb
Created November 17, 2014 16:31
A sample notification server example for jdmorlan.github.io blog post.
require 'sinatra'
require 'json'
require 'httparty'
subscriptions = []
get '/subscriptions' do
subscriptions.to_json
end