I hereby claim:
- I am piotrkrzyzek on github.
- I am piotrkrzyzek (https://keybase.io/piotrkrzyzek) on keybase.
- I have a public key ASB7zLBnTFOy_LIzoa_nvvV0EbfLqpsUzujyxgW-65JKKQo
To claim this, I am signing this object:
<?php | |
/* Setup some variables for us to use */ | |
parse_str($_SERVER['QUERY_STRING'], $urls); | |
$returnJson = []; // This is the main returned object | |
// Save the app and board params for use | |
$app = $urls['app']; | |
$board = $urls['board']; | |
$api = "YOUR API KEY HERE"; |
<!-- /snippets/collection-sorting.liquid --> | |
<div class="collection-sorting-row"> | |
<div id="sort-by-container"></div> | |
<script> | |
var currentURL = new URL(window.location); | |
var currentParams = currentURL.searchParams.get('sort_by'); | |
var urlSearchParams = new URLSearchParams( | |
window.location.search.indexOf("sort_by") > -1 | |
? window.location.search.replace(/sort_by/gi,"") | |
: window.location.search |
/** | |
* Shortcode for the yearly display items | |
* | |
* @param [array] $atts The attributes passed to the shortcode | |
* | |
* @return void | |
*/ | |
function showTheYear( $atts ){ | |
$yearStarted = if(isset($atts['yearStarted'])) intval($atts['yearStarted']) : 1999; | |
$yearsInBusiness = if(isset($atts['years']))? true : false; |
#!/bin/bash | |
# I've set this up to use my static IP, instead of dynamically getting one. | |
# Why? Because if my IP keeps changing, then how is the router supposed to constantly find it?! | |
# I set a static IP for this computer, and that is that. | |
IP="YOUR local static IP here" | |
# Default of directory you run this from, update to where ever. | |
DOCKER_CONFIGS="~/.pihole" |
alias fixWPPermissions='find ./ -type d -exec chmod 755 {} \; find ./ -type f -exec chmod 644 {} \; find ./wp-content -type d -exec chmod 775 {} \; find ./wp-content -type f -exec chmod 664 {} \;' |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
add_filter( 'woocommerce_min_password_strength', 'example_woocommerce_min_password_strength' ); | |
/** | |
* Callback for WooCommerce 'woocommerce_min_password_strength' filter. | |
* | |
* Reduce the strength requirement on the woocommerce password. | |
* | |
* 0 = Anything (not a good idea) | |
* 1 = Weak | |
* 2 = Medium | |
* 3 = Strong (default) |
@mixin optional-at-root($sel) { | |
@at-root #{if(not &, $sel, selector-append(&, $sel))} { | |
@content; | |
} | |
} | |
@mixin placeholder { | |
@include optional-at-root('::-webkit-input-placeholder') { | |
@content; | |
} |