I hereby claim:
- I am byronrode on github.
- I am byronrode (https://keybase.io/byronrode) on keybase.
- I have a public key whose fingerprint is D3BC F6AB A7F5 7A18 F532 ACD9 66DC A89E 5D46 E39A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| add_filter( 'woocommerce_get_price_html', 'themeprefix_add_sup_decimals_to_pricing' ); | |
| if(!function_exists( 'themeprefix_add_sup_decimals_to_pricing' )){ | |
| function themeprefix_add_sup_decimals_to_pricing( $price ) | |
| { | |
| if(!is_admin()){ // Check that we're not in the admin | |
| $price = strip_tags($price); | |
| $price_exploded = explode('–', $price); | |
| if(count($price_exploded) > 1) { // Variable Pricing |
| Verifying that +byronrode is my blockchain ID. https://onename.com/byronrode |
| set transmitCleanup to "/Users/byronrode/Library/Caches/Cleanup At Startup/Transmit/" | |
| do shell script "mkdir -p '" & transmitCleanup & "' | touch '" & transmitCleanup & ".tm_properties'" with administrator privileges | |
| do shell script "echo 'projectDirectory = \"$CWD\"' > '" & transmitCleanup & ".tm_properties'" |
| <?php | |
| /* | |
| * | |
| * @author: Byron Rode | |
| * @description: Allows developer/client only customization previews with WordPress. Uses a simple | |
| * cookie to handle previews, so don't go showing sensitive data. PS. I am NOT responsible | |
| * if you do. | |
| * @license: Free as in Beer | |
| * | |
| */ |
| /* Parent CSS file*/ | |
| .my_cool_css_class {background:#fff;border-radius:5px;box-shadow:1px 1px 2px #000;color:#ff2361;padding:0px 10px;line-height:25px;height:25px;width:100%;} | |
| /* This is WRONG. Very WRONG. */ | |
| /* Child Theme or Custom CSS file */ | |
| .my_cool_css_class {background:#2d2d2d;border-radius:5px;box-shadow:1px 1px 2px #000;color:#fff;padding:0px 10px;line-height:25px;height:25px;width:100%;} | |
| /* This is RIGHT. Very RIGHT. */ | |
| /* Child Theme or Custom CSS file */ | |
| .my_cool_css_class {background:#2d2d2d;color:#fff;} |
| UPDATE wp_postmeta as pm, wp_posts as p | |
| SET pm.meta_value = 500 /* <new price> */ | |
| WHERE pm.post_id = p.ID | |
| AND p.post_type = 'product_variation' | |
| AND pm.meta_key = '_price' | |
| AND pm.meta_value = 1000 /* <old price> */ | |
| AND p.post_status = 'publish'; |
| <?php | |
| require 'modules/lessphp/lessc.inc.php'; | |
| try { | |
| lessc::ccompile(get_stylesheet_directory() . '/style.less', get_stylesheet_directory() . '/style.css'); | |
| } catch (exception $ex) { | |
| exit('lessc fatal error:<br />'.$ex->getMessage()); | |
| } | |
| ?> |
| on perform_mail_action(info) | |
| set selectedMessages to |SelectedMessages| of info | |
| tell application "Mail" | |
| repeat with eachMessage in selectedMessages | |
| set theSubject to the subject of the eachMessage | |
| set theContent to the content of the eachMessage | |
| set tid to AppleScript's text item delimiters |
| <?php | |
| /* | |
| @description: Adding this to your functions.php will allow you to use custom field values in | |
| your post via shortcode. Useful for when you need to add javascript to a post. | |
| @usage: [custom_field name="name_of_custom_field"] | |
| @returns: Custom Field Value | |
| @author: Byron Rode | |
| @license: Free to use, modify, whatever. | |
| */ |