Skip to content

Instantly share code, notes, and snippets.

View gildemberg-santos's full-sized avatar

Gildemberg Santos gildemberg-santos

View GitHub Profile
@gildemberg-santos
gildemberg-santos / gist:8245c336fc5076f7f27d852c35cd2455
Created June 16, 2022 19:48 — forked from eikes/gist:5a64b661022c756bd6522ed94770e2a6
List of Ruby on Rails Timezone names and their alias
["Africa/Algiers", "West Central Africa"],
["Africa/Cairo", "Cairo"],
["Africa/Casablanca", "Casablanca"],
["Africa/Harare", "Harare"],
["Africa/Johannesburg", "Pretoria"],
["Africa/Monrovia", "Monrovia"],
["Africa/Nairobi", "Nairobi"],
["America/Argentina/Buenos_Aires", "Buenos Aires"],
["America/Bogota", "Bogota"],
["America/Caracas", "Caracas"],
@gildemberg-santos
gildemberg-santos / open_struct_struct_hash.rb
Created October 7, 2022 22:04 — forked from tristang/open_struct_struct_hash.rb
OpenStruct vs Struct vs Hash performance
require 'benchmark'
require 'ostruct'
REP = 1000000
User = Struct.new(:name, :age)
USER = "User".freeze
AGE = 21
HASH = {:name => USER, :age => AGE}.freeze