Skip to content

Instantly share code, notes, and snippets.

@pepijnve
pepijnve / gist:8f0e5c2a399c0e1fe1f2ea06b230427a
Last active October 7, 2020 16:10
Asciidoc Pikchr example
= Doc Title
This is an example of embedding Pikchr in asciidoc with live preview
.A silly little Pikchr diagram
[pikchr]
----
arrow
box "foo"
down
@pepijnve
pepijnve / gist:2d4059db5d827462b5cd
Created August 22, 2014 19:51
Updated Cacoo implementation
require 'json'
require 'time'
require_relative '../api/diagram'
module Asciidoctor
module Diagram
# @private
module Cacoo
def self.get_diagram_metadata(diagram_id, api_key)
# NOTE: See API document at https://cacoo.com/lang/en/api and
@pepijnve
pepijnve / proguard.rb
Last active December 16, 2015 05:48
Buildr extension that adds support for obfuscation using Proguard
require 'buildr'
module Buildr
class ProguardTask < Rake::FileTask
# Proguard version number.
VERSION = '4.7'
OPTIONS = [:configuration,
:target,
:forceprocessing,