Skip to content

Instantly share code, notes, and snippets.

View netwizards's full-sized avatar

Krzysztof netwizards

View GitHub Profile
@netwizards
netwizards / CreateGrid_0_0.js
Created November 22, 2016 21:10 — forked from frederickk/CreateGrid_0_0.js
a script which allows one to create a grid (margins, rows, and columns) in illustrator similar to "create guides..." in indesign.
/**
* Create Grid
*
* Ken Frederick
* ken.frederick@gmx.de
*
* http://cargocollective.com/kenfrederick/
* http://kenfrederick.blogspot.com/
*
*/
@netwizards
netwizards / wp-query-ref.php
Created November 12, 2016 08:28 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@netwizards
netwizards / iphone_disable_autozoom_input.css
Created September 14, 2016 12:22 — forked from vedranjaic/iphone_disable_autozoom_input.css
css: iPhone - Disable auto-zoom on input fields
/*
* disable auto-zoom on iphone input field focus
* http://www.456bereastreet.com/archive/201212/ios_webkit_browsers_and_auto-zooming_form_controls/
*/
input[type='text']:focus,
input[type='number']:focus,
textarea:focus {
font-size: 16px;
}
@netwizards
netwizards / gist:5335919
Last active December 15, 2015 22:49 — forked from hitautodestruct/readme.md
wp, custom wp nav menu wp_get_nav_menu_items
<?php
$menu_name = 'main_nav';
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
$menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
?>
<nav>
<ul class="main-nav">
<?php