Skip to content

Instantly share code, notes, and snippets.

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

I like lists!

  • foo
    • bar
    • baz
  • test
@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 / 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: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 / 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

#!/bin/bash
# We need the TAB character for SED (Mac OS X sed does not understand \t)
TAB="$(printf '\t')"
function abort {
echo "$(tput setaf 1)$1$(tput sgr0)"
exit 1
}
@x3ro
x3ro / gist:6274616
Last active December 21, 2015 07:58
draft.sx
Hello visitor. This is a fork of [@idan](https://github.com/idan)'s [gist.io](http://gist.io) project, adding a couple new features and fixing some bugs that have not been touched for a while. Idan intends to keep on working on the original gist.io, for which, at some point, he wants to charge a bit of money in order to even out the server costs ([source](https://github.com/idan/gistio/issues/55#issuecomment-22453283)), but he's currently unclear when that will be. At least until then, I will work on my own improvements, which might some day make it back into upstream :)
# Features added
## Callouts
> You can now use callouts, which are great to draw attention to specific, important sections of your text:
@x3ro
x3ro / Makefile
Created September 12, 2013 12:44
Source files for my latest blog post on working with assembly routines and C on Mac OS X - http://x3ro.de/2013/09/12/link-assembly-routine-with-c-on-osx.html
all: run
run: clean test
./test
test: asm.o test.o
clang -o test asm.o test.o
asm64.o:
nasm -f macho64 asm.s
#!/usr/bin/env python
from __future__ import print_function
from optparse import OptionParser
import os
import sys
parser = OptionParser()
parser.add_option("-i", "--import", dest="imports", action="append", default=[],