This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Based on Dracula Theme v1.2.7 | |
" | |
" https://github.com/zenorocha/dracula-theme | |
" | |
" Copyright 2016, All rights reserved | |
" | |
" Code licensed under the MIT license | |
" http://zenorocha.mit-license.org | |
" | |
" @author Trevor Heins <@heinst> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2012 Kevin P. Willard | |
* | |
* 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, sub license, | |
* and/or sell copies of the Software, and to permit persons to whom the | |
* Software is furnished to do so, subject to the following conditions: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bluetooth LE heartrate sensor communication | |
# | |
# Connect to the first available Bluetooth LE heartrate sensor, subscribes to | |
# notifications, then sends the values to the FPGA through the UART in single-byte packets. | |
# | |
# Mara "vmedea" 2020 | |
# SPDX-License-Identifier: MIT | |
from binascii import hexlify | |
from micropython import const | |
from machine import UART |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bus 001 Device 006: ID 0079:1846 DragonRise Inc. | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 2.00 | |
bDeviceClass 0 | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 64 | |
idVendor 0x0079 DragonRise Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Font conversion utility (rexpaint). | |
''' | |
# Mara Huldra 2021 :: SPDX-License-Identifier: MIT | |
from collections import namedtuple | |
from PIL import Image, ImageFont, ImageDraw | |
# Hardcoded text and background color RGBA, this matches rexpaint's existing fonts | |
FG_COLOR = (255, 255, 255, 255) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
RISC-V assembler. | |
''' | |
# Mara Huldra 2021, based on riscv-assembler by Kaya Celebi | |
# SPDX-License-Identifier: MIT | |
from collections import namedtuple | |
__all__ = ['Assembler'] | |
class UnknownInstruction(Exception): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This was moved to https://github.com/vmedea/iconsole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install and build dependencies for mkxp for running the game Fallow by Ada Rook. | |
# Script by Mara Huldra 2021. | |
# SPDX-License-Identifier: MIT | |
# Tested on Ubuntu 20.04 and Debian. | |
set -e | |
PREFIX="${PWD}/fallow-install" | |
BUILDDIR="${PWD}/fallow-build" | |
FALLOWHOME="${HOME}/.steam/debian-installation/steamapps/common/Fallow" | |
PAR=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tile data instancing plugin for consistent tile configurations. | |
# Part of "Xenomusa" (C) Mara Huldra 2022 | |
# SPDX-License-Identifier: MIT | |
@tool | |
extends EditorPlugin | |
# Avaiable tileset templates | |
enum TemplateType { | |
TERRAIN = 0, # 7x7 terrain template | |
WALL = 1, # 4x4 wall template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Godot screenshot handler. | |
# Part of "Xenomusa" (C) Mara Huldra 2022-2023 | |
# SPDX-License-Identifier: MIT | |
# | |
# To configure in project settings: | |
# - Add script as autoload. | |
# - Assign a key (say, F12) to action "screenshot". | |
extends Node | |
# Screenshot target setup. |
OlderNewer