Skip to content

Instantly share code, notes, and snippets.

Natalie Weizenbaum nex3

Block or report user

Report or block nex3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nex3
nex3 / hosting-a-cube-on-mtgo.md
Last active May 16, 2020
Hosting a custom cube draft on Magic Online
View hosting-a-cube-on-mtgo.md

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 May 18, 2020
Drafting a custom cube on Magic Online
View drafting-a-cube-on-mtgo.md

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

View example.scss
@use "sass:meta";
@use "generated";
@if meta.mixin-exists("sprites", $module: "generated") {
@include generated.sprites();
}
View option1.dart
class Super {
bool get isSub => false;
void doAThing() {
if (isSub) throw "no";
// ...
}
}
class Sub extends Super {
View pubspec.yaml
# 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
View path.md

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
View kaladesh.md
  • 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
View vows.md

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.

View multimerge.py
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
View problem.md

Define two sets of intervals to be equivalent relative to a set of numbers (the base) if both sets' intervals cover the exact same set of numbers in the base. For example, given the base [0, 1, 3, 4, 6], {[0, 1], [3, 6]} is equivalent to {[0, 3], [4, 6]} but not to {[1, 3], [4, 6]} because the latter doesn't cover 0.

Define a set of intervals to be maximal relative to a base if there's no equivalent set with fewer intervals. Equivalently, a set of intervals is maximal iff, for any two intervals in the set, there exists at least one number in the base between the upper bound of one interval and the lower bound of the other.

For example, given the base [0, 1, 3, 4, 6], the set of ranges {[0, 1], [4, 6]} is maximal because 3 is between 1 and 4, but {[0, 1], [3, 6]} is not because there's nothing in the base between 1 and 3.

Level 1

You are given a (potentially very large) ordered list of floats—the base—and a list of intervals, each of which may be open or closed.

You can’t perform that action at this time.