Skip to content

Instantly share code, notes, and snippets.

View GustavoCaso's full-sized avatar
🧩

Gustavo Caso GustavoCaso

🧩
View GitHub Profile
@GustavoCaso
GustavoCaso / analyzer_benchmark.rb
Last active October 22, 2018 13:32
Benchmark for Analyzer
require 'bundler/inline'
require 'benchmark'
gemfile do
source 'https://rubygems.org'
gem 'pry'
end
number_of_job_payload = ARGV[0].to_i || 100_000
@GustavoCaso
GustavoCaso / Gemfile.lock
Created October 21, 2018 20:30
hanami controller handling exception issue
GIT
remote: git://github.com/davydovanton/dry-system-hanami.git
revision: ae0506d4a858921936843501462cb36f55a9c3b0
specs:
dry-system-hanami (0.1.0)
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
@GustavoCaso
GustavoCaso / build_min_max.rb
Created November 8, 2018 20:57
building min max array
require 'bundler/inline'
require 'benchmark'
gemfile do
source 'https://rubygems.org'
gem 'pry'
end
LAST_ITEM_SCORE = 1573263909
THREE_WEEKS_FROM_NOW = 1543521400
@GustavoCaso
GustavoCaso / job_scheduler_using_ractor.rb
Last active January 5, 2021 04:30
Simple implementation for a job scheduler using ruby Ractor primitive
# How to install the latests version of ruby
# 1. clone ruby/ruby
# 2. autoconf
# 3. ./configure
# 4. cd ext/openssl && ruby extconf.rb --with-openssl-dir=<openssl_root>; make; make install
# 5. cd ../../
# 6. make
# 7. make install-nodoc
# You should be ready ti run this script!!!!