This file contains 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
^Space::Send, {vkF3sc029} ; Ctrl+Spaceで"全角/半角"キー送信 | |
;win+hjkl to arrow | |
F12 & H::Send,{Blind}{Left} |
This file contains 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
Add-Type -AssemblyName System.Drawing, System.Windows.Forms | |
$jpegCodec = [Drawing.Imaging.ImageCodecInfo]::GetImageEncoders() | Where-Object { $_.FormatDescription -eq "JPEG" } | |
Start-Sleep -Milliseconds 200 | |
[Windows.Forms.Sendkeys]::SendWait("{PrtSc}") | |
Start-Sleep -Milliseconds 200 | |
$bitmap = [Windows.Forms.Clipboard]::GetImage() | |
$ep = New-Object Drawing.Imaging.EncoderParameters | |
$ep.Param[0] = New-Object Drawing.Imaging.EncoderParameter ([System.Drawing.Imaging.Encoder]::Quality, [long]100) |
This file contains 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
var filter = GetComponent<MeshFilter>(); | |
filter.mesh = mesh; | |
filter.mesh.SetIndices(filter.mesh.GetIndices(0), MeshTopology.Points, 0); |
This file contains 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 | |
path = "" | |
base = os.path.basename(path) | |
name, ext = os.path.splitext(base) |
This file contains 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 datetime | |
now = datetime.datetime.now() | |
path = "./" + now.strftime("%Y%m%d_%H%M%S") | |
os.makedirs(path, exist_ok=True) |
This file contains 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
# ファイル名 | |
file = "tv" | |
# png出力&フォントをヒラギノに | |
set term png font "ヒラギノ丸ゴ ProN W4, 8" | |
# 出力ファイル名設定 | |
set output file.".png" | |
#タブ区切りのファイルを開く | |
set datafile separator "\t" | |
# 棒グラフの幅を1に | |
set boxwidth 1 |