Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device
| <?php | |
| /** | |
| * Enable unfiltered_html capability for Editors. | |
| * | |
| * @param array $caps The user's capabilities. | |
| * @param string $cap Capability name. | |
| * @param int $user_id The user ID. | |
| * @return array $caps The user's capabilities, with 'unfiltered_html' potentially added. | |
| */ |
| <?php | |
| add_filter( 'gform_save_field_value', 'save_field_value', 10, 4 ); | |
| function save_field_value( $value, $lead, $field, $form ) { | |
| $output_ids = array(); | |
| global $files_to_sideload; | |
| if(!isset($files_to_sideload) || empty($files_to_sideload)){ | |
| $files_to_sideload = array(); | |
| } | |
| //if not the form with fields to encode, just return the unaltered value without checking the fields |
| <?php | |
| add_filter( 'gravityview_field_tick', 'convert_gravityview_field_tick' ); | |
| /** | |
| * Convert <span> to ✓ | |
| * @param string $existing_tick HTML span with `dashicons dashicons-yes` class | |
| * @return string HTML entity checkmark character (✓) | |
| */ | |
| function convert_gravityview_field_tick( $existing_tick ) { |
| /** | |
| * Get single entry pagination links | |
| * to use: call anagram_entry_pagintion(); | |
| * | |
| */ | |
| function anagram_entry_pagintion() { | |
| global $gravityview_view; | |
| $criteria['paging'] = array( | |
| 'offset' => 0, |
| tell application "System Events" to tell process "Mail" | |
| set mainWindow to a reference to the first window | |
| set rootSplitter to a reference to the first splitter group of the mainWindow | |
| set firstSplitter to a reference to the last splitter group of the rootSplitter | |
| set scrollArea to a reference to the last scroll area of the firstSplitter | |
| set scrollGroup to a reference to the first group of the scrollArea | |
| if number of groups of the scrollGroup is greater than 1 then | |
| set maybeRemoteContentGroup to a reference to the first group of the scrollGroup | |
| <?php | |
| namespace GM; | |
| /** | |
| * `WP_Query` subclass that takes a non-paginated query and split into different | |
| * paginated queries offering a transparent interface to "standard loop" usage. | |
| * | |
| * The class is not 100% transparent: | |
| * - the var `$posts` and the method `get_posts()`, that are not used directly | |
| * in standard loop usage, here don't return array of all posts, but only posts |
| <?php | |
| // remove default GF entry content function | |
| remove_action( 'gform_print_entry_content', 'gform_default_entry_content', 10 ); | |
| // bind our custom entry content function | |
| add_action( 'gform_print_entry_content', 'my_print_entry_content', 10, 3 ); | |
| function my_print_entry_content( $form, $entry, $entry_ids ) { | |
| GFEntryDetail::lead_detail_grid( $form, $entry ); | |
| } |
04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.
This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.
[Laughter]
> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation
| //The following section is an add-on to this tutorial - https://tri.be/gravity-forms-events-calendar-submissions/ | |
| //Shout to CreativeSlice.com for their initial work | |
| /* Before Starting: | |
| - Make sure you have these three plugins installed | |
| - Gravity Forms | |
| - The Events Calendar | |
| - Gravity Forms + Custom Post Types | |
| - Once Gravity Forms is installed, create a form with these fields | |
| - Single Line Text (Event Title) | |
| - Paragraph Text (Event Description) |