Skip to content

Instantly share code, notes, and snippets.


Dan Allen mojavelinux

View GitHub Profile
mojavelinux / a-input.adoc
Last active Aug 29, 2015
Asciidoctor textql extension example
View a-input.adoc
[textql%header, "select name, title, length(name) from tbl where title like 'C%'", "Name,Title,Length of Name"]
3,Dmitri,Vice President
mojavelinux / middleman-asciidoctor.adoc
Last active Aug 29, 2015
Instructions for configuring AsciiDoc in Middleman 3.
View middleman-asciidoctor.adoc

How to enable AsciiDoc in a Middleman 3 site

Follow these steps to setup AsciiDoc in a Middleman 3 site.

Middleman 4 will require the use of the middleman-asciidoc gem.
View graphgist.adoc

Sample GraphGist

CREATE (b:Beer {name:"Burton Baton"})
CREATE (b)<-[:DRINKER]-(u:User {screen_name:"mojavelinux"})
CREATE (b)<-[:STYLES]-(s:Style {name:"IPA"})
View hello-asciidoc.adoc

Hello, AsciiDoc!

An introduction to AsciiDoc.

First Section

  • item 1

  • item 2

mojavelinux / sandbox.adoc
Last active Aug 29, 2015
AsciiDoc sandbox
View sandbox.adoc




puts "Hello, World!"
mojavelinux / responses.adoc
Last active Aug 29, 2015
JCP transparency interview
View responses.adoc

JCP Case Study: Transparency in Documentation Interview

I’m going to answer on behalf of the CDI specification.

"" How did you keep your JSR schedule moving forward? Do you face any particular challenges as part of a platform JSR release? ""

I’m not personally involved in the schedule.

mojavelinux / manpage.rb
Created Oct 7, 2014
Asciidoctor manpage converter
View manpage.rb
require 'asciidoctor'
# * manually insert "NAME" section
# * still getting extra blank lines in definition lists
class ManpageConverter
include Asciidoctor::Converter
register_for 'manpage'
EOL = "\n"
mojavelinux / slides.adoc
Last active Aug 29, 2015
Building Reactive Apps by James Ward
View slides.adoc

Building Reactive Apps

mojavelinux / test-asciidoctor.js
Created Nov 25, 2014
Test script for Asciidoctor.js on various JavaScript implementations
View test-asciidoctor.js
if (typeof console === 'undefined') {
console = {
log: function(str) {
warn: function(str) {
mojavelinux / link-with-chrome-scheme.adoc
Last active Aug 29, 2015
Test of link with chrome scheme.
View link-with-chrome-scheme.adoc