Skip to content

Instantly share code, notes, and snippets.

View DDR0's full-sized avatar
🦇
Making Stuff

David Roberts DDR0

🦇
Making Stuff
View GitHub Profile
elisa issues 2018-01-19
by DDR following the tutorial
- Minor complaint: titlescreen.cfg crashed when reloading elisa, despite --edit-and-continue - there were some objects asserting level.player is obj frogatto_playable.
- resolution is extremely low by default on my 4k monitor, and the game is not resizeable - even in the editor. It should be resizeable in the editor, at least to allow for the editor controls.
- editor object mouseover description text, in the object picker, often runs off screen. It should soft-wrap.
- setting background to air-stage1 crashed despite --edit-and-continue
- font size in the editor doesn't persist - quite annoying on a high-res monitor
- When code-editing an object, @instance should not be the default to pop up. The object's .cfg file code should be, because that's usually what we want to edit – at least in the Elisa tutorial.
- Whatever magic behind "What's really nice about this interface is that I can just click [on the first frame of the walk animation, third from
/*
//WPPLS
ccMatrix[0] = 1.7701; ccMatrix[1] = -0.3927; ccMatrix[2] = -0.1725;
ccMatrix[3] = -0.3323; ccMatrix[4] = 1.4063; ccMatrix[5] = -0.1257;
ccMatrix[6] = -0.1747; ccMatrix[7] = 0.2080; ccMatrix[8] = 0.8756;
//LS
ccMatrix[0] = 1.7356; ccMatrix[1] = -0.3398; ccMatrix[2] = -0.1910;
ccMatrix[3] = -0.3422; ccMatrix[4] = 1.4605; ccMatrix[5] = -0.1701;
ccMatrix[6] = -0.1165; ccMatrix[7] = -0.0475; ccMatrix[8] = 1.0728;
@DDR0
DDR0 / c256_shell.py
Last active September 23, 2018 21:12
Commodore 256 Serial Shell
#!/usr/bin/python3
import sys, cmd, ast, pathlib
try:
import serial
except ModuleNotFoundError:
print('Could not import pyserial library. Try running "pip3 install pyserial".')
sys.exit(1)
debug = False #Throw error on exceptions if True, otherwise, keep running and keep command history.
@DDR0
DDR0 / watch-computer.sh
Created January 26, 2019 09:33
horrible bash scripting
#!/bin/bash
set -uo pipefail
IFS=$'\n'
trap "exit;" SIGINT SIGTERM #The following loop works fine in Konsole but won't ever stop on Gnome Terminal.
while true; do
find -regex '\./[^_\.].*' ! -name git_description ! -path 'util/stats_reported' | entr -d bash -c "
if [[ \$(cat git_description) != \$(git describe --tags --always) ]]; then #Only update when description changes, results in some thrashing otherwise.
git describe --tags --always > git_description
@DDR0
DDR0 / Qt Dbus Error Emitting Issue.md
Last active February 16, 2019 05:17
I believe the PyQt5 documentation is in error. This is why:
cam-json --control set - << EOF
{"ioMapping": {"combAnd": {"debounce": 0, "invert": 0, "source": "alwaysHigh"},
"combOr1": {"debounce": 1, "invert": 0, "source": "io1"},
"combOr2": {"debounce": 1, "invert": 0, "source": "io3"},
"combOr3": {"debounce": 0, "invert": 0, "source": "none"},
"combXOr": {"debounce": 0, "invert": 0, "source": "none"},
"delay": {"debounce": 0,
"delayTime": 0,
"invert": 0,
"source": "toggle"},
@DDR0
DDR0 / signal_tap.py
Created September 7, 2019 05:55
Intercept and modify `pyqtSignal`s.
"""Provides signalTap, a generic class to transform a pyqtSignal.
Usage example: Intercept a spinbox's valueChanged signal.
```python
def __init__(self):
valueChangedTap = signalTap(lambda val:
(val * self.unitValue[self.siUnit],) )
self.valueChanged.connect(valueChangedTap.emit)
self.valueChanged = valueChangedTap
```
@DDR0
DDR0 / sketch_neon_1.c
Last active April 11, 2020 01:59
Blinky Patterns for the Arduino Uno - Now with button presses for modes!
#define END 0
#define START 1
#define BLINK 2
#define UBLINK 3
#define REPEAT 4
#define LOG_SEEK 0
#define LOG_EXEC 0
static const byte ledPin = 5;
@DDR0
DDR0 / blinks.txt
Created April 10, 2020 03:22
blink pattern presets
@DDR0
DDR0 / little_dust_effect.cfg
Created April 15, 2020 02:21
little_dust_effect.cfg
{
"info": {
"affector": {
"max_deviation_x": 2.0,
"type": "randomizer"
},
"blend": "alpha_blend",
"blend_enable": true,
"blend_equation": "add",
"default_particle_height": 3.0,