- j : ScrollDown
- : ScrollDown
- k : ScrollUp
- : ScrollUp
- h : ScrollLeft
- l : ScrollRight
- : PageDown
- : PageUp
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
#!/bin/env bash | |
video="/D/projects/sk8/out/YouTubeTrimTrim.mp4" | |
video="D:\projects\sk8\out\2018-05-23-short.mp4" | |
video="D:\projects\sk8\out\2018-06-09_IMG_8690Trim.mp4" | |
outdir="./output/" | |
name=`basename $video` | |
dir=${outdir}${name} | |
jsonDir=${dir}/json |
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>JS Bin</title> | |
</head> | |
<body> | |
<div id="output"></div> | |
<script id="jsbin-javascript"> |
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
SetTitleMatchMode, 2 ; 中間一致 | |
; http://d.hatena.ne.jp/monk_saruhobo/20050712/p1 | |
; https://sites.google.com/site/agkh6mze/howto/detect_window | |
$^p:: | |
if ( WinActive("ahk_class SunAwtFrame") ) { | |
WinActivate, Unity | |
Sleep, 500 | |
Send, ^p |
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://goo.gl/ISTC0n | |
@echo off | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f | |
: 「隠しファイル、隠しフォルダー、および隠しドライブを表示する」のレジストリをコマンドで設定する方法【共通編】 | |
: https://goo.gl/cIGZQg | |
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d "1" /f |
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
### | |
set even pixel | |
@use | |
https://github.com/rsms/node-imagemagick | |
@see | |
画像処理についてあれこれ: ImageMagickで、画像の上下左右に余白を追加する | |
http://goo.gl/kVfP9Q |
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
find *.mp4 -exec ffmpeg -i {} -ss 0 -f image2 -vframes 1 {}.png \; |
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
$ find . -type f -exec chmod 644 \{\} \; |
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
HOST_NAME = do -> | |
os = require('os') | |
interfaces = do os.networkInterfaces | |
checkLocal = (address)-> | |
return address.family is 'IPv4' and not address.internal | |
# en0を優先 | |
if _.has(interfaces, 'en0') | |
for address in interfaces['en0'] | |
if checkLocal(address) | |
return address.address |
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
# jade | |
identify -format "src='img(%f', width=%w, height=%h, alt='')\n" *.(png|jpg|gif) | |
# coffee | |
identify -format "%f: width: %w, height: %h\n" *.(png|jpg|gif) |
NewerOlder