Skip to content

Instantly share code, notes, and snippets.

View dbonneville's full-sized avatar

Douglas Bonneville dbonneville

View GitHub Profile
@dbonneville
dbonneville / gist:4039515
Created November 8, 2012 15:36
dbal mapping
$TYPO3_CONF_VARS['EXTCONF']['dbal']['mapping'] = array(
'cachingframework_cache_hash' => array(
'mapTableName' => 'cf_cache_hash',
),
'cachingframework_cache_pages' => array(
'mapTableName' => 'cf_cache_pages',
),
'cachingframework_cache_hash_tags' => array(
'mapTableName' => 'cf_cache_hash_tags',
),
@dbonneville
dbonneville / gist:2995963
Created June 26, 2012 14:04
Video playlist CSS and HTML
.video-holder {
float: left;
width: 636px;
}
.video-holder .video-header {
border-top: 1px solid #B4CC95;
height: 14px;
margin: 10px 0 0;
overflow: auto;
padding: 5px;
@dbonneville
dbonneville / random-color-scheme-gradient.jsx
Created June 8, 2012 07:54
Gorgeous Random Color Scheme Gradient Generator for Photoshop
// by Douglas Bonneville | bonfx.com
// http://bonfx.com/gorgeous-random-color-scheme-gradient-generator-for-photoshop
// preferences
app.preferences.rulerUnits = Units.PIXELS
// constants
var lenWidth = 500
var quad = lenWidth/2;
@dbonneville
dbonneville / gist:955746
Created May 4, 2011 18:37
pyr global nav
# set up the nav on the far right that links to all the sites
lib.utilityNav = COA
lib.utilityNav {
10 = HTML
10.value = <div id="nav-util">
20 = HTML
20.value = <p><a href="https://fmtclogin.fidelity.com/">Client Login</a> &nbsp;|&nbsp;
30 = HTML
30.value = <ul class="nav" id="nav-one">
40 = HTML
@dbonneville
dbonneville / gist:829685
Created February 16, 2011 16:42
sidebar FCE xml
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<ROOT type="array">
<tx_templavoila type="array">
<title>ROOT</title>
<description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
</tx_templavoila>
@dbonneville
dbonneville / gist:814648
Created February 7, 2011 16:23
Pyramis headerData
//configure RealURL
//config.simulateStaticDocuments = 0
//config.baseURL = http://www.pyramis.com
//config.tx_realurl_enable = 1
page = PAGE
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
page.10.disableExplosivePreview = 1
page.bodyTag >
page.bodyTagCObject = HTML
page.bodyTagCObject.value.field = alias//title
page.bodyTagCObject.value.case = lower
page.bodyTagCObject.value.wrap = <body id="|">
...which gives me
<body id="about us">
tvlib.nav = HMENU
tvlib.nav.entryLevel = 0
tvlib.nav {
1 = TMENU
1.dataWrap = <li id="page-{field:uid}">|</li>
}