Skip to content

Instantly share code, notes, and snippets.

View Silvea12's full-sized avatar

Andrew Silver Silvea12

  • Australia
View GitHub Profile
@Silvea12
Silvea12 / Oxfowd Engwish Dictionawy.txt
Created March 27, 2021 04:08
Oxfowd Engwish Dictionawy
This file has been truncated, but you can view the full file.
a
a- pwefix (awso a-an- befowe a-a vowew sound) nyot, (U ﹏ U) without (amowaw). >w< [gweek]
a-aa abbw. (⑅˘꒳˘) 1 automobiwe association. >w< 2 a-awcohowics anonymous. ( ͡o ω ͡o ) 3 anti-aiwcwaft. rawr x3
aawdvawk n-ny. ( ͡o ω ͡o ) mammaw with a tubuwaw snout and a wong t-tongue, o.O feeding on tewmites. UwU [afwikaans]
@Silvea12
Silvea12 / setClipboard.js
Last active March 28, 2018 13:31
Fucking javascript. Here's a way to do it without a huge lib that works in *most* browsers.
// Sets the clipboard without destroying the body too harshly, restoring focus and selections when done
function setClipboard(text) {
function getCurrSelections() {
var selection = window.getSelection();
var sels = new Array(selection.rangeCount).fill(0).map(function(e, idx) {
return selection.getRangeAt(idx);
});
return sels;
}
@Silvea12
Silvea12 / brainfuck.go
Created February 14, 2018 22:39
A brainfuck interpreter in golang. Because I was bored.
package main
import (
"fmt"
"log"
"os"
)
func main() {
if len(os.Args) == 1 {
@Silvea12
Silvea12 / PTVMessageBot.user.js
Last active January 27, 2018 18:20
Userscript for ScreampunkArts to simulate a basic chat bot
// ==UserScript==
// @name Picarto.TV Bot
// @namespace https://picarto.tv/
// @version 1.6
// @description Adds bot-like functionality to picarto chat (only works in your channel)
// @author Andrew Silver https://keybase.io/silvea12
// @match https://picarto.tv/site/dashboard
// @grant none
// ==/UserScript==
@Silvea12
Silvea12 / prepare_input.py
Created December 14, 2017 22:54
Update the input map for godot 2/3 from db.txt
windows={}
osx={}
linux={}
with open("db.txt") as fp:
line = fp.readline().strip()
while line:
parts = line.split(",")
platform = ""
for i in parts:
@Silvea12
Silvea12 / keybase.md
Created January 21, 2017 14:50
keybase.md

Keybase proof

I hereby claim:

  • I am silvea12 on github.
  • I am silvea12 (https://keybase.io/silvea12) on keybase.
  • I have a public key ASBGZvIj4krKVFc3k-b4AUwhbbmHAUIZnJK5PD_8P0aQRQo

To claim this, I am signing this object:

@Silvea12
Silvea12 / countdownBot.go
Created November 19, 2016 23:15
Countdown bot for 24 hour game jam
package main
import (
"time"
"github.com/bwmarrin/discordgo"
)
type dur struct {
Duration time.Duration
var spammedUsers = {};
setInterval(function() {
for (var i in spammedUsers) {
spammedUsers[i]--;
if (spammedUsers[i] <= 0)
delete spammedUsers[i];
}
}, 2000)
socket.On('ChatMessage', function(data) {
@Silvea12
Silvea12 / archsetup.sh
Last active October 26, 2016 03:16
Arch linux setup script
#!/bin/bash
set -e
# Variables
primaryHDD=/dev/sda
# secondaryHDD=/dev/sdb # Uncomment if using a secondary HDD
hostname="pikaworkstation"
user="silvea"
swapTotal=16G
country=DE # Germany
# country=AU # Australia
@Silvea12
Silvea12 / chat.proto
Last active September 15, 2016 08:05
Picarto.TV V8 spec
syntax = "proto3";
// Compilation command: protoc --go_out=go --js_out=library=proto_libs,binary:js chat.proto
// ./compile.sh > out.js
// Chat message client->server
message NewMessage {
string message = 1;
}
// Sends the userlist
message UserList {