Skip to content

Instantly share code, notes, and snippets.

Avatar

Natalie Weizenbaum nex3

View GitHub Profile
@nex3
nex3 / input.scss
Created Oct 15, 2020
Generated by SassMeister.com.
View input.scss
a {opacity: 50%};
View who-goes-first.md

This is a game we play to see who goes first in a cube game. We select a criterion card at random, then each player chooses a random card from Scryfall. Whoever's card fits the criterion best gets to choose whether to play or draw. The criterion cards we use are as follows:

  • Indiana Jones and the __________
  • "On the Phenomenology of __________" (thesis name)
  • JRPG Move (instant/sorcery only)
  • Metal album cover (by art)
  • Hallmark card (by art)
  • Perfume name
  • Romance novel cover (by art)
  • Shakespearean insult
View fake-sync.js
const wt = require('worker_threads');
if (wt.isMainThread) {
console.log("in main");
const data = new Int32Array(new SharedArrayBuffer(4));
const worker = new wt.Worker(__filename, {
workerData: data
});
Atomics.wait(data, 0, 0);
View basic.yml
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 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 Nov 20, 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
You can’t perform that action at this time.