Skip to content

Instantly share code, notes, and snippets.

@Gjum
Gjum / block_collision_shapes_1.12.2.json
Created March 24, 2020 03:46
block_collision_shapes_1.12.2
{"blocks":{"air":0,
"stone":1,
"grass":1,
"dirt":1,
"cobblestone":1,
"planks":1,
"sapling":0,
"bedrock":1,
"flowing_water":0,
"water":0,
@Gjum
Gjum / block_collision_shapes_1.15.json
Created December 13, 2019 19:32
block_collision_shapes_1.15
{"blocks":{"air":0,
"stone":1,
"granite":1,
"polished_granite":1,
"diorite":1,
"polished_diorite":1,
"andesite":1,
"polished_andesite":1,
"grass_block":1,
"dirt":1,
@Gjum
Gjum / block_collision_shapes_1.14.4.json
Created December 13, 2019 19:31
block_collision_shapes_1.14.4
{"blocks":{"air":0,
"stone":1,
"granite":1,
"polished_granite":1,
"diorite":1,
"polished_diorite":1,
"andesite":1,
"polished_andesite":1,
"grass_block":1,
"dirt":1,
@Gjum
Gjum / iptables.rule
Created April 8, 2019 14:23 — forked from Maxopoly/iptables.rule
IP tables for Minecraft
#You probably want to do this in root to reduce the amount of sudos required
su -
#Clean out any existing rules and allow incoming traffic to begin with
iptables -P INPUT ACCEPT
iptables -F
#Allow all internal connections
iptables -A INPUT -i lo -j ACCEPT
@Gjum
Gjum / bundle.html
Created June 29, 2018 16:23 — forked from geow812/bundle.html
Hierarchical edge bundling with dynamically generated arcs for each group
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="Styles/style.css"/>
<style type="text/css">
path.arc {
cursor: move;
fill: #fff;
@Gjum
Gjum / Discord-webhook.gs
Last active May 31, 2022 14:41 — forked from jamietech/Discord-webhook.gs
Sends Google form payload to Discord webhook
function onFormSubmit(e) {
var fields = [];
for (i = 0; i < e.response.getItemResponses().length; i++) {
var response = e.response.getItemResponses()[i];
fields.push({
"name": response.getItem().getTitle(),
"value": JSON.stringify(response.getResponse()),
"inline": false
});
@Gjum
Gjum / gist:510cccb31b5c57de1183
Created February 22, 2016 01:05 — forked from syllog1sm/gist:10343947
A simple Python dependency parser
"""A simple implementation of a greedy transition-based parser. Released under BSD license."""
from os import path
import os
import sys
from collections import defaultdict
import random
import time
import pickle
SHIFT = 0; RIGHT = 1; LEFT = 2;
@Gjum
Gjum / list_comprehensions.rs
Created February 3, 2016 20:20 — forked from JeffBelgum/list_comprehensions.rs
Python list comprehensions in Rust
#![feature(macro_rules)]
/// MIT license etc. etc.
///
/// Experimenting with Python-like list comprehensions.
///
/// An attempt to explore the possibility space for ergonomic improvements
/// in Rust that can come post v1.0. Notice that there are not type declerations.
/// Aside from the "c!" macro invocation, Rust allows for an exact copy of the
/// Python comprehension syntax.

this repo contains two analogous script prototypes for screencasting to livecoding.tv

  • ffmpeg implementation - full-featured and works quite well
  • gstreamer implementetion - work in progress
@Gjum
Gjum / reload_examples.md
Last active August 31, 2015 01:35
Reload examples

#Reload examples Original code

###Minimal example Reload when '.' key is pressed.

class Leaderboard(Subscriber, Reloadable):
    # There is no __init__() with args and no state, so
    # neither capture_args() nor _persistent_attributes