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
| function headerValues(){ | |
| return $( '#jsGrid' ).data( 'JSGrid' ) | |
| .fields | |
| .filter( function( d ){ | |
| return d.name != ''; | |
| }) | |
| .map( function( d ){ | |
| return d.name | |
| }) | |
| } |
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
| db_config = YAML.load( ERB.new( File.read( "config/postgres.yml" )).result ) | |
| ActiveRecord::Base.establish_connection( db_config[ ENV[ 'RACK_ENV' ]]) |
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
| Decile Independent Variable Dependent Variable | |
| 1 -6.363525939 0.02950219728 | |
| 2 -3.620811845 -0.5916029083 | |
| 3 -2.119305936 0.5039044438 | |
| 4 -0.7828944705 -0.07579965689 | |
| 5 0.5483736073 0.642124125 | |
| 6 1.765507323 1.193357292 | |
| 7 2.966217647 0.727289107 | |
| 8 4.186309079 1.433569839 | |
| 9 5.77593317 0.06166535553 |
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 RomanNumeral | |
| def self.to_arabic roman_number | |
| add_roman roman_number | |
| end | |
| private | |
| def self.add_roman roman_number |
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 RomanNumeral | |
| def self.add_roman(roman_number) | |
| result = 0 | |
| roman_number.each_char do |c| | |
| result += roman_lookup(c) | |
| end |