Skip to content

Instantly share code, notes, and snippets.

View rvagg's full-sized avatar

Rod Vagg rvagg

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<fo:block>
<fo:instream-foreign-object>
##########################################
## Layout and cm/pixel conversions
##
## We roughly calibrate the pixel size of the SVG area so that font-size="X" matches the FOP font size in points,
## this also happens to work out at about 72dpi
#set ($widthCm = 16)
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" height="14.629999999999997cm" width="16cm"
viewBox="0 0 453.6 414.7604999999999" font-family="sans-serif,sans" text-rendering="auto" preserveAspectRatio="xMidYMid meet" zoomAndPan="magnify"
fill="black" stroke-width="0" letter-spacing="-0.05em" font-size="9pt">
<g>
<text x="258.69375" y="6.75" font-style="italic" text-anchor="middle" font-size="8pt">Percentage of recommended daily intake</text>
<text x="99.22500000000001" y="17.8875" font-weight="bold" text-anchor="middle">0%</text>
<text x="258.69375" y="17.8875" font-weight="bold" text-anchor="middle">100%</text>
<text x="418.1625" y="17.8875" font-weight="bold" text-anchor="middle">200%</text>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" height="17.379999999999995cm" width="16cm"
viewBox="0 0 453.6 492.7229999999999" font-family="sans-serif,sans" text-rendering="auto" preserveAspectRatio="xMidYMid meet" zoomAndPan="magnify"
fill="black" stroke-width="0" letter-spacing="-0.05em" font-size="9pt">
<g>
<text x="258.69375" y="6.75" font-style="italic" text-anchor="middle" font-size="8pt">Percentage of recommended daily intake</text>
<text x="99.22500000000001" y="17.8875" font-weight="bold" text-anchor="middle">0%</text>
<text x="258.69375" y="17.8875" font-weight="bold" text-anchor="middle">100%</text>
<text x="418.1625" y="17.8875" font-weight="bold" text-anchor="middle">200%</text>
@rvagg
rvagg / ender.deferred.js
Created November 19, 2011 09:42 — forked from ded/ender.delay.js
ender deferred
!function ($) {
function deferred(exec) {
var mock = {}
, chain = []
, key
, $el = $(this)
, push = function (key) {
mock[key] = function () {
chain.push({ key: key, arguments: arguments })
return mock
@rvagg
rvagg / 2012-01-09-ender-roundup.md
Created January 9, 2012 03:16
DailyJS "Ender Roundup" #2, January 2011

layout: post title: "Ender Roundup: Swig, Traversty, NWMatcher, Ender-Overlay, Dagron" author: Rod Vagg categories:

  • ender
  • frameworks
  • modules
  • libraries
  • templating
@rvagg
rvagg / 2012-02-20-ender-roundup.md
Created February 20, 2012 04:05
DailyJS "Ender Roundup" #3, February 2011

layout: post title: "Ender Roundup: Radio.js, one.color, Hypher" author: Rod Vagg categories:

  • ender
  • frameworks
  • modules
  • libraries
  • pubsub