#!/usr/bin/env python
# coding=utf-8
import json, os, sys, io, re
from pprint import pprint
with'/Users/nick/Documents/dominiontabs/card_db/en_us/cards.json') as data_file:
cardDict = json.load(data_file)
with'/Users/nick/Documents/dominiontabs/card_db/en_us/card_groups.json') as data_file:
groupDict = json.load(data_file)
#!/usr/bin/env python
# coding=utf-8
# Download IA maps and convert them to PDFs for printing
import sys, os, urllib
from PIL import Image
def chunks(l, n):
"""Yield successive n-sized chunks from l."""
View YouTubePlayerViaTVJS.swift
// Created by Nick Vance on 12/4/15.
// Copyright © 2015 ToWatchList. All rights reserved.
import AVKit
import XCDYouTubeKit
import TVMLKit
class YTPlayerViewController: AVPlayerViewController, AVPlayerViewControllerDelegate {
#!/usr/bin/env python
def medfilt (x, k):
"""Apply a length-k median filter to a 1D array x.
Boundaries are extended by repeating endpoints.
import numpy as np
assert k % 2 == 1, "Median filter length must be odd."
assert x.ndim == 1, "Input must be one-dimensional."