Skip to content

Instantly share code, notes, and snippets.

@x3ro
x3ro / gist:4635451
Last active February 27, 2017 00:30
Example of SVG embedded in Markdown

Hi

--- hello

wat

![](data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8IS0tIEdlbmVyYXRlZCBieSBncmFwaHZpeiB2ZXJzaW9uIDIuMjguMCAoMjAxMzAxMjUuMTUzMikKIC0tPgo8IS0tIFRpdGxlOiBldGhhbmUgUGFnZXM6IDEgLS0+Cjxzdmcgd2lkdGg9IjQwOHB0IiBoZWlnaHQ9Ijk4cHQiCiB2aWV3Qm94PSIwLjAwIDAuMDAgNDA4LjAwIDk4LjAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KPGcgaWQ9ImdyYXBoMSIgY2xhc3M9ImdyYXBoIiB0cmFuc2Zvcm09InNjYWxlKDEgMSkgcm90YXRlKDApIHRyYW5zbGF0ZSg0IDk0KSI+Cjx0aXRsZT5ldGhhbmU8L3RpdGxlPgo8cG9seWdvbiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJ3aGl0ZSIgcG9pbnRzPSItNCw1IC00LC05NCA0MDUsLTk0IDQwNSw1IC00LDUiLz4KPCEtLSBzdGVwMV8xIC0tPgo8ZyBpZD0ibm9kZTEiIGNsYXNzPSJub2RlIj48dGl0bGU+c3RlcDFfMTwvdGl0bGU+CjxlbGxpcHNlIGZpbGw9Im5vbmUiIHN0cm9rZT0i

@x3ro
x3ro / gist:4564672
Created January 18, 2013 13:53
Patch that fixes filter box viewing on iPad devices for roundcube mail (managesieve plugin)
From 5e71ad70ee4beb06c05b51f2c560f75a086bfe8a Mon Sep 17 00:00:00 2001
From: root <root@go26.gosign.de>
Date: Fri, 18 Jan 2013 14:51:28 +0100
Subject: [PATCH] Fix filter box not showing entirely on iPad
---
plugins/managesieve/skins/larry/managesieve.css | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/managesieve/skins/larry/managesieve.css b/plugins/managesieve/skins/larry/managesieve.css
@x3ro
x3ro / README.md
Created November 3, 2012 00:40 — forked from mbostock/.block
Donut Chart

This donut chart is constructed from a CSV file storing the populations of various age groups. The chart employs a number of D3 features:

@x3ro
x3ro / gist:4005078
Created November 2, 2012 23:49
Poetic spambots are poetic

I discovered that it can be very entertaining to read spam comments to my posts, which appear to be no less then "a material of un-ambiguity and preserveness of precious experience concerning unpredicted emotions". And you learn stuff, too. Speilberg [sic] for example seems to have given me an enthusaitic [sic] thumbs down, or so it seems:

Sounds to me like Lucas stood a bitch of any time your entire scene. His screening from the intial conversion scene met having an enthusaitic thumbs down from people (including I’m sure Speilberg) and the man were required to rework it. It is still equipped with its problems now this comes out. Am I so fucking glad the Anakin there the whole time thing changed because that will happen to be worse.

Of course Anakin was involved in something getting worse again, that kid never learns. On a completely different topic, as someone who sometimes writes paragraphs, I am, of course, aware that _"paragraph writing is also a fun, if you know after that you can write or else it

@x3ro
x3ro / gist:4004994
Created November 2, 2012 23:23
gist.io list test

I like lists!

  • foo
    • bar
    • baz
  • test
@x3ro
x3ro / gist:3940442
Created October 23, 2012 18:12
Problems with bandits in WarZ

I think that there are currently three different types of bandits:

  1. Those who kill because they wan't other peoples' gear
  2. Those who kill because they don't want to get killed themselves
  3. Those who kill people for the fun of it

I'm totally fine with type 1, it's part of the game and I won't complain about them. I very much despise the third type, because they simply make the game a bad experience for many people, and I think that type 2 is actually, at least in part, a result of the existence of type 3. Let me explain:

Whenever somebody gets killed by someone else, they will get (at least a little) upset, especially when you didn't have anything worth killing for. Given that this happens most of the time (getting killed for nothing), people get paranoid and kill everyone on sight because they are tired of getting killed all the time. The reason bandits can go around killing everyone on sight is because they don't have anything to fear. They remain completely anonymous.

# A little modification to Wynn Netherland's (http://wynnnetherland.com/journal/a-stylesheet-author-s-guide-to-terminal-colors)
# "git n" alias which allows one to specify a subdirectory.
[alias]
n = !"f() { git ls-files $1 | xargs notes | awk -F: '{ print $1,$2; print $3,$4; print $5}' | grcat conf.notes | less -r; }; f"
@x3ro
x3ro / gist:3747057
Created September 19, 2012 01:17
Scala 2.10 – Reflection against Named Arguments
import scala.reflect.runtime.universe._
import scala.reflect.runtime._
def newInstance(tpe:Type, args:Map[String, Any]) = {
val clazz = tpe.typeSymbol.asClass
val ctor = tpe.member(nme.CONSTRUCTOR).asMethod
var argList = ctor.params(0).map { a => args(a.name.toString) }
currentMirror.reflectClass(clazz).reflectConstructor(ctor)(argList:_*)
}
@x3ro
x3ro / install_teamspeak.sh
Last active September 29, 2019 18:44
Teamspeak 3 installation script for Debian based systens (incl. Ubuntu)
#!/bin/bash
#
# A small script that sets up a teamspeak 3 server.
# Tested on debian and ubuntu.
#
# Source: http://coding-journal.com
#
TMP="/tmp/teamspeak/"
INSTALL_PATH="/usr/local/teamspeak3/"
@x3ro
x3ro / gist:3252874
Last active October 8, 2015 00:58
WIP - Terasology Themeable GUI

This is a work-in-progress documentation for a themeable GUI prototype for Terasology, based on this forum thread and this forum thread.

Introduction

In order to provide a more easily customizable GUI, the current user interface system is to be enhanced by allowing the user interface definition through JSON files, separating the user interface logic from its actual appearance.

The current user interface system is roughly devided into the following packages: