A Pen by Lucas Dechow on CodePen.
🚴♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function get_field_object($field_name,$post_id = false) | |
{ | |
global $post, $acf; | |
if(!$post_id) | |
{ | |
$post_id = $post->ID; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MIXINS AND FUNCTIONS FROM GUFF [https://github.com/kenwheeler/guff/] | |
//Respect man these are dang useful! | |
// Strips unit suffix from value | |
@function _strip-unit($num) { | |
@if type-of($num) != "number" { | |
@warn "num: #{$num} is not a number"; | |
@return null; | |
} | |
@return $num / ($num * 0 + 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//BASED ON: | |
//BOX-SIZING BORDER-BOX FTW: http://www.paulirish.com/2012/box-sizing-border-box-ftw/ | |
//CSS: Should we change the default for overflow?: http://bocoup.com/weblog/new-overflow-default/ | |
* { | |
overflow: auto; | |
} | |
*, *:before, *:after { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( !class_exists('JMO_Custom_Nav')) { | |
class JMO_Custom_Nav { | |
public function add_nav_menu_meta_boxes() { | |
add_meta_box( | |
'wl_login_nav_link', | |
__('WishList Login'), | |
array( $this, 'nav_menu_link'), | |
'nav-menus', | |
'side', | |
'low' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//While not complete this takes care of most quantity queries scenarios I have run into | |
/** | |
* Quantity Queries | |
* @param {[int]} $amount [Amount of elements needed for this to fire] | |
* @param {[type]} $q:'most' [Can have "most", "least" and "most-least"] | |
* @return {[@content]} [Returns the wrapped expression in a content query] | |
* Usage: Embed into an element of choice wrapping the properties - compile | |
*/ | |
@mixin qq($amount, $max: 10, $q:'most', $elem: null){ | |
// $elem: & !default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias glog="git log --format='%Cgreen%h%Creset %C(cyan)%an%Creset - %s' --graph" | |
alias s="~/Sites/" | |
alias glean='git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d' | |
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' |
I hereby claim:
- I am dechowmedia on github.
- I am dechowmedia (https://keybase.io/dechowmedia) on keybase.
- I have a public key ASD1otvd08LYfq9NOlTFcBQucLJPbnzCnnRMA96mJ54t_wo
To claim this, I am signing this object:
OlderNewer