This document was forked from https://gist.github.com/yancyn/3f870ca6da4d4a5af5618fbd3ce4dd13.
- wget
- git
- git-svn
#!/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.
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} $$
#!/usr/bin/env bash | |
curl -s https://github.com/... | grep -oE 'https://camo[^"]+' | while read i;do curl -X PURGE "$i";echo;done |
#!/usr/bin/env bash | |
set -euo pipefail | |
if ! [[ $# == 2 ]] | |
then | |
echo "$0 FILE_ID SAVE_PATH" >&2 | |
exit 1 | |
fi |
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); | |
}; | |
}; |
problemNum | shellgei | |
---|---|---|
00000001 | echo test | |
00000002 | echo $(<input.txt) | |
00000003 | seq 10 | |
00000004 | awk '{a=0;for(i=1;i<=NF;){a+=$(i++)}print a}' input.txt | |
00000005 | j=1;for i in {0..10};do echo ${f:-0};((k=f+j,f=j,j=k));done | |
00000006 | bc -l<<<'4*a(1)'|cut -b-12 | |
00000007 | bc -l<<<'scale=999;4*a(1)'|tr -d '\\\\\n'|cut -b-102 | |
00000008 | awk '{print x=$1-(y=$2/2-$1),y}' input.txt | |
00000009 | sed -zr 's/([^\n])\n([^\n])/\1@\2/g' input.txt|sort -rV|while read i;do [ -n "$i" ]&&echo $i$'\n'|tr @ \\n;done|sed \$d |
#!/usr/bin/env bash | |
if ! command -v mecab nkf &>/dev/null | |
then | |
echo "install: mecab nkf" >&1 | |
exit 1 | |
fi | |
read -r input |