Skip to content

Instantly share code, notes, and snippets.

View designermonkey's full-sized avatar

John Porter designermonkey

View GitHub Profile
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
<data>
<preferences>
<sitename>Client - Portfolio</sitename>
<languages>
<entry id="1" handle="english" lang="en">English</entry>
<entry id="2" handle="francais" lang="fr">Francais</entry>
</languages>
<stylesheets><entry id="1"><url link="http://link-to-main.stylesheet.css"/></entry></stylesheets>
<scripts><entry id="1"><url link="http://link-to-main.stylesheet.css"/></entry></scripts>
<navlinks>
@designermonkey
designermonkey / config.xml
Created July 1, 2012 20:39
Proposed Symphony CMS config XML
<?xml version="1.0" encoding="UTF-8"?>
<config:core xmlns:config="http://symphony-cms.com/schemas/config/1.0">
<!--
Environment
Specify the environment of your setup
Environments can be any value, which will be passed through to
<?xml version="1.0" encoding="UTF-8"?>
<data>
<Object>
<NVMVestigingNR>12093</NVMVestigingNR>
<ObjectCompany>42209</ObjectCompany>
<ObjectAfdeling>903782</ObjectAfdeling>
<ObjectTiaraID>1207204</ObjectTiaraID>
<ObjectSystemID>1186339</ObjectSystemID>
<ObjectCode>CM10208</ObjectCode>
<ObjectDetails>
<?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:template match="data">
<h2>Άρθρα καταστατικού</h2>
<ul>
<xsl:apply-templates select="katastatiko/entry">
<xsl:sort select="katastatiko_article_number" data-type="number" order="ascending"/>
@designermonkey
designermonkey / zen_settings.py
Created May 29, 2012 15:18
Updated Zen Settings for XSL
"""
Zen Coding settings
@author Sergey Chikuyonok (serge.che@gmail.com)
@link http://chikuyonok.ru
"""
zen_settings = {
# Variables that can be placed inside snippets or abbreviations as ${variable}
# ${child} variable is reserved, don't use it
'variables': {
<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>
@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"
<?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