The slides are built with org-isolide. (@kuanyui == the best)
All the mentioned links:
A present with dimensions 2x3x4
requires 2*6 + 2*12 + 2*8 = 52
square
feet of wrapping paper plus 6 square feet of slack, for a total of
58 square feet.
A present with dimensions 1x1x10
requires 2*1 + 2*10 + 2*10 = 42
square feet of wrapping paper plus 1 square foot of slack, for a
total of 43 square feet.
All numbers in the elves’ list are in feet. How many total square feet of wrapping paper should they order?
24pullrequests.com/languages/ruby
If your’re reading this today, you’re late. :D https://blog.phusion.nl/2015/12/07/cve-2015-7519/
X_User: Bob, X-Auth-Token: ValidMallory
HTTP_X_USER: Bob, HTTP_X_USER: Mallory
http://rom-rb.org/blog/2015/11/24/first-beta-of-rom-1-0-0-has-been-released/
1.0.0beta2
create_command = rom.command.create(user: :users) do |user|
user.create(:books)
end
create_command.call(
user: {
name: "Jane",
books: [{ title: "Book 1" }, { title: "Book 2" }]
}
)
result.success?
result.failure?
class Users < ROM::Relation[:sql]
view(:listing, [:id, :name, :email]) do |*order_args|
select(:id, :name, :email).order(*order_args)
end
end
rom.relation(:users).listing(:name, :id)
class MyMapper < ROM::Mapper
attribute :address, from: [:city, :street, :zipcode] do |city, street, zipcode|
"#{zipcode}, #{city}, #{street}"
end
end
class SomethingController < ApplicationController
def create
track("something:create", current_user.id) if current_user
end
def index
@current_events = events
end
def show
@group = analytics.month("something:create") - analytics.month("free:users")
end
end
http://elcuervo.github.io/minuteman/
Christmas Ruby! http://nithinbekal.com/posts/ruby-2-3-features/
puts "well" if user && user.exists?
puts "this is nice" if user&.exists?
cone = 'chocolate'.freeze
cone << 'icecream!' # can't modify frozen String (RuntimeError)
Transition via frozen_string_literal: true
h = { foo: 1, bar: 2, baz: 3}
h.values_at(:foo, :boom) #=> [1, nil]
h.fetch_values(:foo, :boom) #=> raise KeyError