Skip to content

Instantly share code, notes, and snippets.

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

Tanami Tanami

🅱️
oneless code
View GitHub Profile
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
"sync"
@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{
@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 / 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 = []