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: Admin Page Framework Test - Revealer */ | |
| if ( ! class_exists( 'AdminPageFramework' ) ) { | |
| $_sFrameworkPath = dirname( dirname( __FILE__ ) ) . '/plugins/admin-page-framework/library/admin-page-framework.min.php'; | |
| if ( file_exists( $_sFrameworkPath ) ) { | |
| include( $_sFrameworkPath ); | |
| } else { | |
| trigger_error( 'Admin Page Framework: The framework path could not be located.', E_USER_NOTICE ); | |
| return; |
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
| var timeseries = {"Success":true,"ErrorMessage":"SUCCESS","TotalRows":3,"DataCollection":[{"Symbol":null,"Name":null,"NetChange":0.0,"LastClose":0.0,"TimePeriods":[{"DateTime":"2014-09-11T13:30:00","Value":17068.71,"Change":0.0,"PercentChange":0.0,"ValueChange":0.0,"IntervalMinutes":1330},{"DateTime":"2014-09-11T13:35:00","Value":17005.42,"Change":0.0,"PercentChange":0.0,"ValueChange":0.0,"IntervalMinutes":1335},{"DateTime":"2014-09-11T13:40:00","Value":17009.25,"Change":0.0,"PercentChange":0.0,"ValueChange":0.0,"IntervalMinutes":1340},{"DateTime":"2014-09-11T13:45:00","Value":17011.75,"Change":0.0,"PercentChange":0.0,"ValueChange":0.0,"IntervalMinutes":1345},{"DateTime":"2014-09-11T13:50:00","Value":17014.19,"Change":0.0,"PercentChange":0.0,"ValueChange":0.0,"IntervalMinutes":1350},{"DateTime":"2014-09-11T13:55:00","Value":17033.87,"Change":0.0,"PercentChange":0.0,"ValueChange":0.0,"IntervalMinutes":1355},{"DateTime":"2014-09-11T14:00:00","Value":17032.91,"Change":0.0,"PercentChange":0.0,"ValueChange":0.0,"I |
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
| /** | |
| * Convert degrees to radians | |
| * @author Timothy Wood @codearachnid | |
| * @link http://www.movable-type.co.uk/scripts/latlong.html | |
| * @example | |
| var latitude = 38.68551; | |
| var longitude = -96.503906; | |
| var latitude_radian = latitude.toRadians(); | |
| var longitude_radian = longitude.toRadians(); |
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
| var tempElement = document.createElement("a"); | |
| tempElement.setAttribute("href", "."); | |
| var deviceBaseURL = tempElement.href; |
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: Gravity Forms: Notification Attachments Debug | |
| Plugin URI: http://codearachnid.github.io/gf-notification-attachment/ | |
| Description: Debug the addon for Gravity Forms to add attachments to notification emails | |
| Version: 1.0 | |
| Author: Timothy Wood (@codearachnid) | |
| Author URI: http://codearachnid.com |
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
| {assign_variable:my_weblog="default_site"} | |
| {assign_variable:my_template_group="site"} | |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <!-- generator="WordPress/3.3.2" created="2012-06-25 23:09" --> | |
| <rss version="2.0" | |
| xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/" | |
| xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
| xmlns:wfw="http://wellformedweb.org/CommentAPI/" | |
| xmlns:dc="http://purl.org/dc/elements/1.1/" | |
| xmlns:wp="http://wordpress.org/export/1.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
| <?php | |
| add_filter( 'gform_is_duplicate', 'custom_gform_is_duplicate', 10, 4 ); | |
| function custom_gform_is_duplicate( $count, $form_id, $field, $value ){ | |
| global $wpdb; | |
| $lead_detail_table_name = GFFormsModel::get_lead_details_table_name(); | |
| $lead_table_name = GFFormsModel::get_lead_table_name(); | |
| $sql_comparison = "ld.value=%s"; | |
| switch(RGFormsModel::get_input_type($field)){ |
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"?> | |
| <!-- | |
| This is a WordPress eXtended RSS file generated by WordPress as an export of your site. | |
| It contains information about your site's posts, pages, comments, categories, and other content. | |
| You may use this file to transfer that content from one site to another. | |
| This file is not intended to serve as a complete backup of your site. | |
| To import this information into a WordPress site follow these steps: | |
| 1. Log in to that site as an administrator. | |
| 2. Go to Tools: Import in the WordPress admin panel. |
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 | |
| /* | |
| * For updates to this code please use the latest here: | |
| * | |
| * @link https://github.com/codearachnid/WPSE/blob/master/filter-by-author-widget-taxonomy-terms.php | |
| */ | |
| add_filter( 'widget_tag_cloud_args', 'filter_categories_by_author' ); | |
| add_filter( 'widget_categories_dropdown_args', 'filter_categories_by_author' ); |