Skip to content

Instantly share code, notes, and snippets.

Jan Klimo janklimo

Block or report user

Report or block janklimo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
janklimo / config.yml
Created Aug 10, 2019
Robin PRO CircleCI config
View config.yml
version: 2.1
aws-cli: circleci/aws-cli@0.1.13
parallelism: 1
working_directory: ~/src
- image: circleci/ruby:2.6-node-browsers
View publish_client
# Clean slate
echo "Cleaning up old assets and packs..."
rm -rf public/assets public/packs
# Precompile assets for production
echo "Precompiling assets..."
bundle exec rake assets:precompile RAILS_ENV=production PUBLISH_CLIENT=true
janklimo / benchmark.rb
Created Sep 25, 2018
Comparison of memory usage: AXLSX vs. rubyXL
View benchmark.rb
# frozen_string_literal: true
require 'axlsx'
require 'rubyXL'
require 'memory_profiler'
rows = 1_000
columns = 20
report = do
janklimo / memory.rb
Created Sep 29, 2017
Measure how much memory gets used by a Ruby process
View memory.rb
def print_memory_usage
memory_before = `ps -o rss= -p #{}`.to_i
memory_after = `ps -o rss= -p #{}`.to_i
puts "Memory: #{((memory_after - memory_before) / 1024.0).round(2)} MB"
janklimo / bx.rb
Last active Sep 2, 2017 — forked from citizen428/bx.rb API
View bx.rb
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'net/http'
require 'json'
require 'yaml'
unless ARGV.count == 0 || ARGV.count == 1
puts "Usage #{$0} [--mappings]"
You can’t perform that action at this time.