Skip to content

Instantly share code, notes, and snippets.

View doctor-g's full-sized avatar

Paul Gestwicki doctor-g

View GitHub Profile
@doctor-g
doctor-g / Makefile
Created April 13, 2022 12:44
A GNU Make makefile for combining mup and chordpro files into one songbook.
# Make the family songbook out of mup and chordpro files.
#
# Create trumpet versions by including TRUMPET=true on the command line.
COVER_OUT = cover.pdf
COVER_SRC = cover.tex
COVER_JUNK = cover.aux cover.log
MUP = mup
MUP_IN = $(wildcard *.mup)
@doctor-g
doctor-g / godot-ci.yml
Created September 7, 2020 02:42
GitHub workflow specification for publishing Godot Engine HTML5 projects to GitHub
# Workflow to publish Godot HTML5 games to GitHub Pages
#
# This script assumes that the project itself is in a subdirectory "project". This
# folder structure frees up the root of the repository to be used for non-project
# files, such as the README, build folder, or raw assets folder.
#
# Make sure your project is configured for Web export
# to the path `build/web`.
name: 'Publish to GitHub Pages'
@doctor-g
doctor-g / godot-ci.yml
Created July 9, 2020 12:19
GitHub workflow specification for publishing Godot Engine HTML5 projects to GitHub Pages with reduced download size
# Workflow to publish Godot HTML5 games to GitHub Pages
#
# Make sure your project is configured for Web export
# to the path `build/web`.
name: 'Publish to GitHub Pages'
env:
GODOT_VERSION: 3.2.2 # Remember to manually set image to this version below.
@doctor-g
doctor-g / godot-ci.yml
Last active August 25, 2022 15:57
GitHub workflow specification for publishing Godot Engine HTML5 projects to GitHub Pages
# Workflow to publish Godot HTML5 games to GitHub Pages
#
# Make sure your project is configured for Web export
# to the path `build/web`.
name: 'Publish to GitHub Pages'
env:
GODOT_VERSION: 3.2.2 # Remember to manually set image to this version below.
@doctor-g
doctor-g / workflow.yml
Last active December 28, 2024 13:07
Workflow to publish a Flutter Web app to GitHub Pages
name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
extends Node
class_name BuildNumber
const BUILD_NUMBER_PATH := "res://build_number.tres"
var value : int
func _init():
var f:File = File.new()
f.open(BUILD_NUMBER_PATH, File.READ)
@doctor-g
doctor-g / TweenPool.gd
Last active April 6, 2020 12:09
Tween Pool for GDScript
extends Node
class_name TweenPool
export(int) var initial_size = 4
var _pool := []
func _ready():
for _i in range(4):
# warning-ignore:return_value_discarded
header
title (18) "Istanbul (Not Constantinople)"
title (9) "" "They Might Be Giants"
score
beamstyle=4,4,4,4
time=cut
music
#include "AutomationTest.h"
#include "HighScoreTable.h"
IMPLEMENT_SIMPLE_AUTOMATION_TEST(FHighScoreTableTest, "UnitTests.HighScoreTable", EAutomationTestFlags::EditorContext | EAutomationTestFlags::EngineFilter)
#define Describe(Desc) Description = Desc;
#define GivenAnEmptyTable() Table = NewObject<UHighScoreTable>(); Scores.Empty();
#define GivenATableContaining(...) GivenAnEmptyTable() Scores.Append(TArray<int32> { __VA_ARGS__}); for (int32 Value : Scores) Table->AddPotentialHighScore(Value);
#define WhenScoreIsAdded(X) Result=Table->AddPotentialHighScore(X);
#define ThenIndexOfMostRecentEntryIs(Expected) TestEqual(TEXT("Most recent index"), Result, Expected);