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 python3 | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import matplotlib.animation as animation | |
from fractions import Fraction as fract | |
# from mpl_toolkits.mplot3d import Axes3D | |
fig = plt.figure(figsize=[16,9]) |
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
# 完全実装版 | |
curl -s https://shsh.host | tail -n 3 | head -n 1 | sed 's/var signed_array =//g; s|</script>||g; s|;||g' | jq -cr '."iPad6,11"' | tr -d "{" | tr -d "}" | tr "," "\n" | tr -d "\"" | awk -F : 'BEGIN {print "SHSH checker"} {print " "$1 " " $2} END{print "以上" NR "個のSHSHが取得可能です"}' | |
# ツイート用短縮版(Zshでは動きません) | |
curl -s https://shsh.host | tail -n 3 | head -n 1 | sed 's/var signed_array =//g; s|</script>||g; s|;||g' | jq -cr '."iPad6,11"' | tr -d { | tr -d } | tr "," "\n" | tr -d "\"" | awk -F: 'BEGIN {print "SHSH checker"} {print " "$1 " " $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 -eu | |
nocolor=false | |
debug=false | |
install_config=() | |
installer_mountpoint="/var/alterinstall" |
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
// RunProcess(最小指数, 最大指数, 底) | |
function RunProcess(startNum, processMax, ProcX){ | |
for (let i = BigInt(startNum); i <= processMax; i++) { | |
let AnswerA, AnswerB | |
ProcX=BigInt(ProcX) | |
// ProcY=BigInt(processMax)-BigInt(i) |
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
❶これから33班の発表を始めます。礼 | |
❷さて皆さん、プログラミングってなんかよくわかんないけど、かっこよくないですか? | |
エリートって感じが満ち溢れてますよね。今回僕らは、プログラミングを学ぼうと奮闘しました。 | |
❸今の世は皆さんご存知の通り、情報化社会です。小学校でプログラミング教育が始まるほどになっています。ただ、情報を扱う職業に需要があるのに、肝心の技術者が少なめなんです。収入は割とありますし、良い獲物じゃないですか。どうです皆さん、プログラミングやってみたくなりませんか? | |
❹ひとまずプログラミングの基礎を調べました。けど面倒くさかったです。そこで、どうせなら楽しく、あわよくば分かりやすくという野望のもと、ゲーム制作の過程でプログラミングを学ぶことにしました。しかし、今回の探究はあまり時間もなかったので、誰でも知っている簡単なゲームを再現してみました。 | |
スマホやパソコンなど、どこでも動かせるように今回はウェブサイトでゲームを作りました。 |
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 | |
# Arch Linux helper script to set/unset/check/fix the enabled Java environment | |
# This program may be freely redistributed under the terms of the GNU General Public License | |
# | |
# Author: Guillaume ALAUX <guillaume@archlinux.org> | |
# Yamada Hayao <hayao@fascode.net> | |
JVM_DIR=/usr/lib/jvm | |
DEFAULT_NAME=default |
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
11c11 | |
< DEFAULT_NAME_JRE=default-runtime | |
--- | |
> DEFAULT_NAME_JRE="default-runtime" | |
18c18,19 | |
< if [ $(id -u) -ne 0 ]; then | |
--- | |
> #if [ $(id -u) -ne 0 ]; then | |
> if (( UID != 0 )); then | |
27c28 |
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 | |
# | |
# Yamada Hayao <hayao@fascode.net> <Twitter: @Hayao0819> | |
# (c) 2019-2021 Fascode Network | |
# | |
#================================================================ | |
# | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# Version 2, December 2004 | |
# |
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 -eu | |
#shellcheck disable=SC2120 | |
getRemotePkgList(){ | |
local _split="${1-\|}" | |
#while read -r db; do | |
# gzip -dc "${db}" | grep -a -A 1 -e "%NAME%" -e "%ARCH%" -e "%DESC%" | grep -axv "\-\-" | sed "s|%NAME%|\x0\x0|g" | sed "s|^%[^%]*%$|\x0|g" | tr -d "\n" | sed "s|\x0\x0|\n|g" | sed "s|\(.*\)\x0\(.*\)\x0\(.*\)|\1${_split}\3${_split}\2|g" | |
#done < <(find "$(pacman-conf DBPath)/sync" -mindepth 1 -maxdepth 1 -name "*.db" -printf "%p\n") | sort -t "${_split#\\}" | grep -v "^$" |
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 | |
# text [-b/-c color/-g color/-f/-l/] | |
# -b: 太字, -f: 点滅, -l: 下線, -n: リセット, | |
text() { | |
local OPTIND OPTARG _arg _textcolor _decotypes="" _bgcolor | |
while getopts "c:bflng:" _arg; do | |
case "${_arg}" in | |
c | g) | |
case "${OPTARG}" in |