All in One SEO Pack
でmetaタグ挿入,https://search.google.com/search-consoleでの検索最適化
- sitemapの登録とping
XML Sitemap Generator for WordPress
を用いるが,この際に「html形式のサイトマップを含める」のチェックを外すこと(search console上でxml外の形式だとエラーが出るため)
from miditoolkit import MidiFile | |
from miditoolkit.midi.utils import example_midi_file | |
from note_seq import plot_sequence | |
from note_seq.protobuf.music_pb2 import NoteSequence | |
def miditoolkit_to_notesequence(midi: MidiFile) -> NoteSequence: | |
ticks_per_sec = midi.ticks_per_beat * midi.tempo_changes[0].tempo / 60 | |
ticks_to_sec = lambda ticks: ticks * (1 / ticks_per_sec) | |
ns = NoteSequence() |
from copy import copy | |
from typing import Any, Dict, List, Tuple, Callable | |
import note_seq | |
from note_seq.protobuf.music_pb2 import NoteSequence as ns | |
class Scales: | |
def __init__(self, key: str): | |
""" |
import Foundation | |
import APIKit | |
extension Session { | |
open class func sendSync<T: Request>(_ request: T) -> Result<T.Response, SessionTaskError> { | |
var result: Result<T.Response, SessionTaskError>! | |
let semaphor = DispatchSemaphore(value: 0) | |
self.send(request, callbackQueue: .sessionQueue) { _result in | |
result = _result |
# Atsuya Kobayashi 2020-12-22 | |
# Reference: https://google.github.io/mediapipe/solutions/hands | |
# LICENCE: MIT | |
from itertools import chain | |
import mediapipe as mp | |
from cv2 import cv2 | |
from pythonosc import udp_client |
# 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%); | |
} |
All in One SEO Pack
でmetaタグ挿入,https://search.google.com/search-consoleでの検索最適化
XML Sitemap Generator for WordPress
を用いるが,この際に「html形式のサイトマップを含める」のチェックを外すこと(search console上でxml外の形式だとエラーが出るため)
// 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; | |
} |
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 |
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) |
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\]" |