Skip to content

Instantly share code, notes, and snippets.


Zach Schnackel zslabs

View GitHub Profile
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View gist:97c00e3e7826df643c4097f6636b4a14
// <button> reset
// 1. Remove default browser appearance for buttons.
// 2. Remove margins.
// 3. Remove borders for IE.
// 4. Normalize font and color not inherited by `button`.
// 5. Address `overflow` in IE
// 6. Normalize cursor style
zslabs / gist:88fd26cdac40a9ba0ebd92b77229491e
Created May 26, 2016
Harvest Chosen fallback mobile usability
View gist:88fd26cdac40a9ba0ebd92b77229491e
Know how falls back to a normal <select> in unsupported browsers? The following is a workaround for still allowing use of the `data-placeholder` property when initiated, but a sane fallback when not.
HTML output:
<div class="ChosenSelect">
<select required data-placeholder="Choose a fruit">
<option value="">Choose a fruit</option>
<option value="Apples">Apples</option>
<option value="Mangos">Mangos</option>
<option value="Pears">Pears</option>
zslabs /
Created Jan 15, 2014
Install Ruby (RVM)
\curl -L | bash -s stable
source /usr/local/rvm/scripts/rvm
rvm requirements
rvm install ruby
rvm use ruby --default
rvm rubygems current
View foundation-navbar-menu.php
register_nav_menus( array(
'main-menu' => 'Main Menu' // registers the menu in the WordPress admin menu editor
) );
zslabs / modernizr_enqueue
Created Nov 8, 2012
Enqueue Modernizr before all other scripts
View modernizr_enqueue
function basey_scripts_header() {
wp_enqueue_script('modernizr', get_template_directory_uri() . '/js/', '', null, false);
add_action('template_redirect','basey_scripts_header', 8);
zslabs / foundation_3.2.0_media_queries
Created Nov 5, 2012
Media queries not included in apps.scss by default in Foundation 3.2.0 (added at the bottom of this file)
View foundation_3.2.0_media_queries
// You custom settings file to override Foundation defaults
@import "settings";
// Comment out this import if you are customizing you imports below
// @import "foundation";
// ----------------------------------------
// Import specific parts of Foundation by commenting the import "foundation"
// and uncommenting what you want below. You must uncomment the following if customizing