Repositories (7)

rfrouter
2 snippets stored for this repo
var ParseArgs = func(args string) ([]string, error) {
	// fuck me
	// TODO: make modular
}

var ParseArgs = func(args string) ([]string, error) {
	// fuck me
	// TODO: make modular
	// TODO: actual tokenizer+parser
	r := csv.NewReader(strings.NewReader(args))
gotk4
2 snippets stored for this repo
// literally calls that deprecated function? Nevermind that, why is the
	// alternative A FUCKING PRIVATE FUNCTION?! COME ON WHAT THE FUCK?!
	//
// Anyway, here's the deprecated one. We have Cgo flags that silence
	// deprecation notices because GLib is a fucking clown.
	C.g_type_class_add_private(gclass, C.gsize(unsafe.Sizeof(privateGoInstance{})))
aqs
0 snippets stored for this repo
go-buttplug
15 snippets stored for this repo
package buttplug

import (
const (
	InternalErrorMessage MessageType = "buttplug.InternalError"
)
"github.com/diamondburned/go-buttplug/internal/buttplugschema/tmplutil"
)
"strconv"
	"time"

	"github.com/diamondburned/go-buttplug/internal/lazytime"
	"github.com/pkg/errors"
)
"sync/atomic"
	"time"

	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/internal/errorbox"
	"github.com/pkg/errors"
)
"os"
	"os/signal"

	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/device"
	"github.com/diamondburned/go-buttplug/intiface"
	"github.com/go-chi/chi"
// DeviceMessages is a type that holds the supported message types for a device.
type DeviceMessages map[buttplug.MessageType]buttplug.GenericMessageAttributes
Command(ctx context.Context, msg buttplug.Message) (buttplug.Message, error)
	Send(ctx context.Context, msgs ...buttplug.Message)
}
devices     map[buttplug.DeviceIndex]Device
	controllers map[buttplug.DeviceIndex]*Controller
//
func (m *Manager) ListenPassthrough(ch <-chan buttplug.Message) <-chan buttplug.Message {
	msgs := m.Broadcaster.Listen()
// Package buttplug provides Go wrappers around the Intiface API, which is a
// wrapper around the buttplug.io specifications.
//
// Most people should use package intiface instead. This package only supplies
// the messages and the Websocket implementation, but intiface allows those to
// automatically interact with the Intiface server.
package buttplug
"net/http"
	"strconv"

	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/device"
	"github.com/go-chi/chi"
	"github.com/gorilla/schema"
_ "embed"

	"github.com/diamondburned/go-buttplug/internal/buttplugschema"
	"github.com/diamondburned/go-buttplug/internal/buttplugschema/tmplutil"
)
// Package buttplugschema provides functions to fetch the buttplug.io JSON
// schema.
package buttplugschema
// SchemaURL gets the direct schema URL for the buttplug.io schema.
func SchemaURL(ref string) string {
intiface-gtk
4 snippets stored for this repo
_ "embed"

	"github.com/diamondburned/adaptive"
	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/device"
	"github.com/diamondburned/go-buttplug/intiface"
	"github.com/diamondburned/gotk4/pkg/glib/v2"
"fmt"
	"log"

	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/device"
	"github.com/diamondburned/gotk4/pkg/glib/v2"
	"github.com/diamondburned/gotk4/pkg/gtk/v4"
package ui

import (
	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/device"
)
"fmt"
	"time"

	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/device"
	"github.com/diamondburned/gotk4/pkg/glib/v2"
	"github.com/diamondburned/gotk4/pkg/gtk/v4"
keypounder
1 snippets stored for this repo
"sync"
	"time"

	"github.com/diamondburned/go-buttplug"
	"github.com/diamondburned/go-buttplug/device"
	"github.com/diamondburned/go-buttplug/intiface"
	"github.com/diamondburned/keypounder/internal/lazytime"
aoc-2023
1 snippets stored for this repo
time := race.Time
	time -= holdingMs // penalty for holding
	if time <= 0 {
		return false // L rizz
	}

	distance := time * holdingMs