Skip to content

Instantly share code, notes, and snippets.

View ritcheyer's full-sized avatar
🏠
Working from home

Eric Ritchey ritcheyer

🏠
Working from home
  • E&J Design
  • Lincoln, CA
View GitHub Profile
/* ------------------------------------------------------------
Features
1. Keyboard navigation
- left/right
- escape to close
2. cover full screen with white backdrop
3. theatre image full screen / edge-to-edge while maintaining aspect ratio
4. switching between thumbnails by clicking or keyboard navigation
------------------------------------------------------------ */
@ritcheyer
ritcheyer / SassMeister-input.scss
Created February 19, 2015 22:49
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$spacing-unit: 24px;
$spacing-unit-tiny: round(0.25 * $spacing-unit);
$spacing-unit-small: round(0.5 * $spacing-unit);
$spacing-unit-large: round(2 * $spacing-unit);
@ritcheyer
ritcheyer / SassMeister-input.scss
Last active August 29, 2015 14:15
Generating Spacing around common elements via a mixin/function
// Discussion here: https://gist.github.com/csswizardry/c849d22bdc160dc615df
// Original gist: http://sassmeister.com/gist/407be8a68649e48abc6b
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$spacing-unit: 24px;
<?php
/*
Plugin Name: SVG Upload
Plugin URI: http://www.lewiscowles.co.uk
Description: Super PHP Plugin to add Full SVG Media support to WordPress, I should live in {$webroot}/wp-content/plugins/ folder ;)
Author: Lewis Cowles
Version: 1.0
Author URI: http://www.lewiscowles.co.uk/
*/
add_action('admin_init', 'add_svg_upload');
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ritcheyer
ritcheyer / gist:ebee06403f7419cfa797
Created June 16, 2015 22:58
sublime project settings
{
"folders":
[
{
"file_exclude_patterns":
[
"README*",
"*.css",
"config.rb"
// "settings.*.php",
$min = 3;
echo $min;
function hide_links_after_minimum_in_group($queue) {
$return_this_list = '<ol class="article-list">';
foreach ($queue->result as $key => $node) {
echo $min;
if($key+1 > $min) {
$return_this_list .= '<li class="article-link is-hidden">';
} else {
@ritcheyer
ritcheyer / support.html.php
Last active August 29, 2015 14:23
support.html.php
<?php
/**
* WEB-24978
* Show a max of 6 items
* If there are less than 6 items in any of the node queues, that becomes
* the max number that is displayed
*
* If there are more line items in any of the nodequeues beyond the maximum
* that should be shown, the extra ones are hidden.
*
<?php
/**
* Implements hook_preprocess_html
*/
function tesla_charge_card_html(&$variables) {
if(current_path() == 'creditapp') {
$variables["html_tag_classes"] .= 'footer-fixed ';
}
}
NameVirtualHost *:80
<Directory "/Users/eritchey/bin/tesla/6/drupal/">
Allow From All
AllowOverride All
Options +Indexes
</Directory>
<VirtualHost *:80>
ServerName "d6.teslamotors.com"
DocumentRoot "/Users/eritchey/bin/tesla/6/drupal"