Skip to content

Instantly share code, notes, and snippets.

@oconnor0
oconnor0 / Cargo.lock.diff
Created September 30, 2016 17:56
Cargo.lock diff from `cargo build` to `cargo install`
diff --git a/Cargo.lock b/Cargo.lock
index f4f0738..79c3112 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,14 +1,8 @@
[root]
-name = "textbox"
+name = "build-your-own-editor"
version = "0.0.1"
dependencies = [

Keybase proof

I hereby claim:

  • I am oconnor0 on github.
  • I am oconnor0 (https://keybase.io/oconnor0) on keybase.
  • I have a public key ASCGkHeo8RUVSUqiKyZUKgXNnoQeibDdc49dTU6VfHfaawo

To claim this, I am signing this object:

@oconnor0
oconnor0 / inclusive_range.zig
Created November 16, 2018 23:35
Another iterable range implementation in zig
const warn = @import("std").debug.warn;
pub fn inclusive_range(comptime Int: type, comptime lower: Int, comptime upper: Int) [upper-lower+1]Int {
var values: [upper-lower+1]Int = undefined;
var i: Int = lower;
while (i <= upper) : (i += 1) {
values[i - lower] = i;
}
return values;
}

My Stripe Tax Story

I've been debating for weeks whether or not I was going to write any of this down. I'm a dad with two kids and a house to take care of and a business to run. Adding story-telling like this to my plate is exhausting.

Until yesterday, I had decided to forget about the whole thing, until I received the email that broke the camels back, as it were.

The best way I can describe why I'm writing this email is for the same reason why you might spend two hours dealing with an uncooperative mobile phone carrier to get them to remove that $5 charge on your bill that shouldn't be there. Some combination of the feeling of frustration and injustice that really pushes my proverbial buttons.

In this particular case, the "$5 charge on my phone bill" turned out to be literally hundreds of recurring subscription invoices that Stripe disabled collection for because, apparently, those subscriptions required "location inputs".

Generally speaking, I don't blog much anymore, and the last thing I wa