This file contains 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 CreditCard | |
{ | |
Provider provider; | |
string name; | |
string description; | |
decimal? apr; | |
Fee balanceTransferFee; | |
Fee purchaseRateFee; | |
//... | |
} |
This file contains 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 Fee | |
{ | |
decimal? rate; | |
decimal? minimum; | |
decimal? maximum; | |
// ... | |
} |
This file contains 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 CreditCard | |
{ | |
Provider provider; | |
string name; | |
string description; | |
decimal? apr; | |
Fee balanceTransferFee; | |
Fee purchaseRateFee; | |
//... | |
} |
This file contains 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 InvestmentFund | |
{ | |
Provider provider; | |
string name; | |
string description; | |
decimal? averageInterestRate; | |
decimal? annualFee; | |
decimal? annualMinimumFee; | |
decimal? annualMaximumFee; | |
decimal? withdrawFee; |
This file contains 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 InvestmentFund | |
{ | |
Provider provider; | |
string name; | |
string description; | |
decimal? averageInterestRate; | |
Fee annualFee; | |
Fee withdrawFee; | |
//... | |
} |
This file contains 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
#python | |
class Page(object) | |
def __init__(self, a, b) | |
super.__init__(Page, a, b) | |
self.a, self.b = a,b | |
def _something_private_but_not_really(self): | |
# do something | |
# do something | |
return 123 |
This file contains 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
an_object = Object.new | |
// This is if I know in advance param_1, param_2, param_3 | |
an_object.define_singleton_method(:method_name) do |param_1, param_2, param_3| | |
do_something | |
end | |
// What should I do if the number and name of parameters is only known at run time? | |
// Is there a way for example to add parameters to a Proc? | |
// a_proc = Proc.new { puts 'whatever'} | |
// a_proc.parameters << [:req, :name] <---- this doesn't append :( |
This file contains 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 'spec_helper' | |
describe EventsController, "Adding a new event to a group" do | |
include SessionTestHelper | |
before :each do | |
@david = Factory(:david) | |
@ken = Factory(:ken) | |
@the_group = Factory(:group, :organizer => @ken) | |
end |
This file contains 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
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[\033[01;33m\]$(bash_git_branch) \[\033[01;31m\]$(ruby_versio n)\[\033[00m\]\$$ |
This file contains 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
36113416 | |
36315112 | |
36739696 | |
37608861 | |
38268795 | |
38268903 | |
38871755 | |
38880250 | |
39036128 | |
39101895 |
OlderNewer