It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
| <?php | |
| // Get the repeater field | |
| $repeater = get_field( 'repeater_field_name' ); | |
| // Get a random rows. Change the second parameter in array_rand() to how many rows you want. | |
| $random_rows = array_rand( $repeater, 2 ); | |
| // Loop through the random rows if more than one is returned | |
| if( is_array( $random_rows ) ){ |
| (* Note 1: The 1 after menu bar may need to be changed to 2 when using multiple monitors *) | |
| (* Note 2: For 10.11 and newer “NotificationCenter” is now spelled “Notification Center”*) | |
| tell application "System Events" | |
| tell application process "SystemUIServer" | |
| try | |
| if exists menu bar item "Notification Center, Do Not Disturb enabled" of menu bar 1 of application process "SystemUIServer" of application "System Events" then | |
| (* It is disabled *) | |
| display dialog "Notifications will be turned on" buttons {"Got it"} default button 1 | |
| key down option |
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
| //Detalles de facturación | |
| function wc_billing_field_strings( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Detalles de facturación' : | |
| $translated_text = __( 'Nuevo Encabezado', 'woocommerce' ); | |
| break; | |
| } | |
| return $translated_text; | |
| } | |
| add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 ); |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| # Source for this script: http://www.conigliaro.org/script-to-configure-proper-wordpress-permissions/ | |
| # | |
| # To use this script, supply the full path to your wordpress directory |
| /** | |
| * Customize ACF path | |
| */ | |
| add_filter('acf/settings/path', function ( $path ) { | |
| $path = get_stylesheet_directory() . '/../vendor/advanced-custom-fields/advanced-custom-fields-pro/'; | |
| return $path; | |
| }); |
| /** | |
| * Bulma Tabs Walker Subnav | |
| */ | |
| add_filter('nav_menu_css_class' , __NAMESPACE__ .'\special_nav_class' , 10 , 2); | |
| function special_nav_class($classes, $item){ | |
| if( in_array('current-menu-item', $classes) ){ | |
| $classes[] = 'is-active '; | |
| } | |
| return $classes; | |
| } |
| function custom_field_excerpt($text, $words) { | |
| global $post; | |
| //$text = get_field('your_field_name'); //Replace 'your_field_name' | |
| if ( '' != $text ) { | |
| $text = strip_shortcodes( $text ); | |
| $text = apply_filters('the_content', $text); | |
| $text = str_replace(']]>', ']]>', $text); | |
| $excerpt_length = $words; // 20 words | |
| $excerpt_more = apply_filters('excerpt_more', ' foobar' . '[...]'); | |
| $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20180808 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. |
| function fadeOut(el){ | |
| el.style.opacity = 1; | |
| (function fade() { | |
| if ((el.style.opacity -= .1) < 0) { | |
| el.style.display = "none"; | |
| } else { | |
| requestAnimationFrame(fade); | |
| } | |
| })(); |