brew install cmake
brew install python
sudo easy_install pip
Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line
PATH="/usr/local/share/python/:$PATH"
| // check for clear-cart get param to clear the cart, append ?clear-cart to any site url to trigger this | |
| add_action( 'init', 'woocommerce_clear_cart_url' ); | |
| function woocommerce_clear_cart_url() { | |
| if ( isset( $_GET['clear-cart'] ) ) { | |
| global $woocommerce; | |
| $woocommerce->cart->empty_cart(); | |
| } | |
| } |
| <?php | |
| Copied from http://fatlabmusic.com/blog/2009/08/12/how-to-fix-wp-http-error-name-lookup-timed-out/ | |
| //adjustments to wp-includes/http.php timeout values to workaround slow server responses | |
| add_filter('http_request_args', 'bal_http_request_args', 100, 1); | |
| function bal_http_request_args($r) //called on line 237 | |
| { | |
| $r['timeout'] = 15; | |
| return $r; | |
| } | |
| -- AppleScript -- | |
| -- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
| -- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| -- This method is as good as its JXA counterpart. | |
| -- Webkit variants include "Safari", "Webkit", "Orion". | |
| -- Specific editions are valid, including "Safari Technology Preview". | |
| -- "Safari" Example: | |
| tell application "Safari" to return name of front document |
| /* Column Classes | |
| Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
| --------------------------------------------- */ | |
| .five-sixths, | |
| .four-sixths, | |
| .one-fourth, | |
| .one-half, | |
| .one-sixth, | |
| .one-third, |
| admin account info" filetype:log | |
| !Host=*.* intext:enc_UserPassword=* ext:pcf | |
| "# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
| "AutoCreate=TRUE password=*" | |
| "http://*:*@www” domainname | |
| "index of/" "ws_ftp.ini" "parent directory" | |
| "liveice configuration file" ext:cfg -site:sourceforge.net | |
| "parent directory" +proftpdpasswd | |
| Duclassified" -site:duware.com "DUware All Rights reserved" | |
| duclassmate" -site:duware.com |
| tell application "Google Chrome" | |
| set the clipboard to URL of active tab of front window as text | |
| end tell |
| <?php | |
| // Do not copy opening php tag above | |
| add_action( 'wp_enqueue_scripts', 'wsm_custom_stylesheet', 20 ); | |
| function wsm_custom_stylesheet() { | |
| wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css' ); | |
| } |
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Check Terms & Conditions | |
| * Plugin URI: https://gist.github.com/BFTrick/7789974 | |
| * Description: Make the Terms & Conditions checkbox checked by default | |
| * Author: Patrick Rauland | |
| * Author URI: http://patrickrauland.com/ | |
| * Version: 1.0 | |
| * | |
| * This program is free software: you can redistribute it and/or modify |