Skip to content

Instantly share code, notes, and snippets.

<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-fareast-font-family:Cambria;mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:Cambria;mso-bidi-theme-font:minor-latin'><span
style='mso-list:Ignore'>19.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]>And
think of all the minor towns <span class=GramE>who</span> sacrificed everything
to build an altar for the locomotive. Mayors that believed their townÕs future
success depended on the promises of growth that a train could deliver.</p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-fareast-font-family:Cambria;mso-fareast-theme-font:minor-latin;
### Keybase proof
I hereby claim:
* I am gjtorikian on github.
* I am gjtorikian (https://keybase.io/gjtorikian) on keybase.
* I have a public key whose fingerprint is C1ED A163 FD6B B117 54F6 EC3F 727F AED2 910C 6544
To claim this, I am signing this object:

Hi, my name is @gjtorikian: http://miadzin.org/

How many of you work with DITA/XML? (wait for people to raise their hands)

Ok, and how many of you use a lightweight markup language like Markdown, ReStructuredText, wikis, etc. (wait for more people to raise hands.)

Keep your hands raised. I want people from the first group to go and talk to people from the second group. Share ideas. Exchange words.

I speak to you as someone who's been a writer that transitioned into a doc build person for a large DITA enterprise. I speak to you as someone who has written not one, not two, but three documentation build systems. I've written ant tasks and XSLTs and DTDs for DITA. I've built a tool to validate documentation links and images, and an implementation of conrefs that is very fast. And I've als

@gjtorikian
gjtorikian / languages.rb
Last active August 29, 2015 14:10
Linguist / Ace mode grabber thing
require 'yaml'
require 'json'
languages = YAML.load_file("lib/linguist/languages.yml")
linguist_names = []
languages.each_pair do |language, values|
if values["ace_mode"]
linguist_names << values["ace_mode"]
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<semantics>
<mrow>
<mi>x</mi>
<mrow>
<mrow>
<mrow>
<mover>
<mrow>
<mi>A</mi>
@gjtorikian
gjtorikian / comparisson
Created February 12, 2012 17:27
API Markdown styles
## readFileSync(filename, [encoding])
* `filename` String, Required. The name of the file to read
* `encoding` String, Optional. The encoding to use
* Returns: String or Buffer. The contents of the filename. If `encoding` is specified, then this function returns a string. Otherwise it returns a `buffer`.
* * *
## fs.readFileSync(filename, [encoding='utf8']) -> String | Buffer
- filename (String): The name of the file to read
- encoding (String): The encoding to use
@gjtorikian
gjtorikian / random.rb
Created October 6, 2015 00:24
Script to generate random files
LORUM = %w(lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit, amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat volup
@gjtorikian
gjtorikian / wrap-in-js.sh
Created August 29, 2012 22:43
Wraps a chunk of text in Javascript, to support CORS and CLoud9 IDE external plugins
#!/bin/bash -e
# original here: https://github.com/lennartcl/cloud9-hello-plugin/blob/master/wrap-in-js.sh
if [ $# == 0 ]; then
echo No files specified
exit 1
fi
for F in $*; do
echo -n '// Wrapped in JavaScript, to avoid cross-origin restrictions, created using wrap-in-js.sh
@gjtorikian
gjtorikian / ag_spawn.js
Created September 1, 2012 03:24
Testing Ag via Node script
var spawn = require('child_process').spawn;
var cmd = spawn(
"/Users/gjtorikian/Developer/cloud9/plugins-server/cloud9.ide.search/darwin_x64/ag",
["-l", "--search-binary", "--nobreak", "--ackmate", "."]);
cmd.stdout.setEncoding('utf8');
cmd.stdout.on('data', function (data) {
console.log('stdout: ' + data);
});