Skip to content

Instantly share code, notes, and snippets.

View matze's full-sized avatar

Matthias Vogelgesang matze

View GitHub Profile
@matze
matze / ti
Created September 24, 2012 18:04
TicGit bash completion, originally by Nick Anderson
# Author: Nick Anderson (http://www.cmdln.org)
# Contributions: Matthias Vogelgesang (http://bloerg.net)
# Description: Simple Bash Completion for ticgit
_ti()
{
local cur prev opts state_opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="assign checkout comment list new points recent show state sync tag"
@matze
matze / ditaa.rb
Created August 25, 2012 18:58
Ditaa plugin for Jekyll
require 'fileutils'
module Jekyll
class DitaaBlock < Liquid::Block
def initialize(tag_name, markup, tokens)
super
end
def render(context)
File.open('/tmp/ditaa.txt', 'w') {|f| f.write(super)}