Skip to content

Instantly share code, notes, and snippets.

@mhffdq
mhffdq / haikei2.ipynb
Created February 3, 2025 12:17
haikei2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhffdq
mhffdq / haikei2.ipynb
Created February 3, 2025 08:39
haikei2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhffdq
mhffdq / gazou-haikei-gousei.ipynb
Created January 28, 2025 14:27
gazou haikei gousei.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$f='System.Windows.Forms'
Add-Type -AssemblyName $f
$m= (New-Object "$f.Message")::Create((New-Object "$f.Form").Handle,274,61808,2)
(New-Object "$f.NativeWindow").DefWndProc([ref]$m)
User
gitで変更のあったファイルをaddしてコミットしてpushするWindowsのbatファイルを作成してください
ChatGPT
Gitで変更のあったファイルを自動的にaddしてコミットし、そしてpushするためのWindowsのバッチファイルを作成するには、以下の手順を含むバッチファイルを作成します。以下はサンプルのスクリプトです。このスクリプトは、変更のあるすべてのファイルをステージングし、コミットし、リモートリポジトリにプッシュします。
bat
Copy code
@echo off
setlocal
import base64 as b64
save = open(str("save.csv"), 'r+')
list1 = save.readlines()
for index in range(len(list1)):
hoge = list1[index].replace("%21END%21","");
hoge = hoge.replace("%3D" ,"=");
decodedSave = (b64.b64decode(hoge))
decodedSave = decodedSave.decode('ISO-8859-1')
SET originalsave TO $'''rfgsfgsdf'''
LOOP LoopIndex FROM 0 TO 50 STEP 1
LABEL begin
IF (UIAutomation.IfImage.DoesNotExistOnScreen Images: [imgrepo['export']] FindAllImages: False Tolerance: 10 SearchAlgorithm: UIAutomation.ImageFinderAlgorithm.Legacy) THEN
IF (UIAutomation.IfImage.ExistsOnScreen Images: [imgrepo['cookieiconmoactive']] FindAllImages: False Tolerance: 10 SearchAlgorithm: UIAutomation.ImageFinderAlgorithm.Legacy) THEN
MouseAndKeyboard.MoveMouseToImage.ClickImage Images: [imgrepo['cookieiconmoactive']] SearchForImageOn: MouseAndKeyboard.SearchTarget.EntireScreen MousePositionOnImage: MouseAndKeyboard.PositionOnImage.MiddleCenter OffsetX: 0 OffsetY: 0 Tolerance: 10 MovementStyle: MouseAndKeyboard.MovementStyle.Instant Occurence: 1 Timeout: 5 ClickType: MouseAndKeyboard.ClickType.LeftClick SecondsBeforeClick: 0 SearchAlgorithm: MouseAndKeyboard.ImageFinderAlgorithm.Legacy X=> X2 Y=> Y2
GOTO begin
END
MouseAndKeyboard.MoveMouseToImage.ClickImag
SET originalsave TO $'''rfgsfgsdf'''
LOOP LoopIndex FROM 0 TO 50 STEP 1
LABEL begin
IF (UIAutomation.IfImage.DoesNotExistOnScreen Images: [imgrepo['export']] FindAllImages: False Tolerance: 10 SearchAlgorithm: UIAutomation.ImageFinderAlgorithm.Legacy) THEN
IF (UIAutomation.IfImage.ExistsOnScreen Images: [imgrepo['cookieiconmoactive']] FindAllImages: False Tolerance: 10 SearchAlgorithm: UIAutomation.ImageFinderAlgorithm.Legacy) THEN
MouseAndKeyboard.MoveMouseToImage.ClickImage Images: [imgrepo['cookieiconmoactive']] SearchForImageOn: MouseAndKeyboard.SearchTarget.EntireScreen MousePositionOnImage: MouseAndKeyboard.PositionOnImage.MiddleCenter OffsetX: 0 OffsetY: 0 Tolerance: 10 MovementStyle: MouseAndKeyboard.MovementStyle.Instant Occurence: 1 Timeout: 5 ClickType: MouseAndKeyboard.ClickType.LeftClick SecondsBeforeClick: 0 SearchAlgorithm: MouseAndKeyboard.ImageFinderAlgorithm.Legacy X=> X2 Y=> Y2
GOTO begin
END
MouseAndKeyboard.MoveMouseToImage.ClickImag
@mhffdq
mhffdq / test.md
Created January 24, 2021 08:53
やったこと

見出し1

見出し2

見出し3

見出し4

見出し5
見出し6

Vroid StudioでVROIDを作る。 髪の毛を揺らす設定はVroid Studioにある VRMでエクスポートする

@mhffdq
mhffdq / gist:2c335ee3d7047e9479ddda5a17d7c0af
Last active January 24, 2021 08:48
配信するためにやったこと
# 見出し1
## 見出し2
### 見出し3
#### 見出し4
##### 見出し5
###### 見出し6
Vroid StudioでVROIDを作る。
髪の毛を揺らす設定はVroid Studioにある
VRMでエクスポートする