Skip to content

Instantly share code, notes, and snippets.

Avatar
🅱️
oneless code

Tanami Tanami

🅱️
oneless code
View GitHub Profile
@Tanami
Tanami / fragment.js
Last active Feb 12, 2020
very fast text "highlighting" using substring and charCodeAt
View fragment.js
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 Jul 18, 2021
discord sidebar stats for srcds_linux / a2s
View discord_sidebar.go
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
"time"
"github.com/bwmarrin/discordgo"
@Tanami
Tanami / global_bhop.go
Created Jul 18, 2021
Simple A2S player count collation.
View global_bhop.go
package main
import (
"time"
"fmt"
"github.com/rumblefrog/go-a2s"
)
var ips = [...]string{
View sourcejump_a2s.go
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
"sync"