Skip to content

Instantly share code, notes, and snippets.

@donut
donut / confess.html
Created February 23, 2009 01:53 — forked from anonymous/confess
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Boil The Bunny | How Bad Could Your Ex Be?</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=site/css2}' />
@donut
donut / gist:68643
Created February 22, 2009 22:21 — forked from anonymous/gist:68641
<!-- start content -->
<div id="content_confess">
<div class="post">
<h2 class="title">Confess your story to us</h2>
<div class="entry"> {exp:weblog:entry_form weblog="default_site" return="site/index" preview="site/entry"}
<table width="100%" border="0">
<tr>
<td width="22%"><label for="title">Title:</label></td>
<td width="78%">
/***********************************************************/
/* LiveFilter Plugin */
/* Version: 1.0 */
/* Mike Merritt */
/* Updated January 4th, 2009 */
/***********************************************************/
(function($){
$.fn.liveFilter = function (filter_field, items, text) {
// Grabs the id of the element containing the filter
/*
@theme Quiet Light
@override-placeholders html, xml, css, php, php+html
@author Ian Beck
*/
@base {
color: #333;
background-color: #f5f5f5;
insertion-point-color: #000;

It's good to eat yogurt after a meal. Otherwise, all of good bacteria from yogurt will be killed before they get to your intestine.

WHoooOOA!
/
/''''\
\|/_ | O O | _\|/
| \ () / |
\___| |___/
@donut
donut / Wish List.mkd
Created December 15, 2010 03:55
Things I want but don't need.
  • One thing
@donut
donut / mail() and header().php
Created January 19, 2011 04:57
An introduction to sending emails and redirecting the user with PHP.
<?php
/* Emails in php are typically sent with the `mail()` function.You can see the
* details of that funciton here:
* http://php.net/manual/en/function.mail.php
* Then, to redirect the user you can use the `header()` function. You can
* learn more about that function here:
* http://us2.php.net/manual/en/function.header.php Here's a
* very simple solution. I'll assume you've already populated the variables I
* use.
*/
/* Copyright (c) 2009 Mustafa OZCAN (http://www.mustafaozcan.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
* Version: 1.0.2
* Requires: jquery.1.3+
*/
jQuery.fn.fixedtableheader = function (options) {
var settings = jQuery.extend({
headerrowsize: 1,
highlightrow: false,
@donut
donut / espresso-html_comment_freak.php
Created July 27, 2011 23:31
Espresso 2.0a4 PHP+HTML comment freakout
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]--><?php echo "magic!" ?>