Skip to content

Instantly share code, notes, and snippets.

View snake66's full-sized avatar

snake66 snake66

View GitHub Profile
@snake66
snake66 / splitcue
Created March 22, 2016 14:55
Split a wave file according to cue-sheet
#!/bin/sh
#
# Split a wav file or similar accoring to the given cue sheet.
#
# Usage:
# splitcue mycue.cue mywav.wav
#
cat $1|shnsplit -o flac -t "%n - %t" $2
@snake66
snake66 / Fix invisible inputs
Last active November 16, 2022 16:08
Fix styling for "invisible" input fields in firefox.
// ==UserScript==
// @name Fix input fields
// @namespace snake66
// @description Fix input fields with unreadable text
// @include http://*/*
// @include https://*/*
// @version 2
// @grant none
// ==/UserScript==
// Simple test for using std::function with inheritance
#include <functional>
#include <iostream>
class Base
{
public:
virtual void do_it(const std::string & s)
{
std::cout << "Doing " << s << std::endl;
@snake66
snake66 / 99bottles.asm
Created July 22, 2015 17:01
99 bottles of beer for Viua VM assembler
; 99 bottles of beer program for Viua VM Assembler
; Copyright (C) 2015 Harald Eilertsen
;
; This program 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.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
# A simple filter to mould the csv from nordea into
# something that can be swallowed by gnucash.
BEGIN {
FS = ";";
RS = "\n";
OFS = ";";
ORS = "\n";
# Regex for matching a date