Skip to content

Instantly share code, notes, and snippets.

View ThatGuyCND's full-sized avatar
🥵
to exist, one must work. to work, one must have purpose. existence is pain.

Erik Baldwin ThatGuyCND

🥵
to exist, one must work. to work, one must have purpose. existence is pain.
View GitHub Profile
@ThatGuyCND
ThatGuyCND / osx-mods.md
Last active March 13, 2024 16:46
OS X Modifications

OS X Modifications I find useful

Dock

Remember, we're editing files currently in active use by the system

killall Dock
@ThatGuyCND
ThatGuyCND / JiraStoryTpls.us.js
Last active May 4, 2016 21:03
UserScript for Jira Story templates
/*jshint -W043 */
// ==UserScript==
// @name Jira Story templates
// @namespace https://gist.github.com/ThatGuyCND/0081dd22847b1247c6aa
// @description Provides a UI Dropdown for selecting the type of deliverable that provides an appropriate template for acceptance criteria.
// @include https://backlog.acquia.com/secure/*
// @version 1
// @grant none
// ==/UserScript==
@ThatGuyCND
ThatGuyCND / theme_head-tags_favicons.inc
Last active March 18, 2016 23:56
Implements HOOK_html_head_alter() in the theme so that output from http://realfavicongenerator.net/ can be downloaded, extracted into the theme's assets folder. http://www.drupalcontrib.org/api/drupal/drupal!core!modules!system!system.api.php/function/hook_html_head_alter/8
<?php
/**
* Implements hook_html_head_alter().
*
* @param array $head_elements
*/
function THEME_html_head_alter(&$head_elements) {
// Loop through $head_elements array, find link tag that matches core default
// favicon implementaiton override meta data to point to new iconography file.
@ThatGuyCND
ThatGuyCND / respond-to.scss
Created November 13, 2013 13:51
Arbitrary breakpoints via custom mixin
@mixin respond-to($primary, $secondary:min-width, $nq:false, $nq-class:lt9) {
// Convert pixel values to ems
@if unit($primary) == 'px' {
$primary: pem($primary);
}
@if type-of($secondary) == number and unit($secondary) == 'px' {
$secondary: pem($secondary);
}
// Print out Media Queries
@ThatGuyCND
ThatGuyCND / theme_colors.scss
Created October 9, 2013 00:06
One theme to rule them all!!! For use where one theme is used with different branding colors. In this example, an HTML attribute is used to dictate the colors that are loaded.
/** Theme Specific Colors
*
* + Newspapers
*/
// Frankfort Station
$FS-main: rgb(0, 88, 140);
$FS-secondary: rgb(0, 53, 93);
// Lockport Legend
$LL-main: rgb(248, 181, 43);
$LL-secondary: rgb(148, 122, 72);
@ThatGuyCND
ThatGuyCND / Susy grid classes mixin
Last active December 23, 2015 09:49
Use Susy in your prototyping tool? Here's a stupid simple Sass mixin for easy content column layouts. just include it and go!
@for $i from 1 through $total-columns {
.col__#{$total-columns}-#{$i} {
// Mobile & Tablet: on small and medium screens, all columns are full width
@include span-columns($total-columns);
// Desktop: when no longer on a medium display, obey column sizes
@include respond-to($medium) {
@include span-columns($i);
}
}