REGEX remove blank lines:
FROM: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html
FIND:
^(?:[\t ]*(?:\r?\n|\r))+
| /** | |
| * @usage: | |
| * | |
| * <RadioBox label="Foo" value="foo" v-model="MySelectedValue" /> | |
| * <RadioBox label="Bar" value="bar" v-model="MySelectedValue" /> | |
| * <RadioBox label="Baz" value="baz" v-model="MySelectedValue" /> | |
| * | |
| * data(){ | |
| * return { | |
| * MySelectedValue: "", |
| <?php | |
| /** | |
| * Populate ACF select field options with Gravity Forms forms | |
| */ | |
| function acf_populate_gf_forms_ids( $field ) { | |
| if ( class_exists( 'GFFormsModel' ) ) { | |
| $choices = []; | |
| foreach ( \GFFormsModel::get_forms() as $form ) { | |
| $choices[ $form->id ] = $form->title; |
| /** | |
| * Adding Custom GTIN Meta Field | |
| * Save meta data to DB | |
| */ | |
| // add GTIN input field | |
| add_action('woocommerce_product_options_inventory_product_data','woocom_simple_product_gtin_field', 10, 1 ); | |
| function woocom_simple_product_gtin_field(){ | |
| global $woocommerce, $post; | |
| $product = new WC_Product(get_the_ID()); | |
| echo '<div id="gtin_attr" class="options_group">'; |
| <?php global $blog_id; ?> | |
| <?php if ($blog_id == 2) { ?> | |
| <?php } elseif ($blog_id == 1) { ?> | |
| <?php } ?> | |
| // Add site-id class to body functions.php | |
| add_filter('body_class', 'multisite_body_classes'); | |
| function multisite_body_classes($classes) { | |
| $id = get_current_blog_id(); |
| <?php | |
| use Swagger\Annotations as SWG; | |
| /** | |
| * @SWG\Swagger( | |
| * basePath="/v1", | |
| * host="api.local", | |
| * schemes={"http"}, | |
| * produces={"application/json"}, |
REGEX remove blank lines:
FROM: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html
FIND:
^(?:[\t ]*(?:\r?\n|\r))+
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <barryvdh@gmail.com> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); |
| <?php | |
| // (c) Tom Van Looy <tom@ctors.net> https://ctors.net/isc_license.txt | |
| // Alle feestdagen kunnen berekend worden, de berekende zijn allemaal | |
| // afhankelijk van pasen. PHP heeft een functie easter_date(). | |
| // Makkie dus. Hoe easter_date() zelf werkt kan je hier raadplegen: | |
| // https://github.com/php/php-src/blob/master/ext/calendar/easter.c | |
| // Geen parameter? Doen we gewoon dit jaar toch. |