Skip to content

Instantly share code, notes, and snippets.

View nex3's full-sized avatar

Natalie Weizenbaum nex3

  • Google
  • Seattle
View GitHub Profile
picker: {type: FirstToScore, threshold: 80}
otherwise: {type: Meander}
choices:
- consider: [{type: Bladder, weight: 3}]
then:
type: Thinker
picker: {type: FirstToScore, threshold: 80}
choices:
- consider: [{type: Bladder, weight: 3}]
then: {type: Pee}
@nex3
nex3 / hosting-a-cube-on-mtgo.md
Last active March 22, 2024 03:24
Hosting a custom cube draft on Magic Online

This is a companion to this gist which explains how to participate in a draft hosted this way.

We may all be quarantined at home, but I'm not going to let that get between me and my weekly cube draft night. I bought an entire copy of my cube on Magic Online so I could keep drafting and iterating on it even while we can't gather in person. Is it more of a pain than drafting a first-party cube? Without a doubt. But you can do it with your friends, at any time, using your cube list.

This document will walk a cube owner through the process of hosting a cube draft where decks are drafted on dr4ft.info. It was written in May 2020, and some details of how things work may change in the future. Feel free to post updates in the comments, or even just fork this and modify it as necessary.

Table of Contents

Optional Enhancements

@nex3
nex3 / drafting-a-cube-on-mtgo.md
Last active January 5, 2024 23:14
Drafting a custom cube on Magic Online

We may all be quarantined at home, but I'm not going to let that get between me and my weekly cube draft night. I bought an entire copy of my cube on Magic Online so I could keep drafting and iterating on it even while we can't gather in person. Is it more of a pain than drafting a first-party cube? Without a doubt. But you can do it with your friends, at any time, using your cube list.

This document will walk drafters through the process of drafting their decks and acquiring them on Magic Online. It requires a host who owns all the cube cards in the first place and who knows how to trade them to the drafters--I've also written a guide to hosting a draft if that's what you're looking for!

This was written in May 2020, and some details of how things work may change in the future. Feel free to post updates in the comments, or even just fork this and modify it as necessary.

Table of Contents

@use "sass:meta";
@use "generated";
@if meta.mixin-exists("sprites", $module: "generated") {
@include generated.sprites();
}
class Super {
bool get isSub => false;
void doAThing() {
if (isSub) throw "no";
// ...
}
}
class Sub extends Super {
# angular 0.10.0 depends on di ^0.0.32
# di 0.0.32 depends on analyzer ^0.13.0
# analyzer 0.13.0 depends on args ^1.0.0
name: myapp
dependencies:
angular: any
args: ^0.13.0

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and
  • Chandra, Torch of Defiance
  • Thriving Grubs
  • Nissa, Vital Force
  • Verdurous Gearhulk
  • Rashmi, Eternities Crafter
  • Saheeli Rai
  • Skysovereign, Consul Flagship
  • Smuggler's Copter
  • Inspiring Vantage
  • Spirebluff Canal
@nex3
nex3 / vows.md
Last active July 1, 2016 23:39

Liz,

I remember our talks when I was thousands of miles away in New York; I will keep laughing with you.

I remember you teaching me plants in Cowen park; I will keep learning from you.

I remember you supporting me without hesitation when I came out while drunk on my birthday; I will keep trusting you.

I remember eating pizza in Manhattan after midnight; I will keep journeying with you.

multimerge(lists):
heap = new min heap of pairs ordered by first element
convert lists to queues
for queue with index i in queues:
first = the first element of queue
remove the first element of queue
add (first, i) to heap