Skip to content

Instantly share code, notes, and snippets.

View verdi327's full-sized avatar
💭
Thinkful EI

Michael Verdi verdi327

💭
Thinkful EI
View GitHub Profile
@verdi327
verdi327 / gist:1575972
Created January 7, 2012 20:41
How do govt's spend more than they have and how does new money make its way into the system.

#How the Fed is Responsible for Consistent Monetary Inflation and Credit Expansion You may have heard… our country is broke. Our current national debt is over 15 trillion dollars. That number is astronomically high, to the point where it is even hard to conceptualize it, let alone how to pay it back. You may ask yourself, how in the hell did the debt every reach such a level? Well, in the next 300 words I will explain how governments can spend more money then they take in and how new money makes its way into the economy.

For example, let’s say Congress decides it needs five new Blackhawk helicopters, which cost 1 billion dollars. Having already spent its budget Congress decides to take out a loan. So, it creates 1 billion dollars worth in Treasury Bills, or Notes, or Bonds depending on its desired duration. Private investors buy some of these Bills up, but the Fed through its “open market” activities purchase the majority. The Fed writes a check to Congress for 1 billion dollars. Where did this mone

require "nokogiri"
require 'rubygems'
require 'open-uri'
class Tagger
url = "http://coding.smashingmagazine.com/2012/03/22/device-agnostic-approach-to-responsive-web-design/"
doc = Nokogiri::HTML(open(url))
possible_tags = []
meta_keywords = doc.xpath('//meta[@name="keywords"]/@content').map(&:text)
possible_tags = []
meta_keywords = doc.xpath('//meta[@name="keywords"]/@content').map(&:text)
title_text = doc.css("title").text
possible_tags << [meta_keywords, title_text]
Fabricator(:customer, :class_name => "SalesEngine::Customer") do
id "1"
first_name "Eliezer"
last_name "Lemke"
created_at "2012-02-26 20:56:56 UTC"
updated_at "2012-02-26 20:56:56 UTC"
end
validates :full_name, :email_address, :presence => true
validates_format_of :email_address, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/
validate :email_address, :uniqueness => true
validate :display_name, :length => {:minimum => 2, :maximum => 32 }, :allow_nil
@verdi327
verdi327 / gist:2783362
Created May 24, 2012 18:36
This is a gist
What's up new york.....or DC or something!!!!!!!!
@verdi327
verdi327 / gist:2908453
Created June 11, 2012 04:06
Faye Subscribe Code
##Place this inside ChatRoom/Show
<% javascript_tag do %>
$(function() {
var client = new Faye.Client('http://fallinggarden.com/faye');
client.subscribe("/#{<%= @chat_room.id %>}", function(data) {
// do stuff here when receives the data
// use js to add a new li tag containing the @message.contents
});
});
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH=$PATH:~/bin
export PATH
export EDITOR='subl -w'
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
class Car
include PimpedOut
properties
tires
doors
cd changer
def drive(mph)
end
class Car
properties doors, rims
def doors=(doors)
self.doors = doors
end
def doors
self.doors
end