Skip to content

Instantly share code, notes, and snippets.

View mrgilman's full-sized avatar
💻
making pull requests to build pull requests

Melanie Gilman mrgilman

💻
making pull requests to build pull requests
  • GitHub Staff
  • Austin, TX
View GitHub Profile
ActiveSupport::Concern is a feature of Rails that people hold strong
opinions about. In this talk we'll learn what ActiveSupport::Concern gives us
when included in Rails models and controllers. We'll look at some example code
and discuss the best way to use concerns and test them with RSpec. We'll also
talk about some of the drawbacks and why some developers choose to stay away,
and explore some possible alternatives.
class Deck
SUITS = ['♠', '♣', '♥', '♦']
VALUES = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']
def initialize
@cards = []
SUITS.each do |suit|
VALUES.each do |value|
@cards.push(Card.new(value,suit))
@mrgilman
mrgilman / Hungry Academy.md
Created January 9, 2012 03:26
M. Gilman Hungry Academy Part 2

##Pharmaceutical Patents and Generic Drugs#

Pharmaceutical companies obtain patents on novel drugs so that they will have market exclusivity as long as the patent remains valid and has not expired. The Drug Price Competition and Patent Term Restoration Act is an act of Congress that sets forth the process by which generic drugs can enter the market before the patent covering the branded drug has expired.

For any generic drug to enter the market, the company manufacturing it must submit an Abbreviated New Drug Application (ANDA) to the FDA. This application contains information about the composition and manufacturing process for the drug, as well as comparisons between the generic product and the original. The application must also specify whether or not the original drug is patented, and if it is, whether or not the company intends to launch their product before the patent term expires.

If the company intends to sell the generic product before the expiration of the patent covering the original, they must