Skip to content

Instantly share code, notes, and snippets.

Zach Schnackel zslabs

Block or report user

Report or block zslabs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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 https://hyper.is#cfg 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
zslabs / gist:88fd26cdac40a9ba0ebd92b77229491e
Created May 26, 2016
Harvest Chosen fallback mobile usability
View gist:88fd26cdac40a9ba0ebd92b77229491e
Know how https://harvesthq.github.io/chosen/ 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
zslabs / provision.sh
Created Jan 15, 2014
Install Ruby (RVM)
View provision.sh
\curl -L https://get.rvm.io | 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
<?php
add_theme_support('menus');
/*
http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus( array(
'main-menu' => 'Main Menu' // registers the menu in the WordPress admin menu editor
) );
@zslabs
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/modernizr.foundation.js', '', null, false);
}
add_action('template_redirect','basey_scripts_header', 8);
@zslabs
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
You can’t perform that action at this time.