Skip to content

Instantly share code, notes, and snippets.

View kev-omniata-com's full-sized avatar

kevin kev-omniata-com

View GitHub Profile
@kev-omniata-com
kev-omniata-com / style.xsl
Created February 18, 2014 01:00
xslt for content.xml
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ac="http://www.atlassian.com/schema/confluence/4/ac/"
xmlns:ri="http://www.atlassian.com/schema/confluence/4/ri/"
xmlns:acxhtml="http://www.atlassian.com/schema/confluence/4/"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="xsl ac ri acxhtml">
<!-- Transform Confluence storage format to XHTML -->
@kev-omniata-com
kev-omniata-com / content.xml
Created February 18, 2014 00:59
some xml content
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ac:confluence SYSTEM "confluence-all.dtd" [
<!ENTITY clubs "&#9827;">
<!ENTITY nbsp "&#160;">
<!ENTITY ndash "&#8211;">
<!ENTITY mdash "&#8212;">
]>
<ac:confluence
xmlns:ac="http://www.atlassian.com/schema/confluence/4/ac/"
xmlns:ri="http://www.atlassian.com/schema/confluence/4/ri/"
@kev-omniata-com
kev-omniata-com / gist:8571977
Created January 23, 2014 02:47
angular highchart
((angular, context)->
context.app
.directive('ngReportWidget', [()->
return {
restrict: 'AE',
scope: {
report_widget: '=ngReportWidget'
}
template: """
<div class="report_widget report_widget-chart report_widget-width-{{report_widget.width}} report_widget-height-{{height}}">