Skip to content

Instantly share code, notes, and snippets.

Election 42 Notes

Child-care

  • NDP :: National $15/day daycare + keep Universal Child Care Benefit from Conservatives
  • Conservatives :: Universal Child Care Benefit (taxable)
  • Liberals :: Canada Child Benefit (non-taxable)

Senate

  • NDP :: Abolish
  • Conservatives :: No new appointments, let provinces deal with it
  • Liberals :: Reform
function loadFontStyles() {
if (!window.localStorage) { return; }
var cssText;
if (cssText = localStorage.getItem('font-style-cache')) {
injectFontCSS(cssText);
} else {
fetch('/css/fonts.css').then(function(cssText) {
localStorage.setItem('font-style-cache', cssText);
return cssText;

Keybase proof

I hereby claim:

  • I am jahfer on github.
  • I am jahfer (https://keybase.io/jahfer) on keybase.
  • I have a public key whose fingerprint is 989C AA71 4413 EC42 E630 D847 EA0E 7143 55D3 C19E

To claim this, I am signing this object:

@jahfer
jahfer / active_record_test_logger.rb
Last active November 26, 2019 14:34
Small tweak to output Active Record logs inside of a test with the stacktrace attached
module MyLogSubscriber
def sql(*args)
trace = caller
Rails.backtrace_cleaner.remove_silencers!
Rails.backtrace_cleaner.add_silencer { |line| not line =~ /^(components)\// }
puts Rails.backtrace_cleaner.clean(trace)
super
puts "---------------"
end
end