Skip to content

Instantly share code, notes, and snippets.

View zachharkey's full-sized avatar

Zach Harkey zachharkey

  • Harkey Design
  • Deep South
View GitHub Profile
@zachharkey
zachharkey / gist:3658757
Created September 6, 2012 17:26
Codekit errors with Zen 1
2012-09-06 3:25:42.423 AM CodeKit: Attempted to set the output path for file: /Volumes/Duplex/zachharkey/Sites/hdabt/drupal/sites/default/themes/abt2/sass-extensions/zen-grids/templates/project/layout.scss, which is part of a Compass project. However, the Compass configuration file info was not available.
2012-09-06 3:25:42.424 AM CodeKit: Attempted to set the output path for file: /Volumes/Duplex/zachharkey/Sites/hdabt/drupal/sites/default/themes/abt2/sass/print.scss, which is part of a Compass project. However, the Compass configuration file info was not available.
2012-09-06 3:25:42.425 AM CodeKit: Attempted to set the output path for file: /Volumes/Duplex/zachharkey/Sites/hdabt/drupal/sites/default/themes/abt2/sass-extensions/zen-grids/stylesheets/zen/_background-grid.scss, which is part of a Compass project. However, the Compass configuration file info was not available.
2012-09-06 3:25:42.426 AM CodeKit: Attempted to set the output path for file: /Volumes/Duplex/zachharkey/Sites/hdabt/drupal/sites/defau
@zachharkey
zachharkey / gist:3658771
Created September 6, 2012 17:27
LiveReload errors with Zen
2012-09-06 12:58:45.955 PM Console: Marker - 2012-09-06 9/6 12:58 PM
2012-09-06 1:00:32.479 PM LiveReload: Change event at /Volumes/Duplex/zachharkey/Sites/hdabt/drupal/sites/default/themes/abt2/sass/modules/
2012-09-06 1:00:32.585 PM LiveReload: Scanned 144 items in 0.005s in directory /Volumes/Duplex/zachharkey/Sites/hdabt/drupal/sites/default/themes/abt2
2012-09-06 1:00:32.585 PM LiveReload: sass/modules/_layout.scss is changed item
2012-09-06 1:00:32.586 PM LiveReload: Incremental import graph update finished. Forward graph:
sass-extensions/zen-grids/templates/unit-tests/sass/zen-nested-container.scss -> sass-extensions/zen-grids/stylesheets/_zen.scss
sass/_base.scss -> sass-extensions/zen-grids/stylesheets/_zen.scss
sass/_base.scss -> sass/_custom.scss
sass/_base.scss -> sass/_base.scss
sass-extensions/zen-grids/templates/unit-tests/sass/zen-clear.scss -> sass-extensions/zen-grids/stylesheets/_zen.scss
@zachharkey
zachharkey / gist:3704581
Created September 12, 2012 05:53
View Export - Related Kickers
<?php
$view = new view();
$view->name = 'related_kickers';
$view->description = 'Displays Kickers with the same taxonomy term as current node';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Related Kickers';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
@zachharkey
zachharkey / index.html
Created October 18, 2012 22:12
Modified the .grid-pad class to maintain spacing when row overflows. This makes it possible to put, for example, 16 x 1/8 boxes in a grid and it naturally wraps to 2 rows.
<h1>Don't Overthink It Grids <em>(while we wait for flexbox)</em></h1>
<div class="grid">
<div class="col-2-3">
<div class="module">
<h3>2/3</h3>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
</div>
</div>
<div class="col-1-3">
@zachharkey
zachharkey / gist:3947847
Created October 24, 2012 18:21
RWD Frames Bookmarklet
javascript:document.write('%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Cmeta%20charset=%22utf-8%22%3E%3Ctitle%3EResponsive%20Design%20Testing%3C/title%3E%3Cstyle%3Ebody%20%7B%20margin:%2020px;%20font-family:%20sans-serif;%20overflow-x:%20scroll;%20%7D.wrapper%20%7B%20width:%206000px;%20%7D.frame%20%7B%20float:%20left;%20%7Dh2%20%7B%20margin:%200%200%205px%200;%20%7Diframe%20%7B%20margin:%200%2020px%2020px%200;%20border:%201px%20solid%20%23666;%20%7D%3C/style%3E%3C/head%3E%3Cbody%3E%3Cdiv%20class=%22wrapper%22%3E%3Cdiv%20class=%22frame%22%3E%3Ch2%3E240%3Cspan%3E%20x%20320%3C/span%3E%20%3Csmall%3E(mobile)%3C/small%3E%3C/h2%3E%3Ciframe%20src=%22'%20+%20window.location%20+%20'%22%20sandbox=%22allow-same-origin%20allow-forms%22%20seamless%20width=%22240%22%20height=%22320%22%3E%3C/iframe%3E%3C/div%3E%3Cdiv%20class=%22frame%22%3E%3Ch2%3E320%3Cspan%3E%20x%20480%3C/span%3E%20%3Csmall%3E(mobile)%3C/small%3E%3C/h2%3E%3Ciframe%20src=%22'%20+%20window.location%20+%20'%22%20sandbox=%22allow-same-origin%20allow-forms%22%20s
@zachharkey
zachharkey / README.md
Created November 20, 2012 18:08
Zen Subtheme Compass/SASS/SMACSS Breakdown

ZEN_SUBTHEME/

.jekyll/ // Jekyll source files compile into static/

fonts/ // Local Webfonts

images/ base/

@zachharkey
zachharkey / gist:4152430
Created November 27, 2012 04:44 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@zachharkey
zachharkey / Markdown.sublime-settings
Created November 27, 2012 05:18
Sublime Text 2 Syntax Specific — User Settings for Markdown
// Install Packages: MarkdownEditing, and SmartMarkdown
{
// Which file extensions go with this file type?
"extensions":
[
"md",
"mdown",
"mdwn",
"mmd",
"txt"
@zachharkey
zachharkey / README.md
Created November 28, 2012 21:28
SublimeText2 CSSTidy Custom Templates

Custom CSSTidy Templates for Sublime Text 2

The CSSTidy package for SublimeText 2 works great for toggling between different CSS formats, but none of the default options output CSS consistent with the Drupal CSS coding standards with selectors, braces and properties indented and formatted like so:

selector {
  property: value; 
}

CSSTidy allows you to add your own templates, but the documentation is sparse, then there's the matter of the Sublime Text 2 integration. If I hadn't been deeply procrastinating, I would not have had th patience to figure it all out. Here's what to do:

@zachharkey
zachharkey / phpinfo.php
Created January 15, 2013 21:35
PHP Info file
<?php
phpinfo();
?>