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
| const guests = [].slice.call(document.querySelectorAll('tr.guest')); | |
| const itemText = element => element.querySelector('td[align=left]').textContent.replace(/\(\d*\)/g, '').trim() | |
| const guestData = guests.map(guestElement => { | |
| const name = itemText(guestElement); | |
| const message = itemText(guestElement.nextElementSibling) | |
| let giftEl = guestElement.nextElementSibling.nextElementSibling; | |
| let gifts = []; | |
| while ( giftEl.classList.contains('item') ) { |
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
| #!/bin/bash | |
| # Copyright (c) 2015-present, Facebook, Inc. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the BSD-style license found in the | |
| # LICENSE file in the root directory of this source tree. An additional grant | |
| # of patent rights can be found in the PATENTS file in the same directory. | |
| # Bundle React Native app's code and image assets. | |
| # This script is supposed to be invoked as part of Xcode build process |
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
| jQuery.map(jQuery('[data-plugin]').map((index, element) => $(element).find('strong').first().html()), value => [value]).join('\n'); |
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 | |
| class OutputTemplateDetails { | |
| function init() { | |
| add_action( 'all', [$this, 'output_template_data'], 10, 2); | |
| } | |
| function get_template_location($slug, $name) { | |
| $templates = array(); |
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
| const $ = (selector) => Array.from(document.querySelectorAll(selector)); |
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 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 | |
| function filter_search_by_post_type( $included, $engine, $terms ) { | |
| $post_type = get_query_var('post_type'); | |
| if (!is_array($post_type)) { | |
| return $included; | |
| } | |
| $posts = new \WP_Query([ | |
| 'no_found_rows' => true, |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) |
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
| <style> | |
| .measurement-container { | |
| position: fixed; | |
| z-index: 999; | |
| top: 30px; | |
| left: 30px; | |
| background: white; | |
| padding: 15px; | |
| border: 10px solid wheat; | |
| } |
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 | |
| /** | |
| * @param $content | |
| * | |
| * @return string|string[] | |
| */ | |
| function imp_wpcf7_form_elements( $content ) { | |
| $valid_autocomplete = [ | |
| 'name', |