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
| /** | |
| * Optimize WooCommerce Scripts | |
| * Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
| function child_manage_woocommerce_styles() { | |
| //remove generator meta tag | |
| remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
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
| ruleset a60x226 { | |
| meta { | |
| name "array inside an array" | |
| description << | |
| for devex question | |
| >> | |
| author "Mike Grace" | |
| logging on | |
| } |
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
| ruleset a60x262 { | |
| meta { | |
| name "talkative rules" | |
| description << | |
| talkative rules | |
| >> | |
| author "Mike Grace" | |
| logging on | |
| } |
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
| ruleset a60x267 { | |
| meta { | |
| name "Fire rule on search" | |
| description << | |
| Fire rule on search | |
| >> | |
| author "Mike Grace" | |
| logging on | |
| } |
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
| # Use growlnotify to alert user of commit status | |
| krl() { | |
| if [[ $@ == "commit" ]]; then | |
| command krl commit | tee status.txt | growlnotify -t "KRL" --image /kynetx-x.png; | |
| cat status.txt; | |
| else | |
| command krl $@ | |
| fi; | |
| } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>beforeRunningCommand</key> | |
| <string>saveActiveFile</string> | |
| <key>bundleUUID</key> | |
| <string>AAB4FD74-73F9-11D9-B89A-000D93589AF6</string> | |
| <key>command</key> | |
| <string>growlnotify -t "TextMate" -m "committing code" -a "TextMate" |
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
| ruleset a60x274 { | |
| meta { | |
| name "click event" | |
| description << | |
| Testing click events on id and class elements and figuring out how click event handling works in KRL | |
| >> | |
| author "Mike Grace" | |
| logging on | |
| } |
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
| test = [1,2,3,4,5]; | |
| $K(test).each(function() { | |
| console.log(this + 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
| ruleset a60x275 { | |
| meta { | |
| name "Set entity var on click event" | |
| description << | |
| - Testing to see how to set entity variables on KRL click events | |
| - App can be run on different pages at different times and the click count will be saved | |
| >> | |
| author "Mike Grace" | |
| logging on | |
| } |
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
| function defaultParams(name, class, id) { | |
| if (class == null) class = "CS 101 [default]"; | |
| if (id == null) id = "Not yet set"; | |
| return "Name: " + name + ", Class: " + class + ", ID: " + id; | |
| } |
OlderNewer