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
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "strings" | |
| ) | |
| func main() { | |
| http.HandleFunc("/", func(w http.ResponseWriter, request *http.Request) { |
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 | |
| /** | |
| * This code adds a lowstock stock status to WooCommerce products. There is more code | |
| * included here for examples of usage, such as hiding the lowstock status products from | |
| * queries so they aren't displayed in shop pages,add badges to products, and update the | |
| * availability messages on product pages. | |
| * | |
| * Please see this WordPress Stack Exchange question for more information and background: | |
| * | |
| * https://wordpress.stackexchange.com/questions/348759/exclude-products-with-a-stock-lower-than-the-low-stock-threshold-from-the-shop-l |
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
| <template> | |
| <div class="hello"> | |
| <h1>{{ query }}</h1> | |
| <input | |
| ref="input" | |
| v-model="query" | |
| @focus="showMobileKeyboard" | |
| @keyup.enter="hideMobileKeyboard"/> | |
| </div> | |
| </template> |
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
| //* http://gasolicious.com/remove-tabs-keep-product-description-woocommerce/ | |
| // Location: add to functions.php | |
| // Output: removes woocommerce tabs | |
| remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); |
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
| [ | |
| { | |
| name:"HTML5", | |
| uri:"http://www.w3.org/TR/html5/single-page.html", | |
| category:"markup" | |
| }, | |
| { | |
| name:"HTML 5.1", | |
| uri:"http://www.w3.org/TR/html51/single-page.html", | |
| category:"markup" |
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 | |
| /* | |
| Plugin Name: Homepage Settings for BigBang | |
| Plugin URI: http://www.inboundnow.com/ | |
| Description: Adds additional functionality to the big bang theme. | |
| Author: David Wells | |
| Author URI: http://www.inboundnow.com | |
| */ | |
| // Specify Hooks/Filters |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html | |
| Author: Ola Sitarska <[email protected]> | |
| Copyright: Licensed under the GPL-3 (http://www.gnu.org/licenses/gpl-3.0.html) | |
| This script requires python-epub-library: http://code.google.com/p/python-epub-builder/ | |
| """ |
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
| // Query arguments | |
| $popular_args = array( | |
| 'posts_per_page' => $size, | |
| 'meta_key' => '_base_popular_posts_count', | |
| 'orderby' => 'meta_value_num' | |
| 'year' => date('Y'), // Current year | |
| 'monthnum' => date('n') // Current month | |
| ); |
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
| <figure class="flickr"> | |
| <figcaption></figcaption> | |
| </figure> |
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 | |
| /* | |
| Plugin Name: WP Invite Codes | |
| Plugin URI: http://pmg.co/ | |
| Description: Makes wordpress an invite only community. | |
| Version: n/a | |
| Author: Christopher Davis | |
| Author URI: http://pmg.co/people/chris | |
| */ |
NewerOlder