Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# read from stdin lines in the following format:
# <player0 name> <player1 name> <winner>
# where <winner> is 0 if player0 wins and 1 if player1 wins
# https://github.com/goshrine/whole_history_rating
require 'whole_history_rating'
# w = 0 for static ratings aka bayeselo
@melvinzhang
melvinzhang / vintage.txt
Created May 10, 2015 02:49
Legal/restricted vintage cards according to http://mtgjson.com/json/AllCards-x.json
Abandon Hope
Abandoned Outpost
Abattoir Ghoul
Abbey Gargoyles
Abbey Griffin
Abbey Matron
Abduction
Abeyance
Abhorrent Overlord
Abjure
Abandoned Outpost
Abandon Hope
Abattoir Ghoul
Abbey Gargoyles
Abbey Griffin
Abbey Matron
Abduction
Abeyance
Abhorrent Overlord
Abjure

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@melvinzhang
melvinzhang / c_init.Chromium.c
Last active August 25, 2019 01:55
Comparison of src/c_init.c in different clang-format styles
#include <allegro5/allegro.h>
#include "c_header.h"
#include "g_header.h"
#include "m_config.h"
#include "g_misc.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>