Skip to content

Instantly share code, notes, and snippets.

View jacine's full-sized avatar
😁

Jacine Luisi jacine

😁
View GitHub Profile
@jacine
jacine / drupal_theme.info
Created September 15, 2010 22:24
Organizing stylesheets in .info files.
; STYLESHEETS
;-------------------------------------------------------------------------------
; REMOVE
stylesheets[all][] = debug.css
stylesheets[all][] = defaults.css
stylesheets[all][] = fieldgroup.css
stylesheets[all][] = node.css
stylesheets[all][] = poll.css
stylesheets[all][] = quicktabs.css
@jacine
jacine / plugin.skinr.inc.php
Created November 1, 2010 20:17
Proposed syntax for Skinr (draft).
<?php
/**
* @file
* Implementation of a Skinr plugin.
*
* @todo Decide on the naming convention for this style. This depends on whether
* or not CTools will handle the plugin functionality. Currently proposed
* naming convention which doesn't use CTools, is PLUGINNAME.skinr.inc.
*/
need to add this to skinr_plugin_hooks()
// @todo Load the include files and get an array of hooks; we need to
// know which module and which plugin comprises the hook.
include_once(drupal_get_path('module', 'skinr') .'/plugins/skins/provided_skin/provided_skin.inc');
$hooks = array(
'skinr_provided_skin' => array(
'type' => 'module',
'name' => 'skinr',
'plugin' => 'provided_skin',
'path' => drupal_get_path('module', 'skinr') .'/plugins/skins/provided_skin',
@jacine
jacine / template.php
Created May 19, 2011 03:19
HTML5 Drupal 7 Tweaks
<?php
/**
* Implements hook_html_head_alter().
* - Simplify the meta charset element.
*/
function THEMENAME_html_head_alter(&$head_elements) {
$head_elements['system_meta_content_type']['#attributes'] = array(
'charset' => 'utf-8',
);
@jacine
jacine / gist:1055084
Created June 29, 2011 21:46
Drupal 8 HTML5 Initiative Meeting #3
[2011-06-28 15::51:54] » You rejoined the room.
[2011-06-28 15::52:13] » mortendk joined the chat room.
[2011-06-28 15::54:18] jacine: There's a public calendar with the events here: https://www.google.com/calendar/embed?src=drupal8html5%40gmail.com&ctz=America/New_York
[2011-06-28 15::54:37] mortendk: sweet
[2011-06-28 15::54:48] jacine: Here's the iCal link: https://www.google.com/calendar/ical/drupal8html5%40gmail.com/public/basic.ics
[2011-06-28 15::55:12] jacine: XML: https://www.google.com/calendar/feeds/drupal8html5%40gmail.com/public/basic
[2011-06-28 15::56:21] » possiblyaduck joined the chat room.
[2011-06-28 15::56:27] cosmicdreams: awesome, I can rename it too
[2011-06-28 15::56:38] cosmicdreams: to something that will attract my attention
[2011-06-28 15::56:50] mortendk: goddammit google apps ...
@jacine
jacine / form-item.html
Created July 6, 2011 21:31
Form items
<div class="form-item form-type-machine-name form-item-machine-name" style="display: none;">
<label for="edit-machine-name">Machine-readable name <span class="form-required" title="This field is required.">*</span></label>
<input type="text" id="edit-machine-name" name="machine_name" value="" size="60" maxlength="64" class="form-text required machine-name-target">
<div class="description">
A unique machine-readable name. Can only contain lowercase letters, numbers, and underscores.
</div>
</div>
<div class="form-item form-type-textfield form-item-site-slogan">
<label for="edit-site-slogan">Slogan </label>
@jacine
jacine / node--project.tpl.php
Created July 8, 2011 02:51
render awesomeness w/images.
<?php
// Hide stuff.
hide($content['comments']);
hide($content['links']);
hide($content['field_images']);
$main_image = $content['field_images'];
$main_image[0]['#image_style'] = 'project';
$count = count(element_children($main_image));
if ($count > 1) {
unset($content['field_images'][0]);
@jacine
jacine / gist:1091677
Created July 19, 2011 08:09
Drupal 8 HTML5 Initiative Meeting #4
[2011-07-12 15::55:31] rupl: WHO'S READY TO PARTAY??
[2011-07-12 15::55:38] » scottalan joined the chat room.
[2011-07-12 15::55:42] mortendk: rupl: always with you pretty boy
[2011-07-12 15::55:42] » nomonstersinme_ joined the chat room.
[2011-07-12 15::56:19] rupl: mortendk: especially with that xx-small t-shirt. that would fit me... in 1993
[2011-07-12 15::56:22] » aspilicious joined the chat room.
[2011-07-12 15::56:37] aspilicious: ericduran|mtg, Great job on those sprint patches :)
[2011-07-12 15::57:07] mortendk: rupl: yup and its even a girl version - so it would been really good for you in like 1989 ;=
[2011-07-12 15::57:27] » ericduran|mtg is now known as ericduran.
[2011-07-12 15::57:29] ericduran: aspilicious: oh thanks
@jacine
jacine / gist:1128951
Created August 6, 2011 02:47
kextstat
jacineimac:~ jacine$ kextstat
Index Refs Address Size Wired Name (Version) <Linked Against>
1 82 0xffffff7f80731000 0x683c 0x683c com.apple.kpi.bsd (11.0.0)
2 6 0xffffff7f80745000 0x3d0 0x3d0 com.apple.kpi.dsep (11.0.0)
3 108 0xffffff7f8074f000 0x1b9d8 0x1b9d8 com.apple.kpi.iokit (11.0.0)
4 113 0xffffff7f80738000 0x9b54 0x9b54 com.apple.kpi.libkern (11.0.0)
5 95 0xffffff7f80746000 0x88c 0x88c com.apple.kpi.mach (11.0.0)
6 34 0xffffff7f80747000 0x4938 0x4938 com.apple.kpi.private (11.0.0)
7 50 0xffffff7f8072e000 0x22a0 0x22a0 com.apple.kpi.unsupported (11.0.0)
8 16 0xffffff7f80b9f000 0x7000 0x7000 com.apple.iokit.IOACPIFamily (1.4) <7 6 4 3>
@jacine
jacine / template.php
Created August 17, 2011 19:15
Using hook_html_head_alter() to add or modify <head> contents.
<?php
/**
* Implements hook_html_head_alter().
*
* The purpose of this alter function is to modify the contents of the $head
* variable which prints in html.tpl.php. This variable is created in
* template_process_html() using the function drupal_get_html_head(). Here we
* add 2 <meta> tags, 1 <link> tag and simplify the <meta charset />.
*/