Skip to content

Instantly share code, notes, and snippets.

View thedangler's full-sized avatar

Matt thedangler

  • London Ontario canada
View GitHub Profile

Keybase proof

I hereby claim:

  • I am thedangler on github.
  • I am thedangler (https://keybase.io/thedangler) on keybase.
  • I have a public key whose fingerprint is 5DCE 81BF 9C02 1F9C 0225 6682 1247 C312 62C6 F230

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am thedangler on github.
  • I am thedangler (https://keybase.io/thedangler) on keybase.
  • I have a public key whose fingerprint is 5DCE 81BF 9C02 1F9C 0225 6682 1247 C312 62C6 F230

To claim this, I am signing this object:

@thedangler
thedangler / music.py
Last active August 5, 2016 17:50
Quick test using xlwings to add music to a list from vlc. python vlc bindings weren't working for me.
# VLC playing internet radio, songs are extracted from vls http server and added to excel and sqlite db
# xlwings was used for testing to see if I will use it for work.
from __future__ import print_function
import requests
from xml.etree import ElementTree
from HTMLParser import HTMLParser
import xlwings as xw
import time
import sqlite3
@thedangler
thedangler / BotCleanPartiallyObservable.py
Created June 24, 2016 16:23
BotClean Partially Observable : hackerrank.com
#!/usr/bin/python3
import json
import os
def update_board(board):
if os.path.isfile("board"):
old_board = json.load(open("board"))
for i in range(len(board)):
for j in range(len(board[0])):
if board[i][j] == "o":
self.miniViewContainer.contentSize = CGSizeMake(self.view.frame.size.width -100 , top+200);
CGRect frame = CGRectMake(left, top, 250.0, 350.0);
CGRect buttonFrame = CGRectMake(0.0,210.0,200,0);
CGRect labelFrame = CGRectMake(0.0, 150.0, 200.0, 50.0);
UIView *miniView = [[UIView alloc] initWithFrame:frame];
miniView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth |
UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
miniView.autoresizesSubviews = YES;