This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
gem "http" | |
require "http" | |
require "json" | |
ARGV.size == 3 or abort "usage: #$0 username github_token start-date" | |
USERNAME, TOKEN, START_DATE = *ARGV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bug | |
macro my_method(name) | |
{{ yield }} | |
end | |
def counter | |
@counter ||= Hash(Symbol, Int32).new { |hash, key| hash[key] = 0 } | |
end | |
def run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ROM | |
end | |
require "dry/struct" | |
require "dry/types" | |
require "rom-factory" | |
module Types | |
include Dry::Types.module | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler" | |
class BundlerSetup | |
def initialize(gemfile) | |
@gemfile = gemfile | |
@lockfile = "#{gemfile}.lock" | |
end | |
def run(io) | |
Dir.chdir(File.dirname(@gemfile)) do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Touches changed files in order to make it work | |
# on Docker and Windows. | |
# | |
# Usage: bin/touch_changed [<sleep every>] | |
EVERY=${1:-1} | |
RELOAD="tmp/reload" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am splattael on github. | |
* I am splattael (https://keybase.io/splattael) on keybase. | |
* I have a public key ASAOivkHiHFETTHI-uL5oBlmsPXZQ2nZRmVHL_Do7TpmUgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
DEBIAN_FRONTEND: noninteractive | |
APT_PACKAGES: libgc-dev libpcre3-dev libevent-dev | |
cache: | |
key: "crystal" | |
paths: | |
- .crystal | |
.test-crystal: &test-crystal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/inline" | |
gem "dry-types" | |
gem "dry-struct" | |
gem "allocation_tracer" | |
require "dry-types" | |
require "dry-struct" | |
module Types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Touches changed files in order to make it work | |
# on Docker and Windows. | |
# | |
# Usage: bin/touch_changed [<sleep every>] | |
EVERY=${1:-1} | |
RELOAD="tmp/reload" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error in ./foo.cr:22: undefined method 'uid' for Nil (compile-time type is Rank?) | |
p list.by("foo").uid | |
^~~ | |
================================================================================ | |
Nil trace: | |
./foo.cr:13 |
NewerOlder