Skip to content

Instantly share code, notes, and snippets.

View RomanHargrave's full-sized avatar

Roman Hargrave RomanHargrave

  • Cascadia
View GitHub Profile
#!/usr/bin/rakudo
use XML::XPath;
use TagLibC;
enum Format <MP3Gain>;
class Loudness {
has Real $.dbfs is readonly;
has Real $.db is readonly;
//------------------------------------------------
//--- 010 Editor v12.0.1 Binary Template
//
// File: ODS5.bt
// Authors: Roman Hargrave <roman@hargrave.info>
// Version: 0.1
// Purpose: Analyze ODS5/Files11 volume images
// Category:
// File Mask:
// ID Bytes:
use crate::lang::Atom;
use nom::character::complete::{
char,
multispace1,
};
use nom::sequence::{delimited, preceded, terminated};
use nom::combinator::{
hidden partial modifier_keys
xkb_symbols "numlock" {
key <CAPS> { [ Num_Lock ] };
};
-- -*- sql-product: postgres; sqlind-minor-mode: -1; -*-
DROP SEQUENCE IF EXISTS plans_id_seq;
CREATE SEQUENCE plans_id_seq;
CREATE TABLE plans (
id BIGINT DEFAULT nextval('plans_id_seq') PRIMARY KEY,
name TEXT NOT NULL
);
#!/usr/bin/env python3
# Demonstration for Edgar
def print_with_brackets(str_):
print("[ %s ]" % str_)
def say_hi(name, printer):
printer("Hi, %s" % name)
@RomanHargrave
RomanHargrave / map-wacom.pl
Created January 2, 2021 08:20
Set up X params for wacom tablets (specifically Cintiq 13HD)
#!/usr/bin/perl
use Getopt::Long;
my $dev_name = 'Wacom Cintiq 13HD';
my @randr_setup = qw(--rotate inverted --right-of DP-3 --mode 1920x1080);
my $randr_output = 'HDMI-1';
my $invert_tab = 1;
#!/usr/bin/perl
use Getopt::Long;
my $cmd = '/usr/bin/steam';
my $rt_run = 0;
GetOptions(
'c|cmd=s' => \$cmd,
'rt' => \$rt_run,
#!/usr/bin/perl
my $uid = getpwnam($ENV{USER});
my @bind_rw = (
'/proc',
'/sys',
'/dev',
'/dev/shm',
'/dev/pts',

AudioSurf 2 Lua Documentation

This is reverse-engineered from the game.

Scene manager functions

These functions are registered when LuaController.Start() is called. These are used by skins.

print(obj) : nil