Skip to content

Instantly share code, notes, and snippets.

app.rb
require 'sinatra'

get '/hi' do
@LightGuard
LightGuard / test.asciidoc
Last active August 29, 2015 14:04
adoc id and titles
@LightGuard
LightGuard / slide_components.adoc
Last active May 16, 2018 12:26
Visual components in a presentation.
topic / title

I think we all know what these are.

sub topic / title

Same

scatter

Typically applied to lists, but elements are scattered around the borders of the slide

callout

Callouts from source typically, attention to a particular line

figure / object / media

Some sort of media (image, video, audio, etc) followed by text

source block

Source code or some other monospace section of text

pull / float

pull the content of the container to one side

list

We all know what these are

table

Think HTML table

emphasis (could be within a title, paragraph, etc)

Some sort of demarcation for grabbing attention

@LightGuard
LightGuard / gist:7605639
Created November 22, 2013 19:42
Trying to fix the breadcrumb helper
diff --git a/_ext/breadcrumb.rb b/_ext/breadcrumb.rb
index 410c2dd..71dc4e5 100644
--- a/_ext/breadcrumb.rb
+++ b/_ext/breadcrumb.rb
@@ -56,13 +56,11 @@ module Awestruct
def findInPages(path)
-
- for page in site.pages
java.lang.NoClassDefFoundError: org/hamcrest/core/CombinableMatcher
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
at java.lang.Class.getDeclaredMethods(Class.java:1845)
at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
@LightGuard
LightGuard / backend-documentation.asciidoc
Last active December 15, 2015 20:58
WIP asciidoctor backend documentation and exploration, based upon dzslide rendering

Asciidoctor Backend Documentation

What is a backend?

How do I create a new backend?

Which sections are used?

@LightGuard
LightGuard / hpricot_index.html
Created February 27, 2013 18:11
hpricot vs nokogiri output
<!DOCTYPE html SYSTEM>
<html>
<head>
<meta charset="utf-8" />
<title>News and information from LightGuardjp :</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<style>
body {
padding-top: 60px;
}
@LightGuard
LightGuard / gist:4675105
Created January 30, 2013 17:49
RWP F2F DeltaSpike Presentation
Apache DeltaSpike Overview
==========================
Jason Porter
v1.0, Feb 2013
:title: Apache DeltaSpike Overview
:description: Brief 20 minute overview of Apache DeltaSpike for RWP F2F 2013
:copyright: CC BY-SA 2.0
:imagesdir: images
:backend: dzslides
:linkcss: true
asciidoctor(1)
==============
:doctype: manpage
NAME
----
asciidoctor - converts an AsciiDoc text file to HTML, DocBook and other formats
@LightGuard
LightGuard / reinstall-silverlight.sh
Created January 29, 2012 00:32
reinstall Silverlight on the Mac
#!/bin/sh
killall Safari
killall Google\ Chrome
rm -rf /Library/Internet\ Plug-Ins/Silverlight.plugin
hdiutil attach /Users/tessieporter/Downloads/Silverlight-1.dmg
installer -pkg /Volumes/Silverlight/Silverlight.pkg/ -target "/"
hdiutil detach /Volumes/Silverlight