Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
jdsimcoe / get-archive.xsl
Created October 4, 2012 22:54
get-archive.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="archive">
<xsl:apply-templates select="year/month"/>
</xsl:template>
<xsl:template match="month">
<h4>
<xsl:call-template name="format-date">
@jdsimcoe
jdsimcoe / grunt.js
Created October 10, 2012 17:01
Athey Grunt.js
module.exports = function (grunt) {
grunt.initConfig({
recess: {
dist: {
src: ['themes/active/less/common.less'],
dest: 'themes/active/css/common.2.3.1.css',
options: {
compile: true,
compress: true
@jdsimcoe
jdsimcoe / main.log
Created October 25, 2012 16:24
Symphony Logs (AtheyCreek.com)
25 October 2012 09:15 > Error: Date and Time could not parse the following date: img-01-01. It will be ignored for data source filtering.
25 October 2012 09:15 > Error: Date and Time could not parse the following date: img-12-01-31. It will be ignored for data source filtering.
25 October 2012 09:15 > Error: Date and Time could not parse the following date: the-heart-i-can-fix-that-01-01. It will be ignored for data source filtering.
25 October 2012 09:15 > Error: Date and Time could not parse the following date: the-heart-i-can-fix-that-12-01-31. It will be ignored for data source filtering.
25 October 2012 09:16 > Error: Date and Time could not parse the following date: luke-01-01. It will be ignored for data source filtering.
25 October 2012 09:16 > Error: Date and Time could not parse the following date: luke-12-01-31. It will be ignored for data source filtering.
25 October 2012 09:16 > Error: Date and Time could not parse the following date: 1-chronicles-01-01. It will be ignored for data source filteri
@jdsimcoe
jdsimcoe / image_index_preview.publish.js
Created October 25, 2012 18:51
Image Index Preview
(function($) {
/**
* This plugin adds image preview to the publish pages.
*
* @author: Nils Hörrmann, [email protected]
* @source: http://github.com/nilshoerrmann/image_index_preview
*/
$(document).ready(function() {
@jdsimcoe
jdsimcoe / grunt.js
Created November 8, 2012 16:16
Grunt
module.exports = function (grunt) {
'use strict';
// Load local NPM tasks
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-growl');
grunt.initConfig({
lint : {
@jdsimcoe
jdsimcoe / error.log
Created November 9, 2012 17:48
Global Resource Loader (2.3) Error
Symphony Fatal Error: The page you requested does not exist.
An error occurred in /Users/jdsimcoe/Sites/dtrmn/symphony/lib/toolkit/class.datasource.php around line 243
238 }
239
240 $this->_param_output_only = ((!is_array($this->dsParamINCLUDEDELEMENTS) || empty($this->dsParamINCLUDEDELEMENTS)) && !isset($this->dsParamGROUP));
241
242 if($this->dsParamREDIRECTONEMPTY == 'yes' && $this->_force_empty_result){
243 throw new FrontendPageNotFoundException;
@jdsimcoe
jdsimcoe / doctrine.xsl
Created November 16, 2012 16:31
Description
<xsl:variable name="description-doctrine">
<xsl:text>We want to study the Scriptures so we can know God and respond in worshipful obedience to Him.</xsl:text>
</xsl:variable>
@jdsimcoe
jdsimcoe / toolkit.xsl
Created December 8, 2012 16:01
XSLT Title Case
<!--
Title Case
<xsl:variable name="CatName">
<xsl:call-template name="TitleCase">
<xsl:with-param name="text" select="translate(normalize-space($ypcategoryname),
'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" />
</xsl:call-template>
</xsl:variable>
@jdsimcoe
jdsimcoe / rss.xsl
Created December 8, 2012 19:43
Merged RSS
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl">
<xsl:import href="../utilities/date-time-advanced.xsl" />
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Name: Basic Tumbler.com API Utility
Version: 1.1
Author: Josh Nichols <[email protected]>
URL: http://www.joshnichols.com/
Description:
This utility transforms a basic Tumblr.com XML source into XHTML. Each post is grouped by date and is marked up in a way that allows for easy styling with CSS.