This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cardplayer $ gem -v | |
| 1.8.10 | |
| cardplayer $ rake ts:start | |
| DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <top (required)> at /Users/jeremywoertink/Sites/current/cardplayer/config/application.rb:7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local $ git push [email protected]:jwoertink/homebrew.git | |
| Counting objects: 8, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (5/5), done. | |
| Writing objects: 100% (5/5), 909 bytes, done. | |
| Total 5 (delta 3), reused 0 (delta 0) | |
| remote: hooks/post-receive:13:in `require': no such file to load -- /data/repositories/a/nw/a0/76/config/basic (LoadError) | |
| remote: from hooks/post-receive:13 | |
| To [email protected]:jwoertink/homebrew.git | |
| 6865d16..1543377 master -> master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MyTestDriveViewController.m | |
| // CoolApp | |
| // | |
| // Created by Jeremy Woertink on 4/28/12. | |
| // Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
| // | |
| #import "MyTestDriveViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input type="hidden" value="100000" name="minlp" id="minlp" /> | |
| <input type="hidden" value="135000" name="maxlp" id="maxlp" /> | |
| <select id="pricesel" name="pricesel"> | |
| <option value="0,99999">Under $100,000</option> | |
| <option value="100000,135000" selected="selected">$100k ~ $135k</option> | |
| <option value="136000,190000">$136k ~ $190k</option> | |
| ... | |
| </select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| desc "remove blocked email addresses from sending" | |
| task :blocked_email => :environment do | |
| blocks = SendgridToolkit::Blocks.new | |
| blocked_email = blocks.retrieve_with_timestamps | |
| blocked_email.each do |subscriber| | |
| lead = Lead.where(:email => subscriber['email']).first | |
| if lead.nil? | |
| blocks.delete :email => subscriber['email'] | |
| else | |
| lead.deliverable = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Using Ruby 1.9.2p290 | |
| require 'msgpack' | |
| require 'base64' | |
| require 'json' | |
| str = "hello" # plain string | |
| bse = Base64.encode64(str) # base64 encoded string | |
| msg = str.to_msgpack # msgpack string | |
| abc = Base64.encode64(msg) # base64 encoded msgpack | |
| jsn = str.to_json # string converted to json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'releasy' | |
| Releasy::Project.new do | |
| verbose | |
| name "PCOTM" | |
| version "1.0.0" | |
| executable "lib/play.rb" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'shoes/spec_helper' | |
| require 'shoes/element_methods' | |
| include Shoes::ElementMethods | |
| describe Shoes::ElementMethods do | |
| let(:mock_gui) { mock([:set_font, :update_text, :hidden, :new]) } | |
| let(:mock_parent) { mock(:gui => mock_gui, :add_child => "ok") } | |
| context "strong" do | |
| it "should return a Style object" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'java' | |
| require 'jme3_2012_08_02.jar' | |
| java_import "com.jme3.app.SimpleApplication" | |
| class Sample1 < SimpleApplication | |
| def simpleInitApp | |
| # This method is required for jME to work | |
| # defining as simple_init_app fails | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MortgageCalulator | |
| def initialize(opts = {}) | |
| @gross_monthly_income = opts[:gross_monthly_income] || 0 | |
| @default_percentage = opts[:default_percentage] || 0.33 | |
| @annual_ptaxes = opts[:annual_ptaxes] || 0 | |
| @insurance = opts[:insurance] || 0 | |
| @interest_rate = opts[:interest_rate] || 5.500 | |
| @loan_term = opts[:loan_term] || 30 # years | |
| end |