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
############################################################################## | |
# thousands_of_assignments.rb | |
# Script for https://github.com/rails/rails/issues/26122 | |
############################################################################## | |
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
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
# activerecord/test/cases/my_assignment_test.rb | |
require "cases/helper" | |
require "models/stat" | |
class MyAssignmentTest < ActiveRecord::TestCase | |
ActiveRecord::Schema.define do | |
create_table :stats, force: true do |t| | |
t.integer :count, default: 0 | |
end | |
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
$enable_tracing = false | |
$trace_out = open('trace.txt', 'w') | |
set_trace_func proc { |event, file, line, id, binding, classname| | |
if $enable_tracing && event == 'call' | |
$trace_out.puts "#{file}:#{line} #{classname}##{id}" | |
end | |
} | |
$enable_tracing = true |
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
Sorry, Y’all, but Climate Change Ain’t the First Existential Threat | |
Go to the profile of Mary Annaïse Heglar | |
Mary Annaïse Heglar | |
Feb 18 | |
URL: https://medium.com/@maryheglar/sorry-yall-but-climate-change-ain-t-the-first-existential-threat-b3c999267aa0 | |
Dear Climate Movement: | |
I’m with you when you say that climate change is the most important issue facing mankind. I’ll even go so far as to say it’s the most important one ever. |
OlderNewer