Skip to content

Instantly share code, notes, and snippets.

View valbaca's full-sized avatar

Valentin Baca valbaca

View GitHub Profile
@hlxwell
hlxwell / macros.h
Created March 29, 2013 07:24
Macros for iOS
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
#define CurrentSystemVersion ([[UIDevice currentDevice] systemVersion])
#define CurrentLanguage ([[NSLocale preferredLanguages] objectAtIndex:0])
//use dlog to print while in debug model
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
@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

@april
april / arena-macos-fixes.sh
Last active November 18, 2024 17:58
Fixes Magic Arena's broken full screen implementation on macOS
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0
# you can also replace the long complicated integer bit with any other scaled 16:9
# resolution your system supports.
# to find the scaled resolutions, go to System Preferences --> Display and then
# divide the width by 16 and multiple by 9. on my personal system this ends up