Skip to content

Instantly share code, notes, and snippets.

View tbogdala's full-sized avatar

Timothy Bogdala tbogdala

View GitHub Profile
@tbogdala
tbogdala / main.go
Created September 10, 2016 04:18
Simple OpenAL example for Go
// OpenAL Test
package main
import (
"fmt"
"io/ioutil"
"time"
openal "github.com/timshannon/go-openal/openal"
)
@tbogdala
tbogdala / fib.gmk
Created February 20, 2017 00:50
A few test routines in gimmick
(begin
(define fib (lambda (n)
(if (< n 2)
1
(+ (fib (- n 1)) (fib (- n 2))))))
(define fib2 (lambda (n)
(begin
(define fib2Rec (lambda (a b n)
(if (eqv? n 0)
@tbogdala
tbogdala / gonuk.go
Created October 21, 2017 00:14
a quick test importing multiple GL versions with golang-ui/nuklear using 3.2 and creating a 3.3 context...
package main
import (
"fmt"
"log"
"runtime"
_ "github.com/go-gl/gl/v3.2-core/gl"
"github.com/go-gl/gl/v3.3-core/gl"
"github.com/go-gl/glfw/v3.2/glfw"
@tbogdala
tbogdala / char_creator.py
Last active December 6, 2023 03:21
A python script that calls KoboldCpp to generate new character cards for AI chat software and saves to yaml.
import requests
import sys
import json
from pprint import pprint
# Requirements:
# * Koboldcpp (or compatible api)
#
# Setup:
# conda create -n creator python=3.10
@tbogdala
tbogdala / story_writer.py
Last active December 9, 2023 20:22
A quick hack of a python script to endlessly generate a story using koboldcpp as a backend AI text generator.
import requests
import sys
import json
from pprint import pprint
# Requirements:
# * Koboldcpp (or compatible api)
#
# Setup:
# conda create -n creator python=3.10
@tbogdala
tbogdala / kokoro_v1_0.py
Created February 13, 2025 01:37
Quick and dirty kokoro invocation that also plays the audio as well as saving it.
# 1️⃣ Install required packages
# pip install kokoro soundfile sounddevice argparse
import sys
import argparse
from kokoro import KPipeline
import soundfile as sf
import sounddevice as sd
# 🇺🇸 'a' => American English, 🇬🇧 'b' => British English
@tbogdala
tbogdala / ParamedicCalendarGenerator.html
Last active February 23, 2025 21:54
This webpage is a simple 'app' to generate a shift calendar for my job where red, green and blue shifts rotate throughout the year and I always have Sunday or Wednesday off.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Custom Calendar Generator</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"