Skip to content

Instantly share code, notes, and snippets.

View jason-green-io's full-sized avatar

Jason Green jason-green-io

View GitHub Profile
@font-face {
font-family: "Unifont";
font-style: normal;
font-weight: normal;
src: local('Unifont');
}
@jason-green-io
jason-green-io / qrunicode.py
Created April 5, 2019 02:20
a little helper function to be used with qrcode to print compact QR codes in terminal using a custom font and Unicode EE00-EEFF
from collections import defaultdict
import qrcode
a = [[0, 1, 1, 1, 0, 1, 0],
[1, 0, 0, 0, 1, 1, 0],
[0, 1, 1, 1, 0, 1, 0],
[0, 1, 1, 1, 0, 1, 0],
[0, 1, 1, 1, 0, 1, 0],
[0, 1, 1, 1, 0, 1, 0],
[0, 1, 1, 1, 0, 1, 0]]
#!/usr/bin/env python3
import sys
import minecraftmap
import os
import glob
import PIL
import pyvips
import shutil
import io
@jason-green-io
jason-green-io / gradient.py
Last active March 8, 2017 21:49
gradient.py runs on the Pi and minecraft-serveractivity.py runs on the server, the server portion is part of a larger project, it has pieces that aren't used yet or not required for the server clock
import colour
import collections
import blinkt
import time
import threading
import paho.mqtt.client as paho
import os
import socket
import ssl
import json
@jason-green-io
jason-green-io / mca_poly_overviewer
Created April 18, 2016 16:08
Add these functions, filters and manual POIs to your overviewer config file to add a mca file grid
def pointDict( coords ):
coordLabel = ("x", "y", "z")
return dict(zip(coordLabel, coords))
def mcafilter(poi):
if poi["id"] == "mca":
# print poi
return poi
mcapoi = []