Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Allen mojavelinux

View GitHub Profile
@mojavelinux
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"]
....
id,name,title
1,Paul,CEO
2,Jeff,CTO
3,Dmitri,Vice President
....
@mojavelinux
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.

Note
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
mojavelinux / sandbox.adoc
Last active Aug 29, 2015
AsciiDoc sandbox
View sandbox.adoc

Sandbox

\$(sqrt(-shit))^2\$

embedded

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

JCP Case Study: Transparency in Documentation Interview

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

Building Reactive Apps

@mojavelinux
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) {
print(str);
},
warn: function(str) {
print(str);
}
};
}
@mojavelinux
mojavelinux / link-with-chrome-scheme.adoc
Last active Aug 29, 2015
Test of link with chrome scheme.
View link-with-chrome-scheme.adoc