Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
jdsimcoe / gist:3021016
Created June 29, 2012 22:19
More links
<ul class="entries">
<li class="entry clearfix odd first"><a href="http://atheycreek/20/events/12947/jr-high-bullwinkle-s-and-burgers/"><div class="date"><div class="month">Jul</div><div class="day">6</div></div><table class="info"><tbody><tr><td>Jr. High Bullwinkle’s and Burgers</td></tr></tbody></table></a><a href="http://atheycreek/symphony/publish/events/edit/12947/" target="blank" class="edit "><i class="icon-pencil"></i></a></li>
<li class="entry clearfix even middle"><a href="http://atheycreek/20/events/12949/jr-high-boating-bonanza/"><div class="date"><div class="month">Jul</div><div class="day">12</div></div><table class="info"><tbody><tr><td>Jr. High Boating Bonanza</td></tr></tbody></table></a><a href="http://atheycreek/symphony/publish/events/edit/12949/" target="blank" class="edit "><i class="icon-pencil"></i></a></li>
<li class="entry clearfix odd last"><a href="http://atheycreek/20/events/12952/jr-high-super-sliding-road-trip/"><div class="date"><div class="month">Aug</div><div clas
@jdsimcoe
jdsimcoe / IconFonts.md
Created July 11, 2012 20:50
Icon Font Exploration

Icon Font Overview

What I Did

I successfully created a custom icon font to showcase our ability to implement this for icons on our site, in browsers back to IE:

Icon Fonts

What I Learned

@jdsimcoe
jdsimcoe / podcast.xsl
Created July 12, 2012 20:18
iTunes Podcast
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />
@jdsimcoe
jdsimcoe / teachings.xsl
Created July 12, 2012 20:19
Teachings stuff
<xsl:for-each select="$entries">
<div class="result">
<xsl:attribute name="class">
<xsl:if test="number($pt3)">
<xsl:text>result individual</xsl:text>
</xsl:if>
</xsl:attribute>
<xsl:call-template name="teaching-entry" />
</div>
</xsl:for-each>
@jdsimcoe
jdsimcoe / podcast.xsl
Created July 12, 2012 21:39
iTunes Duration
<itunes:duration>
<xsl:analyze-string select="audio-duration" regex="^(\d+):(\d+):(\d+):(\d+)$">
<xsl:matching-substring>
<!-- Split into components -->
<xsl:variable name="hours"
select="xs:integer(regex-group(1))"/>
<xsl:variable name="minutes"
select="xs:integer(regex-group(2))"/>
<xsl:variable name="seconds"
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../utilities/master.xsl" />
</xsl:stylesheet>
@jdsimcoe
jdsimcoe / main.log
Created July 16, 2012 21:12
Manifest - Logs - Main
============================================
Log Created: 2012-07-16T06:47:25-07:00
============================================
Symphony Log
Version: 2.2.5
--------------------------------------------
16 July 2012 06:48 > Error: Date and Time could not parse the following date: sunrise-worship-01-01. It will be ignored for data source filtering.
16 July 2012 06:48 > Error: Date and Time could not parse the following date: sunrise-worship-12-01-31. It will be ignored for data source filtering.
16 July 2012 06:50 > Error: Date and Time could not parse the following date: through-the-bible-study-716-01-01. It will be ignored for data source filtering.
16 July 2012 06:50 > Error: Date and Time could not parse the following date: through-the-bible-study-716-12-01-31. It will be ignored for data source filtering.
<xsl:if test=". = 'alerts'">
<xsl:call-template name="component-alerts">
<xsl:with-param name="position" select="name($xpath)" />
<xsl:with-param name="entries" select="//alerts-entries-by-tag/entry" />
</xsl:call-template>
</xsl:if>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="entries" />
<xsl:template name="alerts">
<xsl:if test="//status-all-entries/entry[name = 'ustream-status']/content = 'live'">
<div class="alert alert-success alertLive hidden">
<a class="close" data-dismiss="alert">×</a>
@jdsimcoe
jdsimcoe / common.js
Created July 19, 2012 23:42
Alert Cookies
(function ($, document, window) {
"use strict";
$(function () {
jQuery.fn.exists = function () {
return jQuery(this).length > 0;
};