Skip to content

Instantly share code, notes, and snippets.

View Tanami's full-sized avatar
🅱️
oneless code

Tanami Tanami

🅱️
oneless code
View GitHub Profile
@Tanami
Tanami / fragment.js
Last active February 12, 2020 08:53
very fast text "highlighting" using substring and charCodeAt
const content = document.querySelector('#editor').value
const output = document.querySelector('#maze')
output.innerHTML = ''
if (content == '')
return
let t0 = performance.now()
let offsets = []
@Tanami
Tanami / discord_sidebar.go
Last active July 18, 2021 15:56
discord sidebar stats for srcds_linux / a2s
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
"time"
"github.com/bwmarrin/discordgo"
@Tanami
Tanami / global_bhop.go
Created July 18, 2021 15:57
Simple A2S player count collation.
package main
import (
"time"
"fmt"
"github.com/rumblefrog/go-a2s"
)
var ips = [...]string{
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
"sync"
@Tanami
Tanami / launcher_opts.md
Created October 27, 2026 14:37
DSLauncher options
@Tanami
Tanami / state_graph.md
Last active November 6, 2026 12:26
state_graph.md

state_graph.db

DATA/AI/state_graph.db controls which high-level behaviour a ship selects next. The ship's state_graph setting selects a graph family; its formation role selects LEADER or ESCORT. Pilot blocks and engine code implement the behaviours themselves.

Format

Plain ASCII with whitespace-separated numbers. The shipped header is: