Skip to content

Instantly share code, notes, and snippets.

@bskari
bskari / diffusion_reaction.inx
Created April 29, 2022 06:21
Generative Art Bike Paint Job Inkscape plugin
<?xml version="1.0" encoding="UTF-8"?>
<!-- CC-BY-NC-SA https://creativecommons.org/licenses/by-nc-sa/4.0/ -->
<!-- Modified from the original script by Oliver Child, ollie242, from https://www.instructables.com/Turing-Pattern-Bike-Paint-Job/ -->
<!-- Put this file and diffusion_reaction.py into $HOME/.config/inkscape/extensions or whereever your Inkscape extensions directory is -->
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Diffusion_Reaction</_name>
<id>org.inkscape.template.effect</id>
<dependency type="executable" location="extensions">diffusion_reaction.py</dependency>
<param name="dpi" type="int" min="0.0" max="1000.0" gui-text="dpi">24</param>
<param name="iterations" type="int" min="0.0" max="500000.0" gui-text="iterations">24</param>
@bskari
bskari / save_textures.py
Last active December 7, 2023 00:42
Tries to parse textures from Nintendo gigaleak N64 source files
"""Finds textures that have been converted to N64 source code and restores them
as PNGs.
"""
# Copyright 2020 Brandon Skari
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@bskari
bskari / ocarina-fingering.qml
Created October 7, 2019 06:17
Ocarina fingering plugin for MuseScore
// vim: syntax=javascript
//=============================================================================
// MuseScore
//
// Note fingerings for 4/6 hole ocarina
//
// Contribution Artur Vilà Canal, Joachim Schmitz, BurkardS, Brandon Skari
// Copyright (c) 2011 Karl Gerhards, (C) 2008 Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
@bskari
bskari / .gitignore
Last active June 28, 2017 05:41
Formats aCar's CSV backup file format into its importable full backup file format
*inf
*xml
*abp
records.csv
sample
"""Distance estimation."""
import PIL
import SimpleCV
import io
import math
import picamera
import picamera.array
import signal
import sys
import time