Windows 環境メモ

動画再生

Keyframe MP
https://zurbrigg.com/keyframe-mp
Switch
https://www.telestream.net/switch/overview.htm
SHOTGUN RV
https://www.shotgunsoftware.com/rv/
MPC-BE
https://sourceforge.net/projects/mpcbe/

エクスプローラー拡張

QTTabBar
http://qttabbar-ja.wikidot.com/
QuickLook for Windows
https://github.com/QL-Win
Folder Size
http://foldersize.sourceforge.net/
フォルダの足あと
http://www7b.biglobe.ne.jp/~flat/folder_footmark_2/
Ribbon Disabler
https://winaero.com/ribbon-disabler-for-windows-10-and-windows-8/
HFS+ for Windows
https://www.paragon-software.com/jp/free/hfs-windows-free/
ShellExView
http://www.nirsoft.net/utils/shexview.html
Easy Context Menu
https://www.vector.co.jp/soft/dl/winnt/util/se507359.html
Argus Preset Viewer
https://tumasoft.com/
WinQuickLook
https://github.com/shibayan/WinQuickLook

入力

KeySwap
https://www.vector.co.jp/soft/winnt/util/se228667.html
Keyboard Manager (PowerToys)
https://docs.microsoft.com/ja-jp/windows/powertoys/
Ditto
https://ditto-cp.sourceforge.io/
Wox
https://github.com/Wox-launcher/Wox
PowerToys
https://github.com/microsoft/PowerToys/releases/
AutoHotKey
https://www.autohotkey.com/
MouseGestureL.ahk
https://hp.vector.co.jp/authors/VA018351/mglahk.html
AutoIt
https://www.autoitscript.com/site/
X-Mouse Button Control
https://www.highrez.co.uk/downloads/XMouseButtonControl.htm

開発

Zeal
https://zealdocs.org/
SwitchHosts!
https://oldj.github.io/SwitchHosts/
pingo / pinga
https://css-ig.net/pingo

デザイン

FontBase
https://fontba.se/
Eagle
https://eagle.cool/
TransType
https://www.fontlab.com/font-converter/transtype/
COLORUS 2
https://coolorus.com/
BrushBox
https://derrickbarth.gumroad.com/l/brushbox
Lazy Nezumi Pro
https://lazynezumi.com/
qView
https://interversehq.com/qview/

WordPress の Advanced Custom Fields の select の選択肢を Google Spreadsheet のデータから生成する

Google Spreadsheet でデータを用意する。実際には複数列あるデータの中から QUERY 関数で必要なデータのみ抽出したシートを用意し、そのシートのデータから JSON を出力する。

Sheet ID: XXXXXXXX
Sheet Name: _sheet_name_

Continue reading “WordPress の Advanced Custom Fields の select の選択肢を Google Spreadsheet のデータから生成する”

CodeSandbox で static な Sandbox を作ったけど Sass のコンパイルはしたい時

表題の通り。ローカルでサーバーを立てるどころか、Visual Studio Code を起動するのも煩わしい。全て CodeSandbox でやってしまおう、もちろん静的な HTML も。…と思って static な template の Sandbox を作ったものの、完全 static なので Sass のコンパイルもできない。せめて scss から css へのトランスパイルくらいはして欲しい。そんな場合のメモ。

Continue reading “CodeSandbox で static な Sandbox を作ったけど Sass のコンパイルはしたい時”

Photoshop + JSX と Bridge で複数の画像にファイル名の透かしを入れる

撮影したデータを LINE のアルバムで共有して OK 出しをする際、一度 LINE に上げた画像はファイル名が変更されてしまい後で元画像を探すのが大変なので、画像にファイル名をプリントしてしまう。

Continue reading “Photoshop + JSX と Bridge で複数の画像にファイル名の透かしを入れる”

Keyboard Maestro で Mac のバッテリー残量を監視する

  1. 変数「varPmsetResult」を用意
  2. コマンドラインで「pmset -g ps」を叩く。戻り値を「varPmsetResult」に代入。
    NAME
         pmset -- manipulate power management settings
    
    DESCRIPTION
         pmset manages power management settings such as idle sleep timing, wake
         on administrative access, automatic restart on power loss, etc.
    
         Note that processes may dynamically override these power management set-
         tings by using I/O Kit power assertions.  Whenever processes override any
         system power settings, pmset will list those processes and their power
         assertions in -g and -g assertions. See caffeinate(8).
  3. pmset の戻り値が変数「varPmsetResult」に代入されるのを待つ。
  4. 「varPmsetResult」の文字列からバッテリー残量の数値を正規表現で取得し、変数「varRegExpCapture」に代入。
    ちなみに pmset -g ps の戻り値はこんなかんじ。
    -InternalBattery-0 (id=3735651) 83%; discharging; 2:05 remaining present: true
  5. 「varRegExpCapture」の値によって通知を出したり、その他処理をしたりお好みで。
Continue reading “Keyboard Maestro で Mac のバッテリー残量を監視する”

WordPress で複数のカスタムフィールドの条件で抽出してその値でソートする WP_Query の引数

カスタム投稿「custom」の、
カスタムフィールド「available」が正で、
カスタムフィールド「day」の日付が今より未来のものを、
カスタムフィールド「day」の値で昇順にソート。

$args = array (
	'post_type' => 'custom',
	'posts_per_page' => -1,
	'meta_query' => array(
		'relation' => 'AND',
		array (
			'key' => 'available',
			'value' => 1
		),
		'meta_day' => array (
			'value' => date('Y/m/d', strtotime('now')),
			'key' => 'day',
			'compare' => '>=',
			'type' => 'DATE'
		)
	),
	'orderby' => array (
		'meta_day' => 'ASC'
	)
);

Vue.js のコンポーネント内で定義した filters で数値の3桁区切り

Vue.component('TestComponent', {
	template:[
		'<div>合計は {{ total | digit }} 円です。</div>'
	],
	data: function() {
		return {
			total: "1234567"
		}
	},
	filters: {
		digit: function(a) {
			//与えられたデータが文字列かもしれないので Number() で数値に変換
			return Number(a).toLocaleString();
		}
	}
}
<div>合計は 1,234,567 円です。</div>