Skip to content

Instantly share code, notes, and snippets.

View tslocum's full-sized avatar

Trevor Slocum tslocum

View GitHub Profile
@tslocum
tslocum / gist:3a5d003e57b6cdc89761f44e7b40738d
Created August 10, 2023 04:41
bgammon.org TCP interface
trevor@eros ~ $ nc 127.0.0.1 1337
hello Welcome to bgammon.org! Please log in by sending the 'login' command. You may specify a username, otherwise you will be assigned a random username. If you specify a username, you may also specify a password. Have fun!
login
welcome Guest992 there are 0 clients playing 0 games.
create
notice To create a public game specify whether it is public or private. When creating a private game, a password must also be provided.
create public
joined 1
list
liststart Games list:
@tslocum
tslocum / ecs_camera.go
Created November 19, 2021 19:15
Example of an ECS camera using Gohan
package system
import (
_ "image/png"
"code.rocketnine.space/tslocum/gohan"
"code.rocketnine.space/tslocum/monovania/component"
"github.com/hajimehoshi/ebiten/v2"
)
@tslocum
tslocum / gist:77987ffde7c71d342c45402f654bbda6
Created December 21, 2020 18:16
F-Droid documentation draft feedback
Feedback on https://android.izzysoft.de/articles/named/fdroid-intro-4?lang=en
Written from first person perspective, feels conversational. Some first person
statements are certainly welcome. Most of the article being in first-person
makes reading more difficult as everything is always in relation to the
presenter. The details of your personal experience with the life-cycle could be
omitted. Instead, focus on what I believe you're trying to say: you don't have
to be an android developer or packager to help out. Adapt first person
statements to be more general statements.
package main
import (
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
"log"
"os"
)
func main() {
package sh.ftp.rocketninelabs.meditationassistant;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.AssetFileDescriptor;
import android.content.res.TypedArray;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Parcel;
BUILD SUCCESSFUL
Total time: 33.35 secs
INFO: Scanning source for common problems...
ERROR: Found usual supect 'google.*play.*services' at line 34 at MeditationAssistantWear/build.gradle
ERROR: Found usual supect 'google.*play.*services' at line 52 at MeditationAssistant/build.gradle
ERROR: Found usual supect 'google.*play.*services' at line 53 at MeditationAssistant/build.gradle
ERROR: Found usual supect 'google.*play.*services' at line 54 at MeditationAssistant/build.gradle
ERROR: Found usual supect 'google.*analytics' at line 54 at MeditationAssistant/build.gradle
ERROR: Found usual supect 'google.*play.*services' at line 55 at MeditationAssistant/build.gradle
@tslocum
tslocum / imgay.pl
Last active September 22, 2015 00:01
hi~im~gay
sub saovq_privmsg {
my ($message,$server,$window)=@_;
return unless $window;
if (${$window}{name} eq "#saovq") {
$message =~ s/[ ]/\~/g;
$server->command("PRIVMSG ${$window}{name} :$message");
Irssi::signal_stop();
Irssi::print(" tee | $message", MSGLEVEL_CLIENTCRAP);
}
Connected to lobby.
tee invited ONX
tee invited K00lAiDz
ONX joined
ONX: hold on i need to listen for sirens
ONX: i just heard a loud boom
tee: k
ONX is now Away
ONX: ok i'm good
ONX: hold up
// ............................ Basic Server Settings ............................. //
// The name of your server as you want it to show up on ZPS's Server Browser
hostname "[1chan.us] zps_bridges - all day every day"
// The contact email for your main server admin
sv_contact "tslocum@gmail.com"
// Password for rcon (remote connection), can be left blank for no RCon, it's recommended that you make a secure password.
// Need a secure password? Check out https://www.grc.com/passwords.htm for automatically generated ones
[/Script/UnrealTournament.UTGameState]
ServerName=[1chan.us] grandmother sat on my iphone
ServerMOTD=Welcome! Join the community at 1chan.us
[/Script/UnrealTournament.UTDMGameMode]
DefaultLobbyMap=DM-DeckTest
UILastStartingMap=DM-DeckTest