Skip to content

Instantly share code, notes, and snippets.

@rickenharp
rickenharp / main.go
Created August 16, 2017 15:12
Gogland EAP 12 type compatibility error
package main
import (
"log"
"os"
"fmt"
"cloud.google.com/go/pubsub"
"golang.org/x/net/context"
)
Thu May 18 12:17:10 UTC 2017
require 'disposable/twin/struct'
require 'trailblazer/operation/model'
require 'reform/form/dry'
module User
class Create < Trailblazer::Operation
include Model
model ::User::Persistence, :create
contract do
@rickenharp
rickenharp / user_repository.rb
Created May 12, 2016 09:04
user_repositoy.rb
class UserRepository
include Hanami::Repository
def self.with_timezone
query do
ap self
join(:pg_timezone_names, foreign_key: :timezone, key: :name).order(:utc_offset)
end
end
end
%table
%tr
%th
Foo
%th
Bar
= rows
Verifying that +rickenharp is my blockchain ID. https://onename.com/rickenharp

Keybase proof

I hereby claim:

  • I am rickenharp on github.
  • I am rickenharp (https://keybase.io/rickenharp) on keybase.
  • I have a public key whose fingerprint is B38E 473B 82B8 F425 6BDC 5E64 3B29 1A0B 2E9C 43C9

To claim this, I am signing this object:

@rickenharp
rickenharp / minecraft_seeds.txt
Created August 5, 2014 15:55
Interesting seeds for Minecraft worlds
1455161283749254419
18/05/14 19:25:13,490 Tweetbot[18694]: Exception detected while handling key input.
18/05/14 19:25:13,491 Tweetbot[18694]: *** NSRunStorage, _NSBlockNumberForIndex(): index (1) beyond array bounds (1)
18/05/14 19:25:13,494 Tweetbot[18694]: (
0 CoreFoundation 0x00007fff94dbc25c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff9444be75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff94dbc10c +[NSException raise:format:] + 204
3 AppKit 0x00007fff8e71d797 _NSBlockNumberForIndex + 85
4 AppKit 0x00007fff8e722690 -[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 2401
5 AppKit 0x00007fff8e7cb8d9 _NSFastFillAllLayoutHolesForGlyphRange + 1435
6 AppKit 0x00007fff8e7203ca -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] + 235
@rickenharp
rickenharp / gist:aaf4e2527d4fceadc628
Created May 2, 2014 16:35
Dungeon World Story Starter
You are at the entrance to <insert named dungeon location>, which is located in / on / by <insert a named, fantastic (un)natural surroundings>. You have journeyed here to <insert quest> on behalf of <insert sketchy character>. Your luck has turned sour though, because <insert reason>, and that's a real problem because <insert grueling consequences>. To make matters worse, you have just seen signs of <insert approaching threat>. You can't turn back since <insert yet another annoying reason>, so you must push on. Looking at the entrance, you get a feeling this won't turn out well for all of you. What do you do?