Skip to content

Instantly share code, notes, and snippets.

View designermonkey's full-sized avatar

John Porter designermonkey

View GitHub Profile
<?php
require_once(TOOLKIT.'/class.event.php');
Class eventcomma_separate extends Event {
public $eParamFILTERS = array(
);
@designermonkey
designermonkey / gist:769486
Created January 7, 2011 14:03
Note about .clearfix method
It seems that if the floated children have line-height set, then the phantom margin appears at the bottom. Need to clarify this in testing.
@designermonkey
designermonkey / A-Symphony-Workflow.markdown
Created February 17, 2011 00:51
Just mapping out a git workflow for Symphony development

A Symphony Workflow

I'm describing my workflow in these articles, before I start my next Symphony project. Mostly for myself, to iron out my recurring problems, it is based on solid git techniques, taking heed of advice learned from Symphony community members, many many tips on the web, and flicking through the pages of O'Reilly's Version Control with git.

The core aim of this article, is to get a good Symphony development and deployment environment using git as the basis for the organisation, and have it written down for reference.

This workflow can be applied to any project, in theory, that has a starting point being a private remote git repo.

Disclaimer

@designermonkey
designermonkey / extension.about.xml
Created October 4, 2011 12:57
Symphony extension meta XML
<?xml version="1.0" encoding="UTF-8" ?>
<extension>
<name>Search Index</name>
<description lang="en">Index text content of entries for efficient full-text search.</description>
<repository type="git">https://github.com/nickdunn/search_index</repository>
@designermonkey
designermonkey / PHP Validator
Created October 6, 2011 19:24
XSD: Validate Extension XML
<?php
class Validator
{
public $dom;
public $xsd;
public $errors;
public function __construct($xml=null, $xsd=null)
{
<?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/string-replace.xsl" />
<xsl:strip-space elements="*"/>
<?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">
<!--
A complete XML to JSON transformation utility adapted from
@designermonkey
designermonkey / Example
Created April 7, 2012 17:44
Wildcard Subdomains
# Define specified subdomains first
<VirtualHost *:80>
ServerName subdomain.domain.com
DocumentRoot "/path/to/domain.com/subdomains/subdomain"
</VirtualHost>
# Define domain and wildcard subdomains second
<VirtualHost *:80>
ServerName domain.com
DocumentRoot "/path/to/domain.com/httpdocs"
<data>
<pants>
<entry>
<content>Test 1</content>
</entry>
<entry>
<content>Test 2</content>
</entry>
<entry>
<content>Test 3</content>
<data>
<pants>
<entry>
<content>Test 1</content>
</entry>
<entry>
<content>Test 2</content>
</entry>
<entry>
<content>Test 3</content>