This file contains hidden or 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
/Applications/ | |
/Library/ | |
/.Trash/ | |
/.gradle/ | |
/.cache/ | |
/.nodebrew/ | |
/.npm/ | |
/.pyenv/ | |
/go/ |
This file contains hidden or 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> | |
<!-- Let's view the HTML source code of this page!! --> | |
<!-- Or save this text as HTML source code :) --> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Quine</title> | |
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro&display=swap" rel="stylesheet"> | |
</head> | |
<body> |
This file contains hidden or 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
on open location url_scheme | |
(*デリミタで文字列抽出*) | |
set AppleScript's text item delimiters to {"vlc://"} | |
set txt_items to text items of url_scheme | |
set AppleScript's text item delimiters to {""} | |
set scheme_txt to txt_items as Unicode text | |
do shell script ({"/Applications/VLC.app/Contents/MacOS/VLC ", scheme_txt} as string) | |
end open location |
This file contains hidden or 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 vlcdata=%1 | |
start "" "C:\Program Files\VideoLAN\VLC\vlc.exe" "%vlcdata:~7%" |
This file contains hidden or 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
(() => { | |
const texts = [ | |
"俺の勝ち。", | |
"俺の勝ちだが?", | |
"お前の負け。", | |
"お前の負けだが?", | |
"I win.", | |
"You lose." | |
] |
This file contains hidden or 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 decompose(l, i) { | |
// if (i < l.length) { | |
// var j = l[i] | |
// if (i === j) { | |
// return decompose(l, i + 1) | |
// } else { | |
// [l[i], l[j]] = [l[j], l[i]] | |
// return [[i, j]].concat(decompose(l, i + 1)) | |
// } | |
// } else { |
This file contains hidden or 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 speed=10,e=document.querySelector('#speed>.w1');e.setAttribute('data-value', speed);e.click() |
This file contains hidden or 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/bash | |
if [ $# -lt 1 ]; then | |
echo 'Usage: $ ./batch.sh input_dir' | |
exit 1 | |
fi | |
find $1 -type f | | |
grep -E "\.m2ts$" | | |
sed 's/\.m2ts$//g' | |
This file contains hidden or 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/bash | |
if [ -z "$EKISPERT_KEY" ]; then | |
echo '$EKISPERT_KEY not set' | |
exit 1 | |
fi | |
if [ $# -lt 2 ]; then | |
echo 'Usage: norikae from_station to_station (search_time:HHMM)' | |
exit 1 |
This file contains hidden or 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
/** | |
* Word型 | |
* @typedef {object} Word | |
* @prop {string} type - ワードの種類 | |
* @prop {number} priority? - ワード(演算子)の優先度(大きいほど高い) | |
* @prop {number} value? - ワード(数値)の値 | |
*/ | |
/** |
NewerOlder