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
Start = Final | |
/ Term | |
Final = head:Integer "^^" tail:Integer { | |
if (tail >= 9) { | |
return '$\\underbrace{' + head + '^{' + head + '^{' + head + '^{.^{.^{.^{' + head + '^{' + head + '^{' + head + '}}}}}}}}}_{' + tail + '}$'; | |
} else { | |
return '$' + (head + '^{').repeat(tail) + '}'.repeat(tail - 1) + String.fromCharCode(0x7D) + '$'; | |
} | |
} |
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
<script src="https://minipop.github.io/sionicjs/demo/pico.min.js"></script> | |
<script src="https://minipop.github.io/sionicjs/dist/sionic.js"></script> | |
<textarea id="textarea2" rows="5" cols="10">@5 l8 o7 c | |
d | |
e</textarea> | |
<br> | |
<textarea id="textarea4" rows="1" cols="10">@5 l2 </textarea> | |
<br> | |
<textarea id="textarea3" rows="5" cols="10">c;e;g; | |
c;f;a;</textarea> |
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
<script src="https://minipop.github.io/sionicjs/demo/pico.min.js"></script> | |
<script src="https://minipop.github.io/sionicjs/dist/sionic.js"></script> | |
<textarea id="textarea3">c;e;g</textarea> | |
<input type="button" value="play" onclick="clickBtn5()" /> | |
<script> | |
let textarea = document.getElementById("textarea3"); | |
textarea.addEventListener("input", clickBtn5); | |
function clickBtn5() { | |
const ta3 = document.getElementById("textarea3").value; |
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
s/"/"/g | |
s/&/\&/g | |
s/'/'/g | |
s/</</g | |
s/>/>/g | |
s/ / /g | |
s/¡/¡/g | |
s/¢/¢/g | |
s/£/£/g | |
s/¤/¤/g |
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 -NoProfile -ExecutionPolicy Unrestricted "$s=[scriptblock]::create((gc \"%~f0\"|?{$_.readcount -gt 1})-join\"`n\");&$s" %*&goto:eof | |
# 縦長化 | |
# カレントdir配下の指定種類の画像をすべて縦長画像にする(サブディレクトリ含む) | |
# [危険!] 画像ファイルを上書きします。 | |
# 安全のため、元の画像ファイルが別の場所にバックアップされている状態で実行してください。 | |
param($searchPath = $(pwd)) | |
# 設定 | |
$magick=".\magick.exe" # [前提] magick.exe と magic.xml が指定の場所にあること | |
$pattern=".*jpg|.*gif" # 変換対象の画像ファイル名(正規表現) |
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
@echo off | |
setlocal | |
set invalidUsage=false | |
if "%~1"=="" set invalidUsage=true | |
if "%~2"=="" set invalidUsage=true | |
if "%invalidUsage%"=="true" ( | |
echo Usage: ln-s TARGET LINK_NAME | |
exit /b 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
@powershell -NoProfile -ExecutionPolicy Unrestricted "$s=[scriptblock]::create((gc \"%~f0\"|?{$_.readcount -gt 1})-join\"`n\");&$s" %*&goto:eof | |
# | |
# ファイル一覧取得 | |
# | |
# 出力項目 | |
# ファイル名、ファイルサイズ、更新日付、フルパスディレクトリ名 (属性、親ディレクトリ名、拡張子、フルパス も出力可。コメントアウトしてあります) | |
# 参考 | |
# http://qiita.com/yjnk/items/a69920748e96272bfd10 | |
# 引数 | |
# パターン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
/* | |
* @file commentOutEclipseLike.js | |
* @brief 選択範囲、もしくはカーソル行をコメントアウト/アンコメントするサクラエディタマクロ | |
* @author cat2151 | |
* | |
* phodra氏作成の同様のマクロを改変したもの。 | |
* http://sakura-editor.sourceforge.net/cgi-bin/cyclamen/cyclamen.cgi?log=macro&tree=c591 | |
* | |
* ・コメントアウト行を選択した場合はアンコメント。そうでない場合はコメントアウト。 | |
* ・クイックハックなのでリファクタリング不足。 |
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 -NoProfile -ExecutionPolicy Unrestricted "$s=[scriptblock]::create((gc \"%~f0\"|?{$_.readcount -gt 1})-join\"`n\");&$s" %*&goto:eof | |
# http://qiita.com/cd01/items/82829ba0ec0f59e1b04d | |
# http://winscript.jp/powershell/221 | |
Param($argBat) | |
$src = @' | |
static function helloFunc(arg) { | |
var msg = "hello " + arg + " world"; |
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
@%windir%\SysWOW64\cmd.exe /C powershell -NoProfile -ExecutionPolicy Unrestricted "$s=[scriptblock]::create((gc \"%~f0\"|?{$_.readcount -gt 1})-join\"`n\");&$s" %*&goto:eof | |
# http://qiita.com/cd01/items/82829ba0ec0f59e1b04d | |
# http://blog.livedoor.jp/morituri/archives/53997724.html | |
Param($argBat) | |
$objjs = New-Object -comobject ScriptControl | |
$objjs.Language = "Javascript" | |
$src = @' |
NewerOlder