Skip to content

Instantly share code, notes, and snippets.

View watamario15's full-sized avatar

watamario15

View GitHub Profile
@watamario15
watamario15 / .gitconfig
Last active October 13, 2023 14:50
Git configurations to use VSCode, WinMerge, and UnityYAMLMerge on WSL.
[diff]
tool = vscode
[difftool]
prompt = false
[difftool "vscode"]
cmd = code --wait --diff "$LOCAL" "$REMOTE"
trustExitCode = false
[difftool "winmerge"]
cmd = '/mnt/c/Users/watamario15/AppData/Local/Programs/WinMerge/WinMergeU.exe' -e -r -u -x -wl -wr -dl "Your $MERGED" -dr "Incoming $MERGED" "$LOCAL" "$REMOTE"
trustExitCode = false
{
"settingsSync.ignoredSettings": ["-C_Cpp.default.includePath", "java.configuration.runtimes", "-python.defaultInterpreterPath", "github.copilot.enable", "workbench.colorTheme", "workbench.list.mouseWheelScrollSensitivity", "terminal.integrated.mouseWheelScrollSensitivity", "editor.mouseWheelScrollSensitivity"],
"settingsSync.ignoredExtensions": ["icrawl.discord-vscode", "ms-ceintl.vscode-language-pack-ja", "vhdlwhiz.vhdl-by-vhdlwhiz", "github.copilot", "vsciot-vscode.vscode-arduino"],
"C_Cpp.default.cStandard": "c23",
"C_Cpp.default.cppStandard": "c++23",
"C_Cpp.clang_format_style": "{BasedOnStyle: Google, ColumnLimit: 120}",
"C_Cpp.clang_format_fallbackStyle": "{BasedOnStyle: Google, ColumnLimit: 120}",
"cmake.configureOnOpen": false,
"arduino.logLevel": "info",
"arduino.enableUSBDetection": true,
@watamario15
watamario15 / profile.ps1
Last active November 9, 2023 04:13
Minimal PowerShell settings.
chcp 65001
[console]::outputEncoding=[text.encoding]::getEncoding("utf-8")
function prompt {
if ($? -eq $true) {
write-host '' -foregroundColor cyan -noNewline
} else {
write-host '× ' -foregroundColor red -noNewline
}
@watamario15
watamario15 / ie.ps1
Last active August 2, 2022 13:19
Internet Explorer 11 launcher
$ie = New-Object -ComObject InternetExplorer.Application
$ie.navigate('https://www.yahoo.co.jp/')
$ie.visible = $true
@watamario15
watamario15 / ShortcutButton.ini
Last active March 20, 2022 09:36
FMV NF/B70 の ワンタッチボタンを Windows 10 環境で使用する設定 (非公式・無保証)
[\Settings]
ShipmentModel=0
IntrSet=0
PropertyPageNum=6
Btn01Tab="Support "
Btn01Program="ms-settings:"
Btn01Folder=""
Btn01CmdLine=""
Btn01Abn=2
@watamario15
watamario15 / ja-JP.ini
Last active July 13, 2023 10:34
Control Center 2.2.0.24 settings for GCR2070RGF-QCG (unofficial, no warranty) + Japanese translation to replace the terrible official one
[GamingCenter]
MyFontFamily=Noto Sans CJK JP
strNumLock=数字キーロック
strNumUnLock=数字キーロック解除
strWinLock=Win キーロック
strWinUnLock=Win キーロック解除
strScrollLock=スクロールロック
strScrollUnLock=スクロールロック解除
strCapLock=Caps ロック
strCapUnLock=Caps ロック解除
@watamario15
watamario15 / settings.json
Last active April 10, 2022 14:02
My settings for Windows Terminal 1.12.10733.0
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@watamario15
watamario15 / (u)pLaTeX.tex
Last active April 21, 2023 15:53
Japanese LaTeX templates
\RequirePackage{plautopatch}
\plautopatchdisable{eso-pic}
\documentclass[autodetect-engine, jis2004, dvipdfmx, a4j, titlepage]{jsarticle}
\usepackage[top=25.4truemm, bottom=25.4truemm, left=19truemm, right=19truemm]{geometry}
\usepackage{ascmac, enumitem, graphicx, here, mathtools, newtxmath, newtxtext, listings, seqsplit, spverbatim, xcolor, multicol}
\usepackage[hidelinks, colorlinks, linkcolor=black, citecolor=black, urlcolor=blue, pdfusetitle]{hyperref}
\usepackage[T1]{fontenc}
\usepackage[deluxe]{otf}
\usepackage[noalphabet, unicode]{pxchfon} % フォント変更。必ず otf の後。
\setminchofont[0]{BIZ-UDMinchoM.TTC} % Windows 10 and later
@watamario15
watamario15 / .clang-format
Last active June 26, 2023 13:07
VSCode C/C++ Settings
BasedOnStyle: Google
ColumnLimit: 120
@watamario15
watamario15 / brain.cpp
Last active December 12, 2023 16:20
Sample program for SHARP Brain (https://oucc.org/blog/articles/303)
/*
* This program is licensed under the CC0 1.0 (Public Domain).
* このプログラムは CC0 1.0 (パブリックドメイン) でライセンスされています。
* https://creativecommons.org/publicdomain/zero/1.0/
*/
#ifndef _UNICODE
#define _UNICODE
#endif
#ifndef UNICODE