Skip to content

Instantly share code, notes, and snippets.

View hedgehog1029's full-sized avatar
🔮
functional witchery

Henry hedgehog1029

🔮
functional witchery
View GitHub Profile
@hedgehog1029
hedgehog1029 / mpv-play.py
Created November 12, 2019 16:43
Play a file and everything after it in the folder via mpv
#!/usr/bin/env python3
from subprocess import Popen, PIPE
import time
import os.path
import socket
import sys
import tempfile
import json
@hedgehog1029
hedgehog1029 / ContainerItemHandler.java
Created May 18, 2018 17:25
Forge Container implementation for IItemHandler
package offbeatwitch.example; // replace with your own package path, obviously
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.server.SPacketOpenWindow;
import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.items.IItemHandler;
@hedgehog1029
hedgehog1029 / spec.md
Last active September 11, 2016 20:20
Juggle draft spec

juggle - a tiny language designed for text documents

Juggle's syntax is designed to be minimally invasive, simply by taking up only 1 line and a small amount of space. Juggle works by looking for two-character actions at the start of a line. These actions are:

#@ - denotes a global command
#? - denotes a boolean
## - denotes a comment (will be removed from final output)
#! - denotes a bang, a command which modifies the next line
@hedgehog1029
hedgehog1029 / commands.md
Last active June 4, 2016 18:33
NekomareBot commands

NekomareBot help v0.2

All commands should be prefixed with neko. Quotes ("") may be used in arguments where you require spaces.

Command Aliases Usage Notes
ban ban, b <user> [reason] Ban a user.
unban unban, ub <user> Unban a user.
kick kick, k <user> Kick a user.
mute mute, m <user> Mute a user.
@hedgehog1029
hedgehog1029 / keybase.md
Created May 28, 2016 17:24
Keybase proof

Keybase proof

I hereby claim:

  • I am hedgehog1029 on github.
  • I am obw (https://keybase.io/obw) on keybase.
  • I have a public key ASAGp0_cHugHbpTv93StTTtsz9Z3PLbfcoIezgUNg4Y6DQo

To claim this, I am signing this object:

@hedgehog1029
hedgehog1029 / hedgehog.zsh-theme
Created October 25, 2015 15:31
ZSH theme: hedgehog
# hedgehog1029's theme
# Color shortcuts
R=$fg_no_bold[red]
B=$fg_no_bold[blue]
M=$fg_no_bold[magenta]
RESET=$reset_color
local return_side="%(?..%{$R%}%? ↵ %{$RESET%})"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.17/firebase.js'></script>
</head>
<body>
<img src="" id="profileimg"></img>
@hedgehog1029
hedgehog1029 / planner.html
Created June 19, 2014 11:26
SociaMe code
<html>
<head>
<script type="text/javascript" src ="https://cdn.firebase.com/js/client/1.0.15/firebase.js"></script>
<script type="text/javascript">
var planner = new Firebase("https://sociame.firebaseio.com/users/JohnSmith/planner");
planner.on('value', function(snapshot) {
document.getElementById("title").innerHTML(snapshot.value().name);
}
</script>