Skip to content

Instantly share code, notes, and snippets.

Not knowing where to start...

Malcolm White docwyatt2001

Not knowing where to start...
View GitHub Profile
owenlamont /
Created Dec 29, 2019
Command line script to take an image and convert it into an Excel spreadsheet (xlsx) file
import argparse
from PIL import Image
import numpy as np
from pathlib import Path
import xlsxwriter
from import trange
from matplotlib.colors import rgb2hex
def main(input_file: Path, output_file: Path, column_width: float, row_height: float):
class Delta:
def __init__(self,old,new):
newset = set(new.rules)
oldset = set(old.rules)
self.deleted = list(oldset - newset)
self.added = list(newset - oldset)
self.retained = list(oldset & newset)
tom-henderson /
Last active Feb 7, 2018
Get a list of connected devices from a Unifi controller
import sys
import json
import requests
def get_clients():
'username': '',
'password': '',