Skip to content

Instantly share code, notes, and snippets.

@low
low / ee_clean-install.sql
Created April 16, 2009 08:14
Cleans up a new ExpressionEngine installation
# get rid of template groups
TRUNCATE TABLE exp_template_groups;
INSERT INTO exp_template_groups
(group_name, group_order, is_site_default)
VALUES
('home', '1', 'y');
# get rid of templates
TRUNCATE TABLE exp_templates;
INSERT INTO exp_templates
#!/bin/bash
#
# This script creates symlinks from a self contained directory to theirappropriate
# places in your site directory, allowing you to maintain addons as Git submodules.
addon_dir="submodule_addons"
# FieldFrame
ln -sf ../"$addon_dir"/bk.fieldframe.ee_addon/extensions/ext.fieldframe.php ../extensions/ext.fieldframe.php
ln -sf ../../"$addon_dir"/bk.fieldframe.ee_addon/language/english/lang.fieldframe.php ../language/english/lang.fieldframe.php
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {
<?php
/**
* Custom configuration bootstrap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*
<?php
/*
EE2 hidden configuration variables
Last updated: Jun 20 2010
Obtain this list by putting print_r($this->EE->config->config); on a PHP-enabled template.
See: http://eeinsider.com/tips/view/config-overrides-for-ee-1-and-2/
*/
@adactio
adactio / datalist.html
Created January 9, 2011 17:24
Progressive enhancement with datalist
<!DOCTYPE html>
<title>Datalist test</title>
<meta charset="utf-8">
<form>
<label for="source">How did you hear about us?</label>
<datalist id="sources">
<select name="source">
<option>please choose...</option>
<option value="television">Television</option>
<option value="radio">Radio</option>
@balupton
balupton / README.md
Last active April 20, 2022 13:21
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo
@medmunds
medmunds / knockout-jquery-ui-widget.js
Created March 27, 2011 17:35
Knockout binding for jQuery.ui.widget
// knockout-jquery-ui-widget.js
// Copyright (c) 2011, Planapple, Inc.
// License: MIT (http://www.opensource.org/licenses/mit-license.php)
//
// Knockout binding for jQuery UI widgets
//
// Examples:
// <input type="submit" value="OK" data-bind='jqueryui: "button"' />
//
// Attaches a jQuery UI button widget to this button, with default options.
@shanestillwell
shanestillwell / nameparse.php
Created July 6, 2011 01:11
Parse names in PHP
<?
/*
Name: nameparse.php
Version: 0.2a
Date: 030507
First: 030407
License: GNU General Public License v2
Bugs: If one of the words in the middle name is Ben (or St., for that matter),
or any other possible last-name prefix, the name MUST be entered in
last-name-first format. If the last-name parsing routines get ahold