ログイン画面のロゴ変更

(参考サイト) https://tanweb.net/2019/04/16/26316/
// ログイン画面のロゴ変更
function login_logo() {
  echo '<style type="text/css">.login h1 a {background-image: url('.get_bloginfo('template_directory').'/images/login-logo.png);width:●●px;height:●●px;background-size:●●px ●●px;}</style>';
}
add_action('login_head', 'login_logo');

// ログイン画面のロゴURL
function custom_login_logo_url() {
	return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'custom_login_logo_url' );

// ログイン画面のロゴタイトル
function custom_login_logo_url_title() {
	return 'トップペー

Debounce

Отложенное выполнение

    // Template
    
    <input type="text" class="" placeholder="Найти товар"
             v-model.trim="search" @input="searchProducts" v-on:keyup.esc="resetSearch">
    
    // Model
    
    import _ from 'lodash'
    
    created() {
      this.debouncedSearch = _.debounce(this.getProducts, 600);
    },
    
    searchProducts() {
      this.paged = 1
      this.debouncedSearch()
    },

PySpark

from pyspark.sql.types import StructType, StructField, StringType, IntegerType, DoubleType, ArrayType
from pyspark.sql import SparkSession
import pyspark.sql.functions as f
from pyspark.ml.linalg import Vectors, VectorUDT
from pyspark.ml import clustering

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import sent_emb

# Create a Spark Session
spark = SparkSession.builder \
    .appName("SparkML Clustering") \
    .config("spark.executor.memory", "45g") \
    .config("spa

2021-06. Meeting AS-RV Juli 2021

//To maintain daily reports for Juli 2021

browsing and get file and it's path in tkinter

通过tkinter生成的文件选择对话框来选择目标文件,并获取文件的路径和文件名。
import os.path
from pathlib import Path
import tkinter
from tkinter import filedialog

tk_root = tkinter.TK()
tk_root.withdraw()

# Path(filedialog.askopenfilename())返回的是所选文件的绝对路径(含文件名)
# parent=tk_root可以将tkinter的文件选择窗口,置于其他窗口之上
get_file = Path(filedialog.askopenfilename(parent=tk_root))

# 获取所选文件的路径
file_path = Path(os.path.dirname(get_file))

# 获取所选文件的文件名(含后缀)
file_name_with_ext = os.path.basename(get_file)

# 分离文件名与后缀
file_name_split = os.path.splittext(file_name_with_ext)

# 从分离后的文件名和后缀中,取得不

패션 카테고리 필터 判断数组中是否包含패션

(function(d,s){d.body.appendChild(s=d.createElement('script')).src='http://cdn.bootcss.com/jquery/1.11.0/jquery.min.js'})(document);
c=[1100011,
1100037,
1100061,
1100056,
1100055,
1100044,
1100010,
1100064,
1100040,
1100052,
1100024,
1100049,
1100015,
1100046,
1100068,
1100023]
a=[];   b=[];

function av() {
    $('.search_lnb .choice_wrap .text_list li a').each(function (t) {
        t = $(this);
        var s = t.data("search-category-id");
        var v = t.data("gtm-f

Miva Order Workflow - Payment Action - Audit Log Example

[
    {
        "action": {
            "capture_dollars_within": 0.0,
            "capture_enabled": true,
            "capture_includes": "shipped_shipments",
            "capture_nontax_charges": "first",
            "prorate_discounts": true,
            "refund_enabled": false,
            "refund_handling_charges": false,
            "refund_includes": "created_returns",
            "refund_other_charges": true,
            "refund_payment_charges": true,
            "refund_s

change inside banner css

/* target slide 1 */
[data-block-internal-id="core_slider_caption_overlay"] .orbit__slide > li:nth-of-type(1):before {
	background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url(/files/gettyimages-539440276_1.jpg);
  background-position: center;
  background-size: cover;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  content: '';
  position: absolute;
  width: 100%;
} 

Valid Parentheses

# [Valid Parentheses](https://leetcode.com/problems/valid-parentheses/)

Given a string `s` containing just the characters `'('`, `')'`, `'{'`, `'}'`, `'['` and `']'`, determine if the input string is valid.

An input string is valid if:

- Open brackets must be closed by the same type of brackets.
- Open brackets must be closed in the correct order.

Example 1:

```
Input: s = "()"
Output: true
```

Example 2:

```
Input: s = "()[]{}"
Output: true
```

Example 3:

```

All possible Options for creating an event, Since It doesn't work for regular lightning components

All possible Options for creating an event, Since It doesn't work for regular lightning components
        window.open('/lightning/o/Event/new');
        
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
            "url": "/lightning/o/Event/new"
        });
        urlEvent.fire();

        var createRecordEvent = $A.get("e.force:createRecord");
        createRecordEvent.setParams({
            "entityApiName": "Event",
            "defaultFieldValues": {
                'Change_Machine_Event__c': true
            }
        });
        createRecordEvent.f

latex 公式对齐方法


\begin{equation}
\begin{aligned}
    L_{spr} &= \frac{1}{N } \cdot \sum_{u,v}^{H,W} \alpha \cdot \frac{1-SSIM(I_{r,(u,v)},\Tilde{I}_{r,(u,v)})}{2} \\+ (1-\alpha) \cdot ||(I_{r,(u,v)}-\Tilde{I}_{r,(u,v)})||
\end{aligned}
\end{equation}

GIT cheatsheet

# Cheatsheet by GitHub

## SETUP
Configuring user information used across all local repositories.

- **git config --global user.name “[firstname lastname]”**: set a name that is identifiable for credit when review version history
- **git config --global user.email “[valid-email]”**: set an email address that will be associated with each history marker
- **git config --global color.ui auto**: set automatic command line coloring for Git for easy reviewing

## SETUP & INIT
Configuring user informat

SiteWrench Search Bookmarklet

add this script to the URL of a bookmark, and click on it while on any SW site to search the site howto: https://share.madebyspeak.com/Kou4YJ61
javascript:(function(){
    var ab = window.prompt('Search this SiteWrench site:');
    if (ab != null) {
        window.location.href = '/SearchResults.aspx?s=' + ab;
    }
})();

Reference SpreadSheet Events and getValues

 
 // var spreadSheet = SpreadsheetApp.openById('18qL3glp6xeDYpi6VPqDUGQStHQRBkEfV4bKcLoD_Pxk');

  const workBook = SpreadsheetApp.getActiveSpreadsheet()
  const sheet = workBook.getActiveSheet()
  const heatmap = workBook.getSheets()[0]
  const ref = workBook.getSheetByName('Pizza Ref')
  const final = workBook.getSheetByName('Pizza OOS')


async function onEdit(e) {

  //  if (sheet !== heatmap) return 

  let isActive = getInactive(e.range.getColumn(), e.range.getRow())
  
   if(!isActive) {

test2

[user folder](%USERPROFILE%)

test html

test html
<a href="%USERPROFILE%">User folder</a>