Points given for people parking in smartcar spot outside of the drake
points | |
---|---|
100 | Actual smart car |
150 | Motorbike |
50 | SUV or minivan |
25 | Regular car |
75 | Truck |
class A | |
def foo | |
@foo | |
end | |
def initialize | |
@foo = 123 | |
40.times do | |
instance_variable_set(:"@var_#{_1}", _1) | |
end |
Points given for people parking in smartcar spot outside of the drake
points | |
---|---|
100 | Actual smart car |
150 | Motorbike |
50 | SUV or minivan |
25 | Regular car |
75 | Truck |
# $ ruby -v | |
# ruby 3.2.0dev (2022-09-11T14:08:14Z master 684353fc03) [x86_64-linux] | |
# $ ruby --mjit=pause --mjit-wait --mjit-min-calls=5 hawthjit.rb | |
# 246 | |
# 246 | |
# 246 | |
# 246 | |
# attempting to compile block in <main> | |
# can't compile putself | |
# attempting to compile double |
Will be at https://twitch.tv/seejohnrun 4:00PM PST
On a previous stream we looked at encapsulating Action View template details (format, locale, and variant) in a nice class rails/rails#42210. That code is now being used for template lookups rails/rails#42945.
Today I'd like to use these template details to change how we do Action View's fragment digests.
Currently these fragments are calculated separately for each different set of details,
class Integer | |
alias_method :add, :+ | |
alias_method :+, :* | |
alias_method :*, :add | |
end | |
p File.readlines("data/18.txt").map { | |
|l| eval(l.tr("+*", "*+")) | |
}.sum |
require "ripper" | |
class LocalDetector < ::Ripper | |
Ident = Struct.new(:value) | |
attr_reader :vcalls, :var_assigns, :var_refs | |
def initialize(code) | |
@vcalls = Set.new | |
@var_assigns = Set.new |
module MyHelper | |
m = Module.new | |
m.inspect # #inspect break this. #name is fine. wtffffff | |
FooBar = m | |
FooBarName = FooBar.name | |
end |
#!/usr/bin/env ruby | |
# git-flatfix | |
# For each changed file, generate a separate "fixup" commit targetting the last | |
# time that file was changed. | |
def usage | |
STDERR.puts <<~USAGE | |
Usage: git-flatfix [basebranch] | |
USAGE |
#!/usr/bin/env ruby | |
require 'socket' | |
require 'uri' | |
class MinecraftIrcBot | |
def initialize(options) | |
uri = URI.parse("irc://#{options[:server]}") | |
@channel = options[:channel] | |
@socket = TCPSocket.open(uri.host, uri.port || 6667) |
class NullFileUpdateChecker | |
def initialize(files, dirs, &block) | |
@block = block | |
end | |
def execute | |
@block.call | |
end | |
def updated? |