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/bash | |
# README.mdというファイルに単純にechoしているため、既にREADME.mdがあった場合内容が削除される 注意 | |
echo -e "**Index**\n\n" >README.md | |
# フォルダが多くなると飛ぶのが面倒なので、[TOC]追加 | |
# TOCに対応していない場合などは考慮していない | |
echo -e "[TOC]\n\n---" >>README.md | |
# ファイルへのリンク部分を出力する関数 | |
# $1が検索フォルダ指定 |
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
javascript:(function(){prompt('Copy to Clipboard','[![]'+'(http://capture.heartrails.com/120x120/border?'+location.href+' "'+document.title.replace(/([\[\]])/g,'\\$1')+'")\n'+document.title.replace(/([\[\]])/g,'\\$1')+']'+'('+location.href+')');})(); |
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
javascript:(function(){n=(t=(document.activeElement || window.getSelection().focusNode)).selectionStart;v=t.value;s=t.scrollTop;t.value=(v.substr(0,n)+(f=[(d=new Date()).getFullYear(),(d.getMonth()+1),d.getDate()].join("/")+" "+[(d=new Date()).getHours(),d.getMinutes(),d.getSeconds()].join(":"))+v.substr(n,v.length));t.scrollTop=s;t.setSelectionRange((p=n+f.length),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
SET nowdate=%date% %time% | |
git add -A | |
for /f "usebackq" %%t IN (`git status`) DO SET HERE=%%t | |
if not "%HERE%"=="" ( | |
git commit -m "・%nowdate%" | |
git push | |
) | |
exit |
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
"use strict"; | |
{ | |
/** | |
* 除外したいURLのドメインリスト | |
*/ | |
const ExcludedURL = [ | |
'www.excite.co.jp', | |
]; |
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
<?php | |
/** | |
* 時間範囲型(PostgreSQLのtstzrange(https://www.postgresql.jp/document/9.4/html/rangetypes.html )を参考にした) | |
*/ | |
class TimeRange { | |
/** | |
* 開始時刻 | |
* @var \DateTimeImmutable null不許可 |