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
# @stringTrimmer https://gist.github.com/jamesfreeman959/231b068c3d1ed6557675f21c0e346a9c | |
Param([int]$seconds = -1, [switch]$display) | |
$Signature = @" | |
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] | |
public static extern void SetThreadExecutionState(uint esFlags); | |
"@ | |
$ES_SYSTEM_REQUIRED = [uint32]"0x00000001" | |
$ES_DISPLAY_REQUIRED = [uint32]"0x00000002" | |
$ES_CONTINUOUS = [uint32]"0x80000000" |
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
. .\Regnus-Clock.ps1 | |
# 更新間隔秒数 | |
$tickDuration = 10 | |
function Invoke-Regnus-Clock { | |
$currentName = Get-Name | |
$first = Get-Next-Term | |
$second = $first | Get-Next-Term | |
try { | |
while (1) { |
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
export interface RegnusClock { | |
isNight: boolean | |
remainSecond: number | |
} | |
// レグナスの1日は50分 | |
const dayDuration = 50 * 60; | |
// UTC00:00:00はレグナスの朝の12.5分前? | |
// const regnusStart = -12.5 * 60; | |
// 実際は22秒ずれてる? //750?740?728? | |
const regnusStart = -728; |
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
$from = "~\AppData\LocalLow\Pokelabo\Assaultlily\LilyProject.png" | |
if (Test-Path $from) { | |
$to = "./" + (Get-ChildItem $from).LastWriteTime.ToString("yyyyMMdd_HHmmss") + ".png" | |
Copy-Item $from $to | |
} | |
else { | |
Get-ChildItem $from | |
Pause | |
} |
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.Windows.Forms | |
$CK = Add-Type -ReferencedAssemblies 'System.Windows.Forms' -PassThru -TypeDefinition @" | |
using System; | |
using System.Windows.Forms; | |
public class CancelKey{ | |
public static void Main() { | |
Console.CancelKeyPress += (sender, e) => { | |
// trueにすると、プログラムを終了させない | |
e.Cancel = true; | |
Console.WriteLine("CTRL+C が押されました"); |
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
# https://nyanshiba.hatenablog.com/entry/2017/08/21/221555 | |
param([int]$InputDevice = 3) | |
# Add-Type -AssemblyName System.Windows.Forms | |
$wshShell = New-Object -ComObject WScript.Shell | |
function Send-Keys { | |
param( | |
[Parameter(ValueFromPipeline = $true)][string]$key, | |
[int]$wait = 100 | |
) | |
Process { |
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
s=1728 o=" Ore" c=" Crystal" in="\nScanning..." no="\nNo Result" | |
m1="Ajatite" p1=.544 m2="Valkite" p2=p1 m3="Ice" p3=.816 m4="Bastium" | |
p4=.87 m5="Vokarium" p5=.979 m6="Nhurgite" p6=2.721 m7="Charodium" | |
p7=3.81 m8="Exorium" p8=4.354 m9="Aegisium" p9=2.503 | |
// end of init | |
:Materials=no | |
e="" i=0 sr="" cr=0 :Scan=1 goto7+:ScanOre | |
:Materials=in ifi>=:ScanResults thengoto6*(i>0)+6end :Index=i | |
m=:Material-o-c v=:Volume/s i++ sr+="\n"+m+"\n"+v+" stks" | |
p=(m==m1)*p1+(m==m2)*p2+(m==m3)*p3+(m==m4)*p4+(m==m5)*p5+(m==m6)*p6 |
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
param([Int]$volume, [string]$voice) | |
# & .\Enter-TTS-Console.ps1 -voice 'Microsoft Zira Desktop' | |
# in cmd.exe: powershell .\Enter-TTS-Console.ps1 -voice 'Microsoft` Zira` Desktop' | |
Add-Type -AssemblyName System.speech | |
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
if ($volume) { | |
$speak.Volume = $volume | |
} | |
if ($voice) { |
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
==========Hardware========== | |
OS: Windows 64Bit | |
CPU: AMD Athlon 200GE with Radeon Vega Graphics | |
RAM: 16384MB RAM | |
GPU Vendor: NVIDIA Corporation | |
GPU: GeForce GTX 1650/PCIe/SSE2 | |
OpenGL: 4.6.0 NVIDIA 456.71 | |
==========Config========== | |
Window Mode: Windowed |
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
// ==UserScript== | |
// @name COOKPAD - Show Report Count | |
// @version 2024-01-15 | |
// @description Cookpadのレシピへの文字列リンクにつくれぽ数を表示する | |
// @namespace http://iwamot.com/ | |
// @match https://cookpad.com/* | |
// @grant none | |
// @website http://d.hatena.ne.jp/samurai20000/20090715/1247668133 | |
// @website https://github.com/iwamot/cookpad-show-report-count | |
// @downloadURL https://gist.githubusercontent.com/CannoHarito/a4b61f812ace98a86e203605c1f5303c/raw/ |
NewerOlder