I hereby claim:
- I am noniq on github.
- I am noniq (https://keybase.io/noniq) on keybase.
- I have a public key ASBaNOMZ1twHzYDHXdFvNQCqBA0TDcZQlk6NMSptpLxN3wo
To claim this, I am signing this object:
| loader = Zeitwerk::Loader.new | |
| loader.push_dir(__dir__) | |
| if ENV['RACK_ENV'] == 'production' | |
| loader.setup | |
| Zeitwerk::Loader.eager_load_all | |
| else | |
| loader.enable_reloading | |
| loader.setup | |
| Sidekiq.configure_server do |config| | |
| config[:reloader] = ->(&block){ loader.reload; block.call } |
| require 'capistrano/scm/plugin' | |
| class Capistrano::SCM | |
| # Usage: Add this to your `Capfile`: | |
| # | |
| # require_relative "lib/capistrano_rsync" # adapt path as needed | |
| # install_plugin Capistrano::SCM::Rsync | |
| # | |
| # Note that this you need to deactivate any other SCM plugins (there can only be one SCM plugin active at any time)- | |
| # |
| inherit_from: https://raw.githubusercontent.com/die-antwort/style/master/rubocop.yml | |
| AllCops: | |
| Exclude: | |
| - '**/*.erb' | |
| - 'bin/**/*' | |
| - 'db/**/*' | |
| - 'config/initializers/simple_form*.rb' | |
| - 'features/**/*' | |
| - 'lib/file_column/*' |
| #!/usr/bin/env ruby | |
| # Convert an exported Flowdock flow into a static HTML document. | |
| # | |
| # Usage: | |
| # | |
| # flowdock-archive-to-html messages.json > messages.html | |
| # | |
| # The script assumes that there is a subdirectory `files` containing all files referenced in the exported flow. (This is exactly the | |
| # directory structure you get if you unzip an archive downloaded from Flowdock.) |
I hereby claim:
To claim this, I am signing this object:
| # This is a simple example which uses rubyzip to recursively generate a zip file from the contents of a specified directory. The | |
| # directory itself is not included in the archive, rather just its contents. | |
| # | |
| # The generator has been extended to support ERB templates: Files with an extension ending in `.erb` will be processed by ERB | |
| # before they are added to the archive (the filename in the archive will have `.erb` stripped). | |
| # | |
| # Suitable for templating OOXML documents (eg. DOCX or AXSLX): Just create the template document in the office application of your | |
| # choice, rename the extension to ".zip" and unzip the file. Now add ERB code to individual files as needed (for DOCX you’ll most | |
| # likely want to edit `word/document.xml`). Don't forget to also add an additonial `.erb` extension to those files! Then run | |
| # ErbZipGenerator on the top level directory and with a suitable output filename – done! |
| #!/bin/bash | |
| FILTER="--filter label=myapp" | |
| THRESHOLD=$((7 * 24 * 60 * 60)) | |
| NOW=$(date +%s) | |
| USE_BSD_DATE=$(date -j >/dev/null 2>&1 && echo 1) | |
| function date_to_timestamp { | |
| if [[ $USE_BSD_DATE ]]; then |
| STAY, 4989 relevant rounds (= 49.9%) | |
| 2531 successes (= 50.7%) | |
| CHANGE, 4989 relevant rounds (= 49.9%) | |
| 2493 successes (= 50.0%) |
| var trials = 10000; // Number of times to try the process | |
| var heads = 1; | |
| var tails = 0; | |
| var hth_first = 0; | |
| var htt_first = 0; | |
| var success_hth = 0; | |
| var success_htt = 0; |
| GEM | |
| remote: https://rubygems.org/ | |
| specs: | |
| activesupport (4.1.9) | |
| i18n (~> 0.6, >= 0.6.9) | |
| json (~> 1.7, >= 1.7.7) | |
| minitest (~> 5.1) | |
| thread_safe (~> 0.1) | |
| tzinfo (~> 1.1) | |
| celluloid (0.16.0) |