Skip to content

Instantly share code, notes, and snippets.

View jeremycaldwell's full-sized avatar
💭
Currently available for hire.

Jeremy Caldwell jeremycaldwell

💭
Currently available for hire.
View GitHub Profile
@jeremycaldwell
jeremycaldwell / SassMeister-input.scss
Created February 12, 2016 18:44
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// color() mixin:
/////////////////////////////////////////////////////
// Gets the specified color from the color palette //
// //
// Usage: //
// background: color('blue'); // #0099CE //
@jeremycaldwell
jeremycaldwell / SassMeister-input.scss
Last active February 12, 2016 18:28
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// color() mixin:
/////////////////////////////////////////////////////
// Gets the specified color from the color palette //
// //
// Usage: //
// background: color('blue'); // #0099CE //
@jeremycaldwell
jeremycaldwell / SassMeister-input.scss
Created February 8, 2016 23:39
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// Colors.
$blue: #0099CE;
$green: #39B54A;
$orange: #EB8F2D;
$pink: #C1167A;
$purple: #6D13B0;
@jeremycaldwell
jeremycaldwell / SassMeister-input-HTML.html
Created February 5, 2016 00:05
Generated by SassMeister.com.
<div class="highlight-color__0099CE">
<h1>This is the title</h1>
</div>
<div class="highlight-color__C1167A">
<h1>This is the title</h1>
</div>
<div class="highlight-color__EB8F2D">
<h1>This is the title</h1>
@jeremycaldwell
jeremycaldwell / SassMeister-input-HTML.html
Created February 4, 2016 22:31
Generated by SassMeister.com.
<div class="highlight-color__C1167A">
<h1>This is the title</h1>
</div>
<?php
/**
* Implements preprocess_field
*/
function pr_question_preprocess_field(&$vars) {
// Alter "Answered by" field.
if($vars['element']['#field_name'] == 'field_answered_by') {
<?php
/**
* Implements hook_preprocess_HOOK().
*/
function cii_preprocess_node(&$vars, $hook) {
// Optionally, run node-type-specific preprocess functions, like
// STARTERKIT_preprocess_node_page() or STARTERKIT_preprocess_node_story().
$function = __FUNCTION__ . '_' . $vars['node']->type;
if (function_exists($function)) {
<?php
/**
* Implements hook_field_formatter_info().
*/
function aspphotogallery_field_formatter_info() {
return array(
'aspphotogallery_default' => array(
'label' => t('ASP Photo Gallery'),
'field types' => array('image'),
@jeremycaldwell
jeremycaldwell / path.php
Created July 24, 2015 13:57
Drupal path
<?php
// Get path to module and generate URL to FeaturedPhotographs JS.
$path = drupal_get_path('module', 'aspcarousels');
$FeaturedPhotographsJS = file_create_url($path . '/js/FeaturedPhotographs.js');
// Load JS uncompressed to avoid issues with running Colorbox.
drupal_add_js($FeaturedPhotographsJS, array('preprocess' => FALSE))
?>