View undupe-transode.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import glob | |
import subprocess | |
import shlex | |
import shutil | |
import pathlib | |
import itertools |
View cards.json.converter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
import json, os, sys, io, re | |
from pprint import pprint | |
with io.open('/Users/nick/Documents/dominiontabs/card_db/en_us/cards.json') as data_file: | |
cardDict = json.load(data_file) | |
with io.open('/Users/nick/Documents/dominiontabs/card_db/en_us/card_groups.json') as data_file: | |
groupDict = json.load(data_file) |
View YouTubePlayerViaTVJS.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Nick Vance on 12/4/15. | |
// Copyright © 2015 ToWatchList. All rights reserved. | |
// | |
import AVKit | |
import XCDYouTubeKit | |
import TVMLKit | |
class YTPlayerViewController: AVPlayerViewController, AVPlayerViewControllerDelegate { |
View mean_median_filters.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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." |