All in One SEO Pack
でmetaタグ挿入,https://search.google.com/search-consoleでの検索最適化
- sitemapの登録とping
XML Sitemap Generator for WordPress
を用いるが,この際に「html形式のサイトマップを含める」のチェックを外すこと(search console上でxml外の形式だとエラーが出るため)
import numpy as np | |
import matplotlib.pyplot as plt | |
from moviepy.editor import * | |
from matplotlib import animation as ani | |
sigma = 1 | |
mu = 3 | |
def norm_dist_neg(x): | |
return -1./(np.sqrt(2 * np.pi) * sigma)* np.exp(-0.5*((x-mu)**2)/((sigma**2))) |
import os | |
import json | |
from glob import glob | |
from itertools import chain | |
from datetime import datetime | |
sep = os.path.sep | |
def extract_md(file: str) -> list: |
# Author: Atsuya Kobayashi @atsuya_kobayashi | |
# 2019/02/15 17:20 | |
"""Support Vector Document Classifier with doc2vec & Optuna | |
- .csv label file must be in the form of following style | |
|DOCUMENT_FILE_NAME(id)|LABEL(labels)| |
/* ################################ | |
custom.css written below 2018/08/12 | |
################################ */ | |
/* change markdown inline code style */ | |
.rendered_html code { | |
background-color: #d5eaff; | |
margin: 0px 2px; |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/' | |
} | |
export PS1="\n\[\e[0;37m\][\#(\!)] \[\e[0;33m\]\t \[\e[0;34m\]\u \[\e[0;37m\]at \[\e[0;31m\]\w\[\e[0;37m\]\[\e[1;37m\]\$(parse_git_branch)\[\e[1;37m\]\n\[\e[0;36m\]--> \[\e[0m\]" |
import re | |
import MeCab | |
import wikipedia | |
import logging | |
import shutil | |
from logging import getLogger | |
from pykakasi import kakasi | |
from Levenshtein import distance as D | |
logging.basicConfig(level=logging.INFO) |
if !(type "pip3" > /dev/null 2>&1); then | |
echo "install pip..." | |
brew install python | |
fi | |
pip3 install -r requirements.txt | |
echo "Create tmux session for python api" | |
tmux new-session -d -s python_api 'python3 run.py' | |
if !(type "jq" > /dev/null 2>&1); then |
// add to functions.php | |
function custom_login() { | |
$style = ' | |
<style> | |
.login > #login > h1 > a { | |
background-image: url(PATH/TO/IMAGE.png); | |
background-size: 100%; | |
width: 100%; | |
height: 100px; | |
} |
All in One SEO Pack
でmetaタグ挿入,https://search.google.com/search-consoleでの検索最適化
XML Sitemap Generator for WordPress
を用いるが,この際に「html形式のサイトマップを含める」のチェックを外すこと(search console上でxml外の形式だとエラーが出るため)
# animation with element width value sample with JQuery | |
# generate style dom | |
generateCss = (name, diff) -> | |
# sample: marquee like animation | |
style = $(" | |
<style> | |
@keyframes #{name} { | |
0% { | |
transform: translate(0%); | |
} |