Snippets Collections
/**
 * Fully Disable Gutenberg editor.
 */
add_filter('use_block_editor_for_post_type', '__return_false', 10);
// Don't load Gutenberg-related stylesheets
add_action( 'wp_enqueue_scripts', 'remove_block_css', 100 );
function remove_block_css() {
wp_dequeue_style( 'wp-block-library' ); // WordPress core
wp_dequeue_style( 'wp-block-library-theme' ); // WordPress core
wp_dequeue_style( 'wc-block-style' ); // WooCommerce
}
/**
 * Remove The Elementor Hello Theme Page Title
 */
function mastaklance_disable_page_title( $return ) {
return false;
}
add_filter( 'hello_elementor_page_title', 'mastaklance_disable_page_title' );
/**
 * custom pagination for jet engine
 */
function jetpagination_elementor_shortcode( $atts ) {
    the_posts_pagination( array(
	'mid_size' => 1,
    'end_size' => 1,
)); 
}
add_shortcode( 'jet_engine_pagination', 'jetpagination_elementor_shortcode');
/**
 * remove inline styles and noscript styles (в header удалить лишнее)
 */
add_action( 'wp_print_styles', function(){
	wp_style_add_data( 'woocommerce-inline', 'after', '' );
});
add_action( 'init', 'remove_custom_action' );
function remove_custom_action(){
remove_action( 'wp_head', 'wc_gallery_noscript' );
}
// Hide or remove the notice "Product removed. Undo?"
add_filter('woocommerce_cart_item_removed_notice_type', '__return_null');
// Hide “Added to Your Cart” Message
add_filter( 'wc_add_to_cart_message_html', '__return_false' );
// Hide “Cart updated” Message
add_filter('woocommerce_add_message', '__return_false');
/**
 * Redirect default Password Reset URL
 */
add_filter( 'lostpassword_url',  'my_lostpassword_url', 10, 0 );
function my_lostpassword_url() {
    return site_url('/password-reset/');
}
df.pivot_table(values='col1', index='col2', aggfunc=[np.median, np.mean])  # index can also be list of columns

# other way
df.pivot_table(values='col1', index='col2', columns='col3', fill_value=0, margins=True)  # margins for summary statistic
/**
 * remove “SEO by Rank Math” from the page code
 */
add_filter( 'rank_math/frontend/remove_credit_notice', '__return_true' );
/**
 * Remove Woo Styles and Scripts from non-Woo Pages
 */
add_action( 'template_redirect', 'bt_remove_woocommerce_styles_scripts', 999 );

function bt_remove_woocommerce_styles_scripts() {

        // Skip Woo Pages
        if ( is_woocommerce() || is_cart() || is_checkout() || is_account_page() ) {
                return;
        }
        // Otherwise...
        remove_action('wp_enqueue_scripts', [WC_Frontend_Scripts::class, 'load_scripts']);
        remove_action('wp_print_scripts', [WC_Frontend_Scripts::class, 'localize_printed_scripts'], 5);
        remove_action('wp_print_footer_scripts', [WC_Frontend_Scripts::class, 'localize_printed_scripts'], 5);
}
/**
 * Hide “All Products > Tags” Link from Admin Menu
 */
add_action( 'admin_menu', 'ml_hide_product_tags_admin_menu', 9999 );

function ml_hide_product_tags_admin_menu() {
	remove_submenu_page( 'edit.php?post_type=product', 'edit-tags.php?taxonomy=product_tag&post_type=product' );
}

/**
 * Remove Product tags Metabox
 */
add_action( 'admin_menu', 'ml_hide_product_tags_metabox' );

function ml_hide_product_tags_metabox() {
	remove_meta_box( 'tagsdiv-product_tag', 'product', 'side' );
}

/**
 * Remove Tags Column from All Products page
 */
add_filter('manage_product_posts_columns', 'ml_hide_product_tags_column', 999 );

function ml_hide_product_tags_column( $product_columns ) {
	unset( $product_columns['product_tag'] );
	return $product_columns;
}
 
/**
 * Remove Product Tags Textarea from Quick Edit and Bulk Edit
 */ 
add_filter( 'quick_edit_show_taxonomy', 'ml_hide_product_tags_quick_edit', 10, 2 );

function ml_hide_product_tags_quick_edit( $show, $taxonomy_name ) {

    if ( 'product_tag' == $taxonomy_name )
        $show = false;

    return $show;
		
}
 
/**
 * Remove Product Tag Cloud Widget
 */ 
add_action( 'widgets_init', 'ml_remove_product_tag_cloud_widget' );

function ml_remove_product_tag_cloud_widget(){
	unregister_widget('WC_Widget_Product_Tag_Cloud');
}
/**
 * Hide Marketplace Suggestions in WooCommerce
 */
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false' );
/**
 * Remove Virtual and Downloadable Checkboxes from the Product Data Metabox
 */
add_filter( 'product_type_options', function( $options ) {

	// remove "Virtual" checkbox
	if( isset( $options[ 'virtual' ] ) ) {
		unset( $options[ 'virtual' ] );
	}

	// remove "Downloadable" checkbox
	if( isset( $options[ 'downloadable' ] ) ) {
		unset( $options[ 'downloadable' ] );
	}

	return $options;

} );


/**
 * Remove Downloadable and Virtual Dropdown Options from Product Type Filter
 */
add_filter( 'woocommerce_products_admin_list_table_filters', function( $filters ) {

	if( isset( $filters[ 'product_type' ] ) ) {
		$filters[ 'product_type' ] = 'misha_product_type_callback';
	}
	return $filters;

});

function misha_product_type_callback(){
	$current_product_type = isset( $_REQUEST['product_type'] ) ? wc_clean( wp_unslash( $_REQUEST['product_type'] ) ) : false;
	$output               = '<select name="product_type" id="dropdown_product_type"><option value="">Filter by product type</option>';

	foreach ( wc_get_product_types() as $value => $label ) {
		$output .= '<option value="' . esc_attr( $value ) . '" ';
		$output .= selected( $value, $current_product_type, false );
		$output .= '>' . esc_html( $label ) . '</option>';
	}

	$output .= '</select>';
	echo $output;
}
/**
 * Remove Tabs from My Account menu
 */

add_filter ( 'woocommerce_account_menu_items', 'ml_remove_my_account_links' );
function ml_remove_my_account_links( $menu_links ){
	
	unset( $menu_links['downloads'] ); // Addresses
	
	//unset( $menu_links['edit-address'] ); // Addresses
	//unset( $menu_links['dashboard'] ); // Remove Dashboard
	//unset( $menu_links['payment-methods'] ); // Remove Payment Methods
	//unset( $menu_links['orders'] ); // Remove Orders
	//unset( $menu_links['downloads'] ); // Disable Downloads
	//unset( $menu_links['edit-account'] ); // Remove Account details tab
	//unset( $menu_links['customer-logout'] ); // Remove Logout link
	
	return $menu_links;
	
}
/**
 * Change the breadcrumb home text from "Home" to "Shop"
 */
add_filter( 'woocommerce_breadcrumb_defaults', 'woo_change_breadcrumb_home_text' );
function woo_change_breadcrumb_home_text( $defaults ) {
	$defaults['home'] = 'Shop';

	return $defaults;
}

add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadrumb_home_url' );
/**
 * Change the breadcrumb home link URL from / to /shop.
 * @return string New URL for Home link item.
 */
function woo_custom_breadrumb_home_url() {
	return '/shop/';
}
/**
 * Remove Product Title From Breadcrumbs
 */
add_filter( 'woocommerce_get_breadcrumb', 'bbloomer_single_product_edit_prod_name_breadcrumbs', 9999, 2 );
 
function bbloomer_single_product_edit_prod_name_breadcrumbs( $crumbs, $breadcrumb ) {
    
   if ( is_product() ) {
      global $product;
      $index = count( $crumbs ) - 1; // product name is always last item
      $value = $crumbs[$index];
      $crumbs[$index][0] = null;
   }
    
   return $crumbs;
}

/**
 * Remove Separators (add custom by css)
 */
add_filter( 'woocommerce_breadcrumb_defaults', 'wcc_change_breadcrumb_delimiter' );
function wcc_change_breadcrumb_delimiter( $defaults ) {
	// Change the breadcrumb delimeter from '/' to null
	$defaults['delimiter'] = null;
	return $defaults;
}
/**
 * Completely Remove Product Sorting Dropdown
 */
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
/**
 * Remove “Showing all X results” from Shop and Product Archive Pages
 */
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
/**
 * Change field position in checkout page
 */
add_filter( 'woocommerce_default_address_fields', 'mrks_woocommerce_default_address_fields' );

function mrks_woocommerce_default_address_fields( $fields ) {

    // default priorities: 
    // 'first_name' - 10
    // 'last_name' - 20
    // 'company' - 30
    // 'country' - 40
    // 'address_1' - 50
    // 'address_2' - 60
    // 'city' - 70
    // 'state' - 80
    // 'postcode' - 90

  // e.g. move 'company' above 'first_name':
  // just assign priority less than 10
  $fields['postcode']['priority'] = 41;

  return $fields;
}
/**
 * Display latest orders on WooCommerce "My account" Dashboard
 */
function action_woocommerce_account_dashboard() {
    // Set limit
    $limit = 1;
    
    // Get customer $limit last orders
    $customer_orders = wc_get_orders( array(
        'customer'  => get_current_user_id(),
        'limit'     => $limit
    ) );
    
    // Count customers orders
    $count = count( $customer_orders );
    
    // Greater than or equal to
    if ( $count >= 1 ) {
        // Message
        echo '<p style="margin-bottom:24px;">' . sprintf( _n( 'Your last order', 'Your last %s orders', $count, 'woocommerce' ), $count ) . '</p>';
        ?>
        <table class="woocommerce-orders-table woocommerce-MyAccount-orders shop_table shop_table_responsive my_account_orders account-orders-table">
            <thead>
                <tr>
                    <?php foreach ( wc_get_account_orders_columns() as $column_id => $column_name ) : ?>
                        <th class="woocommerce-orders-table__header woocommerce-orders-table__header-<?php echo esc_attr( $column_id ); ?>"><span class="nobr"><?php echo esc_html( $column_name ); ?></span></th>
                    <?php endforeach; ?>
                </tr>
            </thead>

            <tbody>
                <?php
                foreach ( $customer_orders as $customer_order ) {
                    $order      = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
                    $item_count = $order->get_item_count() - $order->get_item_count_refunded();
                    ?>
                    <tr class="woocommerce-orders-table__row woocommerce-orders-table__row--status-<?php echo esc_attr( $order->get_status() ); ?> order">
                        <?php foreach ( wc_get_account_orders_columns() as $column_id => $column_name ) : ?>
                            <td class="woocommerce-orders-table__cell woocommerce-orders-table__cell-<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>">
                                <?php if ( has_action( 'woocommerce_my_account_my_orders_column_' . $column_id ) ) : ?>
                                    <?php do_action( 'woocommerce_my_account_my_orders_column_' . $column_id, $order ); ?>

                                <?php elseif ( 'order-number' === $column_id ) : ?>
                                    <a href="<?php echo esc_url( $order->get_view_order_url() ); ?>">
                                        <?php echo esc_html( _x( '#', 'hash before order number', 'woocommerce' ) . $order->get_order_number() ); ?>
                                    </a>

                                <?php elseif ( 'order-date' === $column_id ) : ?>
                                    <time datetime="<?php echo esc_attr( $order->get_date_created()->date( 'c' ) ); ?>"><?php echo esc_html( wc_format_datetime( $order->get_date_created() ) ); ?></time>

                                <?php elseif ( 'order-status' === $column_id ) : ?>
                                    <?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?>

                                <?php elseif ( 'order-total' === $column_id ) : ?>
                                    <?php
                                    /* translators: 1: formatted order total 2: total order items */
                                    echo wp_kses_post( sprintf( _n( '%1$s for %2$s item', '%1$s for %2$s items', $item_count, 'woocommerce' ), $order->get_formatted_order_total(), $item_count ) );
                                    ?>

                                <?php elseif ( 'order-actions' === $column_id ) : ?>
                                    <?php
                                    $actions = wc_get_account_orders_actions( $order );

                                    if ( ! empty( $actions ) ) {
                                        foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
                                            echo '<a href="' . esc_url( $action['url'] ) . '" class="woocommerce-button button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>';
                                        }
                                    }
                                    ?>
                                <?php endif; ?>
                            </td>
                        <?php endforeach; ?>
                    </tr>
                    <?php
                }
                ?>
            </tbody>
        </table>
        <?php
    } else {
        ?>
        <div class="woocommerce-message woocommerce-message--info woocommerce-Message woocommerce-Message--info woocommerce-info">
        <a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"><?php esc_html_e( 'Browse products', 'woocommerce' ); ?></a>
        <?php esc_html_e( 'No order has been made yet.', 'woocommerce' ); ?>
        </div>
        <?php
    }
}
add_action( 'woocommerce_account_dashboard', 'action_woocommerce_account_dashboard' );
# check for missing values in df
df.isna().any() # can also use .any().sum()

# option 2
df['col1'].isnull().sum()

# drop missing values
df.dropna()

# fill missing values
df.fillna(0)

# fill missing values with mean (or other statistical measures)
co2_mean = df['col1'].mean()
df = df.fillna({'col2': co2_mean})

# plot missing values (nice!)
import missingno as msno
import matplotlib.pyplot as plt

msno.matrix(df)
plt.show()
dayjs().format() 
// current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'

dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]') 
// 'YYYYescape 2019-01-25T00:00:00-02:00Z'

dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
background-image: url(/images/building.jpg);
background-repeat: no-repeat;
width: 10px;
height: 20px;
background-image: url(path);
background-repeat: no-repeat;
width: 10px;
height: 20px;
function cw_custom_checkbox_fields( $checkout ) {
        echo '<div class="cw_custom_class"><h3>'.__('אני מאשר/ת את תקנון האתר/חנות: ').'</h3>';
        woocommerce_form_field( 'custom_checkbox', array(
            'type'          => 'checkbox',
            'label'         => __('אני מאשר/ת את תקנון האתר/חנות'),
            'required'  => true,
        ), $checkout->get_value( 'custom_checkbox' ));
        echo '</div>';
    }
<div class="quantity">
 <label for="Quantity">QUANTITY:</label>
 <span id="minus" class="minus">-</span>
 <input type="text" name="quantity" id="quantity" min="1" value="1">
 <span id="plus" class="plus">+</span>
</div>
span {
 cursor:pointer; 
}
.minus{
	margin-left: 1rem;
}
.minus, .plus{
	width:20px;
	height: 34px;
	background: #F1F1F1;
	padding:8px 5px 8px 5px;
	border:1px solid #F1F1F1;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}
.quantity input{
	height: 34px;
	max-width: 4rem;
	text-align: center;
	font-size: 26px;
	border:1px solid #F1F1F1;
	background: #F1F1F1;
	display: inline-block;
	vertical-align: middle;
}
<script src="{{ 'quantity.js' | asset_url }}" defer></script>
let minusBtn = document.getElementById("minus");
let count = document.getElementById("quantity");
let plusBtn = document.getElementById("plus");

let countNum = 1;
count.innerHTML = countNum;

minusBtn.addEventListener("click", () => {
	if(count.value >= 1){
		countNum -= 1;
		count.value = countNum;
	}else{
		return
	}

});

plusBtn.addEventListener("click", () => {
	countNum += 1;
	count.value = countNum;
});
Write-Host "These characters are overwritten.`rI want this text instead "
#avia-menu > li:nth-child(1) > a .avia-menu-text:before {
content:"\e803";
font-family: 'entypo-fontello';
position: absolute;
left: 0;
}
div {
background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 0;
    padding-top: 66.64%;
}
/*WIDE SCREEN SUPPORT*/
@media screen and (min-width: 769px) { 
    div {
        background-image: url('이미지 URL');
        background-size: cover;
        background-repeat: no-repeat;
        width: 100%;
        height: 0;
        padding-top: 66.64%; /* (img-height / img-width * container-width) */
                    /* (853 / 1280 * 100) */
    }
}

/*MOBILE SUPPORT*/
@media screen and (max-width: 768px) {
    div {
        background-image: url('이미지 URL');
        background-size: contain;
        background-repeat: no-repeat;
        width: 100%;
        height: 0;
        padding-top: 66.64%; /* (img-height / img-width * container-width) */
                    /* (853 / 1280 * 100) */
    }
}
*mini-cart css strat*/
/*cart*/
.cstm_cart_prise_mini, .amount sapn {
margin-top: 0px !important;
}
.cart-sidebar-head {
background-color: #F5EEE6;
}
.cart-sidebar-head {
border-bottom: unset;
height: 70px;
}
li.woocommerce-mini-cart-item.mini_cart_item.mini_cart_item {
border-bottom: 1px solid #ddd;
}
span.shop-cart-count {
display: none;
}
#shop-cart-sidebar {
padding: 0 0px 30px;
padding-left: 2px;
padding-right: 2px;
}
#shop-cart-sidebar h4.cart-sidebar-title {
letter-spacing: 0px;
color: #2C2026 !important;
opacity: 1;
font-size:20px;
padding-left: 13px;
}
.remove_from_cart_button::before {
content: "remove";
display: block;
color: #68515DD9;
font-size: 12px;
line-height: 1;
text-decoration: underline;

}
.cart-sidebar-content .remove_from_cart_button {
opacity: unset;
right: 5px;
top: 5px;
}
.product_list_widget .remove_from_cart_button {
width: auto;
height: auto;
float: right;
right: 0;
top: 10px;
font-size: 0;
z-index: 2;
color: firebrick;
}
.mini-cart-product-infor .mini-cart-quantity {
display: flex;
height: 24px;
order: 2;
}
.woocommerce-mini-cart span.woostify-svg-icon.icon-close {
display: none;
}
ul.woocommerce-mini-cart.cart_list.product_list_widget {
padding-left: 11px;
padding-right: 13px;
}
.mini-cart-product-infor .mini-cart-product-qty {
border: 1px solid #573F4C;
}
input.input-text.qty {
border: 1px solid #573F4C;
}
.mini-cart-product-infor .mini-cart-product-qty .woostify-svg-icon svg {

color: #000000A5 !important;
opacity: 1;
letter-spacing: 0px;
size: 16px !important;
}
.woocommerce-mini-cart__buttons .button {
color: #fff;
font-size: 12px;
font-weight: 700;
background: #2C2026 0% 0% no-repeat padding-box;
opacity: 1;
margin-top: 11px;
margin-left: 10px;
margin-right: 10px;
}
.cart-sidebar-content .woocommerce-mini-cart__total {
margin-left: 10px;
margin-right: 10px;
}
.custm_mini_sub_total_cart {
display: block;
position: relative;

}
.custm_mini_sub_total_cart strong {
color: #000000CB;
opacity: 1;
font-size: 15px;
font-weight: 400;
}
.custm_mini_sub_total_cart span {
color: #000000 !important;
opacity: 1;
font-size: 16px;
font-weight: 600;
}
p.shipping-total.custom_shipping_total_mini {
padding-top: 16px;
padding-left: 10px;
display: flex;
}
span.totals.cstm_total_value {
margin-left: auto;
margin-right: 10px;
}
.cart-sidebar-content .woocommerce-mini-cart__total {
border-top: unset;

}
p.your-class-name.cstm_total_price_mini_cart.custom_shipping_total_mini {
display: flex;
}
p.custom_shipping_total_mini {
margin-bottom: -1px;
}
.cart-sidebar-content .woocommerce-mini-cart__buttons a.checkout {
height: 50px;
font-size: 16px;
font-weight: 400;
}
input.input-text.qty {
border-left: none;
border-right: navajowhite;
}
.product_list_widget a:not(.remove_from_cart_button) {
font-size: 16px;
color: #000;
}
.cart-sidebar-content .variation {
margin: 5px 0;
font-size: 15px;
color: #000;
opacity: 1;
}
#shop-cart-sidebar ul {
margin: 0;
list-style-type: none;
}
.cart-sidebar-content .woocommerce-mini-cart__bottom {
-ms-flex: 0 0 auto;
-webkit-box-flex: 0;
flex: 0 0 auto;
width: auto;
margin-top: auto;
}
.cart-sidebar-content .woocommerce-mini-cart {
flex-basis: 0%;
-ms-flex-positive: 1;
-webkit-box-flex: 1;
flex-grow: unset;
max-width: 100%;
overflow-y: initial;
}
.cart-sidebar-content .woocommerce-mini-cart__buttons a:not(.checkout) {
background-color: #fff;
height: 40px;
font-size: 18px;
font-weight: 500;
}
.input-text.qty, .quantity input {
border: 1px solid #573F4C;
border-left: 1px solid #573F4C !important;
border-right: 1px solid #573F4C !important;
}
.cart:not(.elementor-menu-cart__products) .quantity, .loop-add-to-cart-on-image + .added_to_cart, .loop-product-qty .quantity {
top: 21px;
}

.elementor-field-group .elementor-field-textual:focus {
box-shadow: unset;
}



/*responsive css mini-cart sidebar*/
/* ================== MEDIA 765px =================== */

@media (max-width: 767px){
.cart-sidebar-content {
display: block;
}
.cart-sidebar-content .woocommerce-mini-cart__buttons a:not(.checkout) {
background-color: #fff;
height: 40px;
font-size: 18px;
font-weight: 500;
}
.cart-sidebar-content .woocommerce-mini-cart__bottom {
-ms-flex: 0 0 auto;
-webkit-box-flex: 0;
flex: 0 0 auto;
width: auto;
margin-top: auto;
}
.cart-sidebar-content .mini_cart_item .remove_from_cart_button {
opacity: 1;
position: absolute;
bottom: 11px;
right: 0;
top: auto;
}
div#shop-cart-sidebar {
width: 100%;
}
ul.woocommerce-mini-cart.cart_list.product_list_widget {
overflow-x: hidden;
}
.cstm_cart_quantity {
margin-top: 31px;
margin-left: 0px;
}
.remove_from_cart_button::before {
line-height: 1;
text-decoration: underline;
padding-top: 92px;
}
.cart-sidebar-content .mini_cart_item img {
max-width: 60px;
max-height: 100px;
}
.mini-cart-product-infor {
flex-direction: column;
}
span.mini-cart-product-price.cstm_cart_prise_mini {
margin-top: 0px !important;
}
.cstm_cart_prise_mini, .amount sapn {
margin-top: -62px;
padding-bottom: 0px;
}
.cart-sidebar-content, .cart-sidebar-head {
padding-left: 20px;
padding-right: 20px;
}
.cart:not(.elementor-menu-cart__products) .quantity, .loop-add-to-cart-on-image + .added_to_cart, .loop-product-qty .quantity {
top: 4px;
}


}
/*mini-cart css end*/


/*responsive css mini-cart sidebar*/
@media (max-width: 767px){
.cart-sidebar-content {
display: block;
}
.cart-sidebar-content .woocommerce-mini-cart__buttons a:not(.checkout) {
background-color: #fff;
height: 40px;
font-size: 18px;
font-weight: 500;
}
.cart-sidebar-content .woocommerce-mini-cart__bottom {
-ms-flex: 0 0 auto;
-webkit-box-flex: 0;
flex: 0 0 auto;
width: auto;
margin-top: auto;
}
.cart-sidebar-content .mini_cart_item .remove_from_cart_button {
opacity: 1;
position: absolute;
bottom: 11px;
right: 0;
top: auto;
}
div#shop-cart-sidebar {
width: 100%;
}
ul.woocommerce-mini-cart.cart_list.product_list_widget {
overflow-x: hidden;
}
.cstm_cart_quantity {
margin-top: 31px;
margin-left: 0px;
}
.remove_from_cart_button::before {
line-height: 1;
text-decoration: underline;
padding-top: 92px;
}
.cart-sidebar-content .mini_cart_item img {
max-width: 60px;
max-height: 100px;
}
.mini-cart-product-infor {
flex-direction: column;
}
span.mini-cart-product-price.cstm_cart_prise_mini {
margin-top: 0px !important;
}
.cstm_cart_prise_mini, .amount sapn {
margin-top: -62px;
padding-bottom: 0px;
}
.cart-sidebar-content, .cart-sidebar-head {
padding-left: 20px;
padding-right: 20px;
}
.cart:not(.elementor-menu-cart__products) .quantity, .loop-add-to-cart-on-image + .added_to_cart, .loop-product-qty .quantity {
top: 4px;
}

}
/*mini-cart css end*/
Collected errors:
 * opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable.
<iframe src="https://ip.skk.moe/simple" style="width: 100%; border: 0"></iframe>
useEffect(() => {
  fetch("https://jsonplaceholder.typicode.com/posts")
    .then((data) => data.json())
    .then((data) => setTableData(data))
}, [])
 console.log(tableData)
useEffect(() => {
  fetch("https://jsonplaceholder.typicode.com/posts")
    .then((data) => data.json())
    .then((data) => setTableData(data))
}, [])
 console.log(tableData)
"watch:sass": "sass sass/main.scss css/style.css -w",
    "devserver": "live-server",
    "start": "npm-run-all --parallel devserver watch:sass",

    "compile:sass": "sass sass/main.scss css/style.comp.css",
    "prefix:css": "postcss --use autoprefixer -b 'last 10 versions' css/style.comp.css -o css/style.prefix.css",
    "compress:css": "sass css/style.prefix.css css/style.css --style=expanded --no-source-map",
    "build:css": "npm-run-all compile:sass prefix:css compress:css"
import warnings

def fxn():
    warnings.warn("deprecated", DeprecationWarning)

with warnings.catch_warnings():
    warnings.simplefilter("ignore")
    fxn()
.widgettitle {
    font-size: 30px !important;
}
/******* Para quitar el efecto en Divi Grocery hay que buscar esta linea de código en style.css del child theme y borrarla *******/

#logo {
    filter: invert(1) contrast(0) brightness(2);
}
/*** Buscar en el enlace https://www.topgourmetdistribuciones.com/wp-admin/options.php la siguiente linea y borrar su contenido. ***/
et_support_site_id


>>> import json
>>> print(json.dumps({'a':2, 'b':{'x':3, 'y':{'t1': 4, 't2':5}}},
...                  sort_keys=True, indent=4))
{
    "a": 2,
    "b": {
        "x": 3,
        "y": {
            "t1": 4,
            "t2": 5
        }
    }
}
<?php

/** Set Defaults **/
add_option( 'myplugin_field_1', 'some default value' );
add_option( 'myplugin_field_2', '1' );
add_option( 'myplugin_field_3', 'another default value' );

/** Add Settings Page **/
function myplugin_settings_menu() {

	add_options_page(
	/*1*/	'My Plugin Settings',
	/*2*/	'My Plugin',
	/*3*/	'manage_options',
	/*4*/	'myplugin_settings',
	/*5*/	'myplugin_settings_page'
	);

}
add_action( 'admin_menu', 'myplugin_settings_menu' );

<?php

/** Settings Page Content **/
function myplugin_settings_page() {

	?>

	<div class="wrap">
		<?php 
		
		// Uncomment if this screen isn't added with add_options_page() 
		// settings_errors(); 
		
		?>

		<h2>My Plugin</h2>
		<p>Some text describing what the plugin settings do.</p>

		<form method="post" action="options.php">
			<?php

			// Output the settings sections.
			do_settings_sections( 'myplugin_settings' );

			// Output the hidden fields, nonce, etc.
			settings_fields( 'myplugin_settings_group' );

			// Submit button.
			submit_button();

			?>
		</form>
	</div>

	<?php
}

/** Settings Initialization **/
function myplugin_settings_init() {

     /** Setting section 1. **/
	add_settings_section(
	/*1*/	'myplugin_settings_section_1',
	/*2*/	'Section 1',
	/*3*/	'myplugin_settings_section_1_callback',
	/*4*/	'myplugin_settings'
	);
	
	// Field 1.
	add_settings_field(
	/*1*/	'myplugin_field_1',
	/*2*/	'Field 1',
	/*3*/	'myplugin_field_1_input',
	/*4*/	'myplugin_settings',
	/*5*/	'myplugin_settings_section_1'
	);

	// Register this field with our settings group.
	register_setting( 'myplugin_settings_group', 'myplugin_field_1' );
	
   /** Section 2 **/
	add_settings_section(
	/*1*/	'myplugin_settings_section_2',
	/*2*/	'Section 2',
	/*3*/	'myplugin_settings_section_2_callback',
	/*4*/	'myplugin_settings'
	);
	
	// Field 2.
	add_settings_field(
	/*1*/	'myplugin_field_2',
	/*2*/	'Field 2',
	/*3*/	'myplugin_field_2_input',
	/*4*/	'myplugin_settings',
	/*5*/	'myplugin_settings_section_2'
	);

	// Register this field with our settings group.
	register_setting( 'myplugin_settings_group', 'myplugin_field_2' );	
	
	// Field 3.
	add_settings_field(
	/*1*/	'myplugin_field_3',
	/*2*/	'Field 3',
	/*3*/	'myplugin_field_3_input',
	/*4*/	'myplugin_settings',
	/*5*/	'myplugin_settings_section_2'
	);

	// Register this field with our settings group.
	register_setting( 'myplugin_settings_group', 'myplugin_field_3' );
}
add_action( 'admin_init', 'myplugin_settings_init' );

function myplugin_settings_section_1_callback() {

	echo( 'Some info about this section.' );
}

function myplugin_settings_section_2_callback() {

	echo( 'An explanation of this section.' );
}

/** Field 1 Input **/
function myplugin_field_1_input() {

	echo( '<input type="text" name="myplugin_field_1" id="myplugin_field_1" value="'. get_option( 'myplugini_field_1' ) .'" />' );
}

/** Field 2 Input **/
function myplugin_field_2_input() {

	// This example input will be a dropdown.
	// Available options.
	$options = array(
		'1' => 'Option 1',
		'2' => 'Option 2',
		'3' => 'Option 3',
	);
	
	// Current setting.
	$current = get_option( 'myplugin_field_2' );
	
	// Build <select> element.
	$html = '<select id="myplugin_field_2" name="myplugin_field_2">';

	foreach ( $options as $value => $text )
	{
		$html .= '<option value="'. $value .'"';

		// We make sure the current options selected.
		if ( $value == $current ) $html .= ' selected="selected"';

		$html .= '>'. $text .'</option>';
	}
	
	$html .= '</select>';

	echo( $html );	
}

/** Field 3 Input **/
function myplugin_field_3_input() {

	// Output the form input, with the current setting as the value.
	echo( '<input type="text" name="myplugin_field_3" id="myplugin_field_3" value="'. get_option( 'myplugin_field_3' ) .'" />' );	
}

?>
diccionario = {
    
    "jefe_proyecto": {
        { "Nombre": "Juan",
         "Edad": 28,
         "Experiencia": [
               "Gestion",
               "Finanzas",
               "Bases de datos"
                 
             ],
         
         "Residencia": "Madrid",
         "HorasProyecto": 3500
            
        }
        
    },
    
    "empleados": [
        
        { 
        
          "Nombre": "Elena",
          "Edad": 26,
          "Experiencia": [
               "JavaScript",
               "Python"
                 
             
             ],
         
            "Residencia": "Madrid",
            "HorasProyecto": 500
            
        },
        
        { 
            
          "Nombre": "Luis",
          "Edad": 31,
          "Experiencia": [
               "Django",
               "Flask",
               "Pyramid"
                 
             
             ],
         
            "Residencia": "Barcelona",
            "HorasProyecto": 1100
            
        }
        
        
        
        
    ]
    
    
    
    
    
    
}
 
 
horas_empleados = None
horas_jefe = None
 
 
print(diccionario)
print("\nTipo de variable: ", type(diccionario))
 
 
jefe = {}
for i in diccionario["jefe_proyecto"]:
    jefe.update(i)
    
diccionario["jefe_proyecto"]=jefe
horas_jefe = diccionario["jefe_proyecto"]["HorasProyecto"]
 
print("Número de horas dedicadas al proyecto (JEFE): ", horas_jefe)
 
empleados = {}
for i in diccionario["empleados"]:
    empleados.update(i)
    
diccionario["empleados"]=empleados
print(empleados)
star

Wed Jan 05 2022 08:00:41 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:02:31 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:06:19 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:07:38 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:08:55 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:14:32 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:14:52 GMT+0000 (Coordinated Universal Time)

@ahoeweler

star

Wed Jan 05 2022 08:16:16 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:22:06 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:22:49 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:23:48 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:25:21 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:29:26 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:33:42 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:34:55 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:36:04 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:39:28 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 08:40:48 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Wed Jan 05 2022 11:11:56 GMT+0000 (Coordinated Universal Time)

@ahoeweler

star

Wed Jan 05 2022 11:27:55 GMT+0000 (Coordinated Universal Time) https://day.js.org/docs/en/display/format

@fbturk

star

Wed Jan 05 2022 14:27:38 GMT+0000 (Coordinated Universal Time) https://smallbusiness.chron.com/add-image-css-file-51301.html

@Samo_Krose

star

Wed Jan 05 2022 14:27:41 GMT+0000 (Coordinated Universal Time) https://smallbusiness.chron.com/add-image-css-file-51301.html

@Samo_Krose

star

Wed Jan 05 2022 16:41:15 GMT+0000 (Coordinated Universal Time)

@Shesek

star

Wed Jan 05 2022 17:48:56 GMT+0000 (Coordinated Universal Time)

@tomecom

star

Wed Jan 05 2022 17:55:00 GMT+0000 (Coordinated Universal Time)

@tomecom

star

Wed Jan 05 2022 17:57:19 GMT+0000 (Coordinated Universal Time)

@tomecom

star

Wed Jan 05 2022 17:58:01 GMT+0000 (Coordinated Universal Time)

@tomecom

star

Wed Jan 05 2022 18:15:04 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/55840294/how-to-fix-missing-dependency-warning-when-using-useeffect-react-hook

@erinksmith

star

Wed Jan 05 2022 19:16:39 GMT+0000 (Coordinated Universal Time) https://classic.yarnpkg.com/en/docs/install#windows-stable

@Samo_Krose

star

Wed Jan 05 2022 19:44:57 GMT+0000 (Coordinated Universal Time)

@Mister_E

star

Thu Jan 06 2022 06:54:01 GMT+0000 (Coordinated Universal Time) https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_special_characters?view

@Parth1507

star

Thu Jan 06 2022 09:01:17 GMT+0000 (Coordinated Universal Time) https://google-webfonts-helper.herokuapp.com/

@jimmy.samaan

star

Thu Jan 06 2022 10:10:40 GMT+0000 (Coordinated Universal Time) https://www.thewordcracker.com/basic/워드프레스-enfold-테마에서-아이콘을-숏코드나-css로-추가/

@wnakswl

star

Thu Jan 06 2022 10:11:20 GMT+0000 (Coordinated Universal Time) https://www.thewordcracker.com/miscellaneous/컨테이너-높이를-배경-이미지-크기에-맞게/

@wnakswl

star

Thu Jan 06 2022 10:11:24 GMT+0000 (Coordinated Universal Time) https://www.thewordcracker.com/miscellaneous/컨테이너-높이를-배경-이미지-크기에-맞게/

@wnakswl

star

Thu Jan 06 2022 11:37:29 GMT+0000 (Coordinated Universal Time)

@itaiki

star

Thu Jan 06 2022 18:33:22 GMT+0000 (Coordinated Universal Time) https://jsonplaceholder.typicode.com/

@erinksmith

star

Thu Jan 06 2022 18:35:25 GMT+0000 (Coordinated Universal Time) http://192.168.52.254/cgi-bin/luci/admin/system/packages

@boyuan

star

Thu Jan 06 2022 18:37:45 GMT+0000 (Coordinated Universal Time) https://ip.skk.moe/

@boyuan

star

Thu Jan 06 2022 19:13:51 GMT+0000 (Coordinated Universal Time)

@patryshka

star

Thu Jan 06 2022 19:14:20 GMT+0000 (Coordinated Universal Time)

@patryshka

star

Thu Jan 06 2022 20:24:56 GMT+0000 (Coordinated Universal Time)

@tolanisirius

star

Fri Jan 07 2022 01:54:40 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/14463277/how-to-disable-python-warnings

star

Fri Jan 07 2022 07:32:53 GMT+0000 (Coordinated Universal Time)

@hermann

star

Fri Jan 07 2022 07:34:53 GMT+0000 (Coordinated Universal Time)

@hermann

star

Fri Jan 07 2022 07:38:16 GMT+0000 (Coordinated Universal Time)

@hermann

star

Fri Jan 07 2022 07:39:28 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/3229419/how-to-pretty-print-nested-dictionaries

star

Fri Jan 07 2022 09:55:21 GMT+0000 (Coordinated Universal Time) https://codesymphony.co/using-the-wordpress-settings-api/

@khalidlogi

star

Fri Jan 07 2022 10:07:16 GMT+0000 (Coordinated Universal Time)

@kuba

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension