Skip to content

Instantly share code, notes, and snippets.

View Deledrius's full-sized avatar

Joseph Davies Deledrius

View GitHub Profile
@anecdata
anecdata / RADS.md
Last active November 1, 2022 15:36
RADS: Redundant Array of mDNS http Servers

In the configuration pictured below, multiple identically-configured Adafruit CircuitPython 8.0.0-beta.0 on 2022-08-18; Adafruit QT Py ESP32S2 with ESP32S2 are used to create a Redundant Array of mDNS http Servers. The devices could be physically together or scattered around, as long as they are on the same LAN. Once configured, no USB connection is necessary for operation.

Each is running CircuitPython 8 Web Workflow: https://docs.circuitpython.org/en/latest/docs/workflows.html#web

Web Workflow automatically connects to a Wi-Fi Access Point based on credentials in a /.env file in the root of the CIRCUITPY drive filesystem, and creates an HTTP Server (port can be changed with CIRCUITPY_WEB_API_PORT= in the /.env file; it's port 80 by default).

In code.py, run an HTTP Server using (for example): https://docs.circuitpython.org/projects/httpserver/en/latest/api.html Make sure that the ports are different between the Web Workflow HTTP Server and the code.py HTTP Server (e.g., set

@DRKV333
DRKV333 / FakeNavigationPoint.uc
Last active November 7, 2022 00:11
OtherlandStartAtOrigin
class FakeNavigationPoint extends NavigationPoint;
DefaultProperties
{
bStatic=false
bNoDelete=false
}
@denisdefreyne
denisdefreyne / nanoc-photos.md
Created September 7, 2022 20:02
Nanoc example: Creating separate pages for each photo

content/photos/dog.jpg

content/photos/dog.yaml:

alt: A *very* good doggo. Who’s a good girl? woof woof yes you are YOU ARE

Rules:

H-uru/Plasma Changelog

2022

Not yet complete

@ssokolow
ssokolow / godot_game.iss
Created March 23, 2022 22:57
Example Inno Setup script for Godot games
; IMPORTANT: Follow the instructions at
; https://docs.godotengine.org/en/stable/getting_started/workflow/export/changing_application_icon_for_windows.html
; and make sure the "Options > Application > Product Version" field is set
; in Godot's Export dialog before exporting your EXE file. Otherwise,
; Inno Setup will mistake the Godot version for your game's version.
;
; You can check whether you were successful by examining the .EXE file's
; properties dialog on Windows, or by using the `peres -v` command from `pev`
; on Linux.
;
@jakebesworth
jakebesworth / godot-clickable-overlap.md
Last active June 26, 2024 21:13
Overlap clickable Area2D's in Godot. Only click the top most node. Also allows clicking outside of clickable nodes (such as to deselect)

Godot Clickable Overlap Objects and Deselect

Summary of Problem

If you want to have objects in your game be clickable, one of the most obvious methods is using a Area2D > Texture + CollisionShape2D. When your mouse interacts with the CollisionShape2D it has mouse motion, mouse exited, and input events.

Note: Control nodes have restrictions, eat up all mouse events, and don't work well with deselecting by clicking outside of any objects

  1. The biggest issue is when you click on overlapping objects it will signal both events asynchronously, so there is not an easy way to differentiate the top object being clicked.
extends RichTextLabel
const HELP_COMMAND = "help" # Display all help commands
const DIR_COMMAND = "dir" # Display all files and folders in current working directory
const CHANGE_DIRECTORY_COMMAND = "cd" # Change working directory
const QUIT_COMMAND = "exit" # Quit application
const CLEAR_COMMAND = "clear" # Clear terminal windows
var current_context : Context
var past_commands = []
@XlogicX
XlogicX / games.md
Last active June 23, 2024 10:26
List of Boot Sector Gamers

Boot Sector Games

A list of playable boot sector games, most of which are on github. Fun to play, great to learn from. There are also many cool non-booting boot sectors out there that aren't games (so more like demos), but this page is just reserved to interactive boot sectors / games. This list is also not complete, but not on purpose, it is a best effort collection of games, so if you know of any fun boot sector games, please contribute.

This page lists a collection of 31 games spanning several authors: nanochess, me, daniel-e, shikhin, JulianSlzr, XanClic, QiZD90, darkvoxels, guyhill, w-shackleton, egtzori, VileR, ish_works, franeklubi, queso_fuego, franeklubi, Jethro82, waternine9, tevoran, palma3k, taylor-hartman. peterferrie should also be mentioned as he has touched a lot of these games.

TetrOS

https://github.com/daniel-e/tetros

Tetris Clone. Full color, no score. This was one of the older boot sector games out there. ![tetros](https://gist.github.com/assets/1570856/3a0d1023-cbe6-4b4d-

@dpogue
dpogue / __init__.py
Last active January 2, 2020 16:02
Put these in a "avimport" folder in your Blender addons folder
bl_info = {
'name': 'Avatar Importer',
'author': 'dpogue & Lontahv & Jrius',
'version': (0, 0, 1),
'blender': (2, 7, 9),
'location': 'File > Import > Avatar Import',
'description': 'Avatar and ATC Anim Importer',
'category': 'Import-Export'
}
@Hoikas
Hoikas / prp_as_text.py
Last active August 16, 2023 05:23 — forked from Deledrius/prp_as_text.py
A utility for producing a textual overview of a PRP file, used to compare in diffs.
#!/usr/bin/env python
# PRP_as_Text is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PRP_as_Text is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the