Skip to content

Instantly share code, notes, and snippets.

@Gjum
Gjum / minecraft-fast-start.sh
Created February 1, 2015 21:44
Start Minecraft without opening the launcher every time
#!/bin/bash
# Start Minecraft without opening the launcher every time
# written by Gjum https://github.com/Gjum
# location to store the startup command:
faststart="$HOME/.minecraft/.faststart"
if [ -f "$faststart" ];then
exec "$faststart"
else
@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

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 / 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.
@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 / 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 / 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 / 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 / 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 / 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,