$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
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
#!/usr/bin/env ruby | |
def get_haiku n | |
len = 17 | |
# Ver 1: | |
# https://horicun.moo.jp/contents/haiku/random.html?number_search=1 | |
hiragana = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをがぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽぁぃぅぇぉゃゅょゎっゐゑーゔん" | |
# Ver 2: |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
flex_home="$HOME/.flex" | |
if [[ -v FLEX_HOME && "$FLEX_HOME" != "$flex_home" ]]; then | |
echo '"$FLEX_HOME" (global) != "$flex_home": '"\"${FLEX_HOME}\" and \"${flex_home}\"" >& 2 | |
exit 1 | |
fi |
This document was forked from https://gist.github.com/yancyn/3f870ca6da4d4a5af5618fbd3ce4dd13.
- wget
- git
- git-svn
Note
備考
Tip
ちょっとしたヒントとか、知っておくと良いこと
Important
重要事項
[!WARNING]
記事: https://github.blog/2022-05-19-math-support-in-markdown/
When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are:
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
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
#!/usr/bin/env bash | |
set -euo pipefail | |
LOG="${LOG:-}" | |
[[ -n "$LOG" ]] && echo Verbose LOG will not be printed. | |
SKIP="${SKIP:-}" | |
[[ -n "$SKIP" ]] && echo Processes of image conversion will be skipped. |
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
#!/usr/bin/env bash | |
curl -s https://github.com/... | grep -oE 'https://camo[^"]+' | while read i;do curl -X PURGE "$i";echo;done |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
if ! [[ $# == 2 ]] | |
then | |
echo "$0 FILE_ID SAVE_PATH" >&2 | |
exit 1 | |
fi |
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
const sweepBomb = (i, j) => document.getElementsByTagName("tr")[i].getElementsByTagName("td")[j].click(); | |
const sweep = () => { | |
document.getElementById("restartBtn").click(); | |
for(var i = 0; i < 15; i++) { | |
for(var j = 0; j < 15; j++) { | |
if(bomb_data[i][j] == 0){ | |
sweepBomb(i,j); | |
}; | |
}; |