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
@rem https://qiita.com/sharow/items/ef78f2f5a8053f6a7a41 | |
echo.(Add-Type '[return: MarshalAs(UnmanagedType.Bool)][DllImport("user32.dll",SetLastError=true,CharSet=CharSet.Auto)]public static extern bool PostMessage(uint hWnd,uint Msg,IntPtr wParam,IntPtr lParam);' -Name "PM" -PassThru -Language CSharp)::PostMessage(0xffff,0x0112,0xf170,2)|powershell/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
@powershell/c '#'+(gc \"%~f0\"-ra)^|iex&exit/b | |
############################################################################ | |
$DEFO_access_ids = @" | |
ccsakura | |
hanaso | |
priconne_re | |
"@ -split "\s+" | |
$DEFO_output_dir = "$HOME\Music\records\" | |
$DEFO_ffmpeg = "C:\Program_Free\ffmpeg\bin\ffmpeg.exe"#pathが通っているなら書く必要はない | |
############################################################################ |
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
function Start-Wait-Ui() { | |
param( | |
[Parameter(ValueFromPipeline = $true)] | |
[DateTime]$enddate = (Get-Date).AddMinutes(30) | |
) | |
$rawui = $Host.ui.rawui | |
while ( ($remain = $enddate - (get-date)) -ge 0) { | |
while ($rawui.KeyAvailable) { | |
switch ($rawui.Readkey("NoEcho,IncludeKeyUp").Character) { | |
'y' { return } |
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 CameraScan = (function () { | |
var worker = new Worker('zbar-processor.js'); | |
var video = document.querySelector("video"); | |
var canvas = document.createElement("canvas"); | |
var ctx = canvas.getContext("2d"); | |
var timerId = null; | |
var imageData = null; | |
var scanFlag = false; | |
var scan = function () { |
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://qiita.com/ikikuchi/items/7a941ac45b6e97a14058 | |
# @ikikuchi 2018年10月05日に更新 | |
# 【Windows10】システムフォント(游ゴシック)を別フォントに変更する | |
"1.フォントのインストール" | |
"ダウンロードし解凍した[NotoSansCJKjp-hinted]内の2つのファイル" | |
"NotoSansCJKjp-Bold.otf" | |
"NotoSansCJKjp-Regular.otf" | |
"を選択し、右クリックメニューの[インストール]。" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<button>dispatch</button> | |
<div id="log">loading...</div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div class="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
@powershell/noe /c '#'+(gc \"%~f0\"-ra)^|iex&exit/b | |
#この行以降は同一スコープのpowershellスクリプトとなります。日本語入ったのでANSIで保存して。 | |
if (!(Get-Command ffmpeg 2>$null)) { | |
Write-Error "ffmpeg.exe could not be found." | |
exit 1 | |
} | |
function mp3DirectCut($path) { | |
mp3DirectCut.exe (Resolve-Path $path) | |
} | |
ffmpeg -version |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Web Speech API Test</title> | |
<link rel="stylesheet" href="style.css"> |
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
$iTunes = New-Object -Com "iTunes.Application" | |
$iTunes.LibrarySource.Playlists|%{$_.Name} | |
$list=$iTunes.LibrarySource.Playlists.ItemByName('AgeAge').Tracks | |
$list|%{ cp $_.Location ($_.Name+(get-item $_.Location).Extension)} |
OlderNewer