Skip to content

Instantly share code, notes, and snippets.

<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 / lunrjs_worker.js
Created January 9, 2015 00:14
Jekyll LunrJS worker
importScripts('/assets/vendor/lunr.js/lunr.min.js');
// create lunr.js search index specifying that we want to index the title and body fields of documents.
var lunr_index = lunr(function() {
this.field('title', { boost: 10 });
this.field('body');
this.ref('id');
}),
entries;
@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"]
@gjtorikian
gjtorikian / homepage_spec.rb
Last active December 5, 2019 20:28
Basic Capybara testing with Jekyll + Rack
require 'spec_helper'
describe "Homepage" do
before :each do
visit "/index.html"
end
it "has a title" do
expect(page).to have_css("h1", text: "GitHub Help")

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

### 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:
<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;
  • Eveline
  • A Little Cloud
  • Childhood
    • An Encounter
    • Good Story
      • The Sisters
      • Better Story!
  • Araby
@gjtorikian
gjtorikian / org-mode.rb
Created September 19, 2013 21:03
Org mode test
require 'org-ruby'
x = <<-EOS
* TODO WHAT
* Functionality
** TODO Integer correctness
*** Use smallest integer sizes always
*** Overflow-check all integer multiplication
*** Overflow-check all integer addition