Skip to content

Instantly share code, notes, and snippets.

@AzureDVBB
AzureDVBB / dungeondraft_unpacker.py
Last active May 6, 2021 21:42
A commented version of the python dungeondraft unpacker this link (with minor improvements): https://www.reddit.com/r/dungeondraft/comments/gjvlud/python_script_to_unpack_dungeondraft_pack_assets/
# source: https://www.reddit.com/r/dungeondraft/comments/gjvlud/python_script_to_unpack_dungeondraft_pack_assets/
# dungeondraft_pack-unpacker.py
# version 0.1
# Based upon: https://github.com/tehskai/godot-unpacker
import sys
import os
import pathlib
import mmap

Keybase proof

I hereby claim:

  • I am azuredvbb on github.
  • I am azuredvbb (https://keybase.io/azuredvbb) on keybase.
  • I have a public key ASD-rJGkdqK5mrkaALmXe5AFWsqfBPMZhPzKYbPqGJ9kggo

To claim this, I am signing this object:

@AzureDVBB
AzureDVBB / Airsoft_Clock_v2.ino
Last active May 20, 2019 15:29
3 Team Chess Clock for Airsoft HQ gamemode
// !!!! the following code is for the ATMEL ATTINY44 microcontroller !!!!
// display shift register pins
// positive edge driven
#define disp_clk 10// SRCLK to clock serial data into the shift register
#define disp_ser_latch 9 // latch pin to push changes in shift register and decoder to output
// the RCLK is directly connected while the LT is fed through an inverter
#define disp_ser 8 // SER (serial data) pin for theshift register
// pins for interrupt on button presses
#define button1 0 // Button for team 1
@AzureDVBB
AzureDVBB / computations_parallel.py
Created November 19, 2018 22:34
A basic way of selecting and saving frames of a video to be used in Photogrammetry.
# -*- coding: utf-8 -*-
# look into 'streamz' package, neat pipelining with dask integration
import cv2 # opencv-python for frame reading
import skimage # scikit-image for loaded image analysis
import dask # parallelized python EZ mode
import numpy as np # yep
import matplotlib.pyplot as plt # pretty charts no?
import matplotlib
from skimage.feature import match_descriptors, ORB
@AzureDVBB
AzureDVBB / photogrammetry-datasets-from-video.ipynb
Created October 15, 2018 16:21
Proof of concept for preparing photogrammetry data from video.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AzureDVBB
AzureDVBB / Airsoft-clock.ino
Last active October 15, 2018 16:20
My 3 team chess clock sketch for the Attiny44
#include <PinChangeInterrupt.h>
#include <PinChangeInterruptBoards.h>
#include <PinChangeInterruptPins.h>
#include <PinChangeInterruptSettings.h>
/* FOR THE LOVE OF ALL MIGHTY PLEASE USE 1MHz CLOCK!!!!!!
* STAY AWAY FROM THE 8MHz INTERNAL CLOCK LIKE THE PLAGUE!!!!!
* I MEAN IT!!! THE MILLIS FUNCTION JUST DOES NOT WORK WELL!!!!!
* IT IS NOT FASTER BUT SLOWER FOR SOME REASON AND NOT ACCURATE!!!!
* SO PLEASE!!!! I BEG OF YOU!!! STAY WITH 1MHz INTERNAL CLOCK!!!!
@AzureDVBB
AzureDVBB / node_trees.py
Created July 17, 2018 21:22
A simple node tree addon template for blender.
# the little less documented way of adding a custom node tree
# and populate it with nodes of varying types of I/O
# sockets that work together, discombobulated
# first we import the blender API
import bpy
# then we create the UI space, the node tree as it is called
# but in actualy fact this is similar to a UI panel/menu
@AzureDVBB
AzureDVBB / basic_ui_documented.py
Last active May 25, 2022 20:05
A commented template for making simple UI in blender using the bpy python API
#import the bpy module to access blender API
import bpy
#WARNING: this is written and tested for blender 2.79
#blender 2.8 and newer will likely have a different python API
#create a property group, this is REALLY needed so that operators
#AND the UI can access, display and expose it to the user to change
#in here we will have all properties(variables) that is neccessary
class CustomPropertyGroup(bpy.types.PropertyGroup):