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 Tableless < ActiveRecord::Base | |
def self.column(name, sql_type = nil, default = nil, null = true) | |
columns << ActiveRecord::ConnectionAdapters::Column.new( name.to_s, default, sql_type.to_s, null ) | |
end | |
def self.columns() | |
@columns ||= []; | |
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
GIT | |
remote: git://github.com/agworld/carrierwave.git | |
revision: e702d97baeebd7578f3611dbcff8264d306e629d | |
specs: | |
carrierwave (0.5.4) | |
activesupport (~> 3.0) | |
GIT | |
remote: git://github.com/agworld/geokit-rails3.git | |
revision: 991ff4e287b80459f0ae6e131276a530340010e3 |
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
Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" IS NULL LIMIT 1 | |
UserReportSection Load (0.5ms) SELECT "user_report_sections".* FROM "user_report_sections" WHERE "user_report_sections"."user_report_id" = 1 | |
Rendered user_reports/_user_report_section.html.erb (60200.0ms) | |
Rendered user_reports/_form.html.erb (60223.1ms) | |
Rendered user_reports/edit.html.erb within layouts/company (60224.0ms) | |
Completed 500 Internal Server Error in 60280ms | |
ActionView::Template::Error (undefined method `radio_box' for #<ActionView::Helpers::FormBuilder:0x107f4b0e8>): | |
25: <td> | |
26: <label>Report On</label><br /> |
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
app/views/user_reports/_user_report_section.html.erb:28:in `_app_views_user_reports__user_report_section_html_erb__1994846421_2308184040' | |
/Users/matt/.rvm/gems/[email protected]/bundler/gems/rails-7ee15e8a0f84/actionpack/lib/action_view/template.rb:144:in `send' | |
/Users/matt/.rvm/gems/[email protected]/bundler/gems/rails-7ee15e8a0f84/actionpack/lib/action_view/template.rb:144:in `render' | |
/Users/matt/.rvm/gems/[email protected]/bundler/gems/rails-7ee15e8a0f84/activesupport/lib/active_support/notifications.rb:57:in `instrument' | |
/Users/matt/.rvm/gems/[email protected]/bundler/gems/rails-7ee15e8a0f84/actionpack/lib/action_view/template.rb:142:in `render' | |
/Users/matt/.rvm/gems/[email protected]/bundler/gems/rails-7ee15e8a0f84/actionpack/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial' | |
/Users/matt/.rvm/gems/[email protected]/bundler/gems/rails-7ee15e8a0f84/actionpack/lib/action_view/renderer/partial_renderer.rb:228:in `render |
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
if RUBY_PLATFORM =~ /java/i | |
# ruby-units monkey patches the Time class which in turn exposes a bug in | |
# JRuby (https://github.com/jruby/jruby/issues/565) | |
class Time | |
class << self | |
if defined?( Unit ) | |
# ruby units got there first | |
alias agworld_ruby_time_at unit_time_at | |
alias agworld_unit_time_at at | |
else |
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
number_of_doors = 3 | |
monty_is_random = false | |
switch_choice = true | |
number_of_simulations = 10000 | |
# number_of_correct_initial_guesses = 0 | |
number_of_times_monty_accidentally_exposes_car = 0 | |
number_of_wins = 0 | |
doors = (1..number_of_doors).inject({}){|h,i| h[i] = nil; h } |
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 'csv' | |
if ARGV.empty? || ARGV.length > 2 | |
puts | |
puts 'Please specific the input file name and optionally output base filename:' | |
puts ' ruby nexo_export_conversion.rb nexo_transactions.csv output_filename' | |
puts | |
puts 'Note that the default output filename is input filename appended with each output format appended, currently:' | |
puts ' - output_filename_koinly.csv' | |
puts ' - output_filename_coinstats.csv' |