This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Windows から WSL へポートフォワーディングを設定 | |
function Set-WslPortForwarding { | |
# WSL のディストリビューション | |
$wsl_distribution = 'Ubuntu'; | |
# WSL に割り当てられたローカルドメイン | |
$wsl_domain = 'ubuntu.wsl'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{.Shell}} : {{.Folder}}", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ***** 設定 ***** | |
# 変更するフォント名 | |
font = 'Meiryo' | |
# Creative Cloud のパス | |
cc_path = r'C:\Program Files\Adobe\Adobe Creative Cloud' | |
# ***** 設定ここまで ***** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import | |
import argparse | |
import chardet | |
import os | |
import re | |
import statistics | |
import sys | |
import xmltodict | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class ConvertDate extends Model | |
{ | |
// 西暦を和暦に変換する |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import | |
import os | |
import sys | |
import json | |
import argparse | |
import requests | |
from pprint import pprint | |
from bs4 import BeautifulSoup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TVTest で取得した局ロゴを (ONID)(SID).bmp のようなファイル名にリネームするツール | |
import os | |
import glob | |
import shutil | |
import configparser | |
# ********** 設定 ********** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem // 開発者コマンドプロンプトの起動 | |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" | |
cd /d %~dp0 | |
rem // EDCB 本体のビルド | |
cd %~dp0\EDCB\Document | |
MSBuild EDCB_ALL.VS2015.sln /t:Build /p:Configuration=Release;Platform=x64;PlatformToolset=v142 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem // 開発者コマンドプロンプトの起動 | |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" | |
cd /d %~dp0 | |
rem // LibISDB のビルド | |
cd %~dp0\TVTest\src\LibISDB\Projects | |
MSBuild LibISDB.sln /t:Build /p:Configuration=Release;Platform=x64;PlatformToolset=v142 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import glob | |
import plistlib | |
# パス | |
profile_folders = { | |
'mojimo-manga': os.environ['USERPROFILE'].replace('\\', '/') + '/Documents/mojimo-manga_profile', | |
'mojimo-livelite': os.environ['USERPROFILE'].replace('\\', '/') + '/Documents/mojimo-livelite_profile', |