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
  • 03:40 (UTC -07:00)
  • X @jessebeach
View GitHub Profile
Former and latter fun!
* It is up to the class implementing this interface to manage where the
* information comes from. For example, field.module provides an implementation
* based on two levels of configuration. It allows the site administrator to add
* custom fields to any entity type and bundle via the "field_config" and
* "field_instance_config" configuration entities. The former for storing
* configuration that is independent of which entity type and bundle the field
* is added to, and the latter for storing configuration that is specific to the
* entity type and bundle.
<ul class="dropdown-menu" role="menu">
<li class="heading cfx">
<span class="left">Google Apps Domain</span>
<span class="mid">Users</span>
<span class="right">Status</span>
</li>
<li class="cfx">
<a href="/settings/domains/1/dashboard">
<span class="left">backupifydevman1.com</span>
<span class="mid">9</span>
@jessebeach
jessebeach / gist:dc16a6ca5e9d92a9f66d
Created October 27, 2014 14:48
JSON-LD response
HTTP/1.1 200 OK
Content-Type: application/json
Link: <http://api.example.com/person.jsonld>;rel="http://www.w3.org/ns/json-ld#context"
{
"n": "Jenny Gallegos",
"photo_link": "http://www.example.com/img/omjennyg"
}
Example taken from: Richardson, Leonard. "Restful Web APIs".
@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));