Skip to content

Instantly share code, notes, and snippets.

View mojavelinux's full-sized avatar

Dan Allen mojavelinux

View GitHub Profile
@mojavelinux
mojavelinux / a-input.adoc
Last active August 29, 2015 13:56
Asciidoctor textql extension example
[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 August 29, 2015 13:56
Instructions for configuring AsciiDoc in Middleman 3.

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.
@mojavelinux
mojavelinux / graphgist.adoc
Created July 21, 2014 23:56
Sample GraphGist

Sample GraphGist

CREATE (b:Beer {name:"Burton Baton"})
CREATE (b)<-[:DRINKER]-(u:User {screen_name:"mojavelinux"})
CREATE (b)<-[:STYLES]-(s:Style {name:"IPA"})
@mojavelinux
mojavelinux / hello-asciidoc.adoc
Last active August 29, 2015 14:05
Hello, AsciiDoc!

Hello, AsciiDoc!

An introduction to AsciiDoc.

First Section

  • item 1

  • item 2

@mojavelinux
mojavelinux / sandbox.adoc
Last active August 29, 2015 14:05
AsciiDoc sandbox

Sandbox

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

embedded

puts "Hello, World!"
@mojavelinux
mojavelinux / responses.adoc
Last active August 29, 2015 14:06
JCP transparency interview

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 October 7, 2014 19:57
Asciidoctor manpage converter
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 August 29, 2015 14:07
Building Reactive Apps by James Ward

Building Reactive Apps

@mojavelinux
mojavelinux / test-asciidoctor.js
Created November 25, 2014 07:59
Test script for Asciidoctor.js on various JavaScript implementations
if (typeof console === 'undefined') {
console = {
log: function(str) {
print(str);
},
warn: function(str) {
print(str);
}
};
}
@mojavelinux
mojavelinux / link-with-chrome-scheme.adoc
Last active August 29, 2015 14:10
Test of link with chrome scheme.