Skip to content

Instantly share code, notes, and snippets.

View jessebeach's full-sized avatar
🦆
mostly there

J. Renée Beach jessebeach

🦆
mostly there
  • Facebook / Meta
  • Redwood City, CA
  • 04:58 (UTC -07:00)
  • X @jessebeach
View GitHub Profile
@jessebeach
jessebeach / admin.inc
Created February 14, 2011 22:06
lines 917 - 953
// Add preview controls
$form['displays']['preview_controls'] = array(
'#theme_wrappers' => array('container'),
);
// Add a checkbox controlling whether or not this display auto-previews.
$form['displays']['preview_controls']['live_preview'] = array(
'#type' => 'checkbox',
'#title' => t('Auto preview'),
@jessebeach
jessebeach / list with dividing line
Created March 16, 2011 02:48
list with line between label and value
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Untitled</title>
<meta name="viewport" content="width=device-width" />
<style type="text/css">
li {
clear: left;
display: block;
name = acquia_base
description = Default XHTML starterkit for <a href="http://drupal.org/project/omega">Omega</a>. You should not directly edit this starterkit, but make your own copy. Information on this can be found in the <a href="http://himer.us/omega-docs">Omega Documentation</a>.
core = 7.x
engine = phptemplate
screenshot = screenshot.png
base theme = omega
; REGIONS
; REQUIRED CORE REGIONS
@jessebeach
jessebeach / gist:979735
Created May 18, 2011 22:24
acquia_com info file
name = acquia_com
description = Acquia.com theme. Sub-theme of acquia_base
core = 7.x
engine = phptemplate
screenshot = screenshot.png
base theme = acquia_base
; JAVASCRIPT
scripts[] = 'js/acquia-com.js'
@jessebeach
jessebeach / gist:979738
Created May 18, 2011 22:25
acquia_base info file
name = acquia_base
description = Acquia properties base theme. This theme should be sub-themed. It should never be published on its own.
core = 7.x
engine = phptemplate
screenshot = screenshot.png
base theme = omega
; JAVASCRIPT
scripts[] = 'js/acquia-base.js'
@jessebeach
jessebeach / proxy.html
Created June 7, 2011 03:56
jQuery proxy with arguments
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Untitled</title>
<meta name="viewport" content="width=device-width" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
@jessebeach
jessebeach / minimal plugin
Created December 22, 2011 03:59
some code
(function ($) {} (jQuery));
@jessebeach
jessebeach / gist:1534531
Created December 29, 2011 15:19
function scope
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Untitled</title>
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link type="text/plain" rel="author" href="/humans.txt" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
@jessebeach
jessebeach / gist:1571249
Created January 6, 2012 16:18
Building DOM elements
$('<div>', {
html: $('<a>', {
href: 'http://qemistry.us',
text: 'this is a link'
})
})
.appendTo($('body'));
@jessebeach
jessebeach / gist:1696765
Created January 29, 2012 02:08
Building a Callback object and registering it as an event handler.
// Create callbacks for the prep event to trigger.
var readyCallbacks = $.Callbacks();
readyCallbacks.add(addControls);
readyCallbacks.add(changeSlide);
// Event bindings
$preso.on({
'screen.preso': sizeSlides,
'load.preso': loadExternalContent,
'content.preso': prepContent,
'ready.preso': readyCallbacks.fire