I hereby claim:
- I am fnordfish on github.
- I am fnordfish (https://keybase.io/fnordfish) on keybase.
- I have a public key ASAsnbLeS3CQ3GCuWeQ8aT64rQwmS0BcH_jMEuBN8-HP_Ao
To claim this, I am signing this object:
$fa = 0.5; | |
$fs = 0.2; | |
module outerShape() { | |
module wrapCyl() { | |
cylinder(d=50, h = 15); | |
}; | |
hull() { | |
translate([0,0,0]) wrapCyl(); | |
translate([-30,(-15/2),0]) cube(15); |
$logger = Logger.new("my.log") | |
prev_trap = Signal.trap("HUP") do |*args| | |
$logger.reopen | |
prev_trap.call(*args) if prev_trap.respond_to?(:call) | |
end |
# frozen_string_literal: true | |
# renamed files for gist compatibility - should be in sub-folders (dmp/*) | |
require_relative "dmp__diff" | |
require_relative "dmp__render" | |
# Diff-Match-Path | |
# https://github.com/google/diff-match-patch | |
module DMP | |
extend Diff |
SRC_PATH=../big_data_dir | |
DEST_PATH=/var/data | |
SERVICE=app |
$ vagrant up --debug | |
INFO global: Vagrant version: 2.2.9 | |
INFO global: Ruby version: 2.6.6 | |
INFO global: RubyGems version: 3.0.3 | |
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\bin\\vagrant" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_LOG="debug" | |
WARN global: resolv replacement has not been enabled! |
# frozen_string_literal: true | |
# Some, probable not extreamly clever, micro benchmarks to compare | |
# different methods of "return a value or error". | |
# The samples benchmark the error path only. | |
require 'benchmark/ips' | |
require 'dry/monads/result' | |
M = Dry::Monads |
require "pp" | |
require "reform" # that's what we want to get rid of | |
require "dry-validation" | |
require "trailblazer" | |
require "trailblazer/operation" | |
# For the sake of this sample, the "model" class is a bit simple | |
Customer = Hash |
class MyBaseSchema < Dry::Validation::Schema | |
configure do | |
# my custom predicates, messages_file, etc. | |
end | |
end | |
TestSchema = Dry::Validation.Form(MyBaseSchema) do | |
required(:foo).filled | |
end |
I hereby claim:
To claim this, I am signing this object:
## | |
# Use hamlit instead of haml for rendering | |
# This is basically a copy of the existing integration for slim | |
RENDERING=<<'RUBY' | |
module Padrino | |
module Helpers | |
module OutputHelpers | |
## | |
# Handler for Hamlit templates. |