Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
jdsimcoe / subsectionlogs
Created October 15, 2013 21:03
SubsectionLogs
15 October 2013 12:58 Warning: GenericErrorHandler 2: Division by zero on line 624 of file /var/www/vhosts/atheycreek.com/httpdocs/symphony/lib/toolkit/class.entrymanager.php
15 October 2013 12:48 Warning: GenericErrorHandler 2: Division by zero on line 624 of file /var/www/vhosts/atheycreek.com/httpdocs/symphony/lib/toolkit/class.entrymanager.php
15 October 2013 12:42 UNKNOWN: SymphonyErrorPage 0 - The page you requested does not exist. on line 650 of /var/www/vhosts/atheycreek.com/httpdocs/symphony/lib/core/class.symphony.php
15 October 2013 12:25 Warning: GenericErrorHandler 2: Division by zero on line 624 of file /var/www/vhosts/atheycreek.com/httpdocs/symphony/lib/toolkit/class.entrymanager.php
15 October 2013 12:24 Warning: GenericErrorHandler 2: Division by zero on line 624 of file /var/www/vhosts/atheycreek.com/httpdocs/symphony/lib/toolkit/class.entrymanager.php
15 October 2013 12:22 UNKNOWN: SymphonyErrorPage 0 - The page you requested does not exist. on line 650 of /var/www/vhosts/atheycreek.com/ht
@jdsimcoe
jdsimcoe / globals.xsl
Created March 29, 2013 15:43
Category All Template
<xsl:template match="/data/category-all/entry">
<xsl:call-template name="photo-by-category-entry"/>
</xsl:template>
<xsl:template name="photo-by-category-entry">
<div class="span3 photo">
<a href="{$root}/photo/category/{title/@handle}" class="photo-entry home">
<div class="metadata">
<h4>
@jdsimcoe
jdsimcoe / home.xml
Created March 29, 2013 15:38
Photo Homepage
<?xml version="1.0" encoding="utf-8" ?>
<data>
<params>
<today>2013-03-29</today>
<current-time>08:37</current-time>
<this-year>2013</this-year>
<this-month>03</this-month>
<this-day>29</this-day>
<timezone>-07:00</timezone>
<website-name>Karli Noelle Photography</website-name>
<?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.
@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" />
@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 / 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 / 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 / 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 / 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() {