Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| <?php | |
| /* | |
| Plugin Name: Custom Taxonomy DropDown | |
| Author: Hameedullah Khan | |
| Aurhot URI: http://hameedullah.com | |
| */ | |
| // change this to your taxonomy | |
| $brand_taxonomy = 'category'; |
| <VirtualHost *:80> | |
| ServerName pow | |
| ServerAlias *.dev | |
| ServerAlias *.xip.io | |
| ProxyPass / http://localhost:20559/ | |
| ProxyPassReverse / http://localhost:20559/ | |
| ProxyPreserveHost On | |
| </VirtualHost> |
| <?php | |
| // CORE/app/models/datasources/json_source.php | |
| /** | |
| * JSON Source module for CakePHP. | |
| * | |
| * @package cake | |
| */ | |
| // Had an interesting problem today by trying to load a textarea's contents as dom elements. | |
| // Here's what I did: | |
| // get my value and convert into a dom element | |
| var string = $('#article_body').val(); | |
| var element = $("<div>" + string + "</div>"); | |
| // from there, I can get what I need | |
| element.find("video").attr('src'); |
| case 'taxonomy_select': | |
| $names= wp_get_object_terms( $post->ID, $field['taxonomy'] ); | |
| $terms = get_terms( $field['taxonomy'], 'hide_empty=0' ); | |
| $selected = ''; | |
| foreach ( $terms as $term ) { | |
| if (!is_wp_error( $names ) && !empty( $names ) && !strcmp( $term->slug, $names[0]->slug ) ) { | |
| $selected = $term->slug; | |
| } else { | |
| } |
| # Reuse an existing ssh-agent on login, or create a new one. Append this to your .bashrc | |
| # I have no idea who the author of the original concept was for reusing agents. This | |
| # version also handles the case where the agent exists but has no keys. | |
| GOT_AGENT=0 | |
| for FILE in $(find /tmp/ssh-* -type s -user ${LOGNAME} -name "agent.[0-9]*" 2>/dev/null) | |
| do | |
| SOCK_PID=${FILE##*.} |
| <?php | |
| /*-----------------------------------------------------------------------------------*/ | |
| /* Conditional Logic to Detect Various Event Related Views/Pages | |
| /*-----------------------------------------------------------------------------------*/ | |
| if( tribe_is_month() && !is_tax() ) { // Month View Page | |
| echo 'were on the month view page'; | |
| } elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |
| <?php | |
| require('includes/init.php'); | |
| /** | |
| * QB_xml_request | |
| * | |
| * This class turns the posted xml file into a | |
| * key/value pair object we can work with. | |
| * | |
| * @param xml object array |
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |