- 群馬大学情報学部 1年 山田ハヤオ/伊藤 駿
- Fascode Network所属
- フロントエンドからマイコンまで幅広く勉強中
- よく書く言語はGolangとシェルスクリプト
This file contains hidden or 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/sh | |
| # 参考 | |
| # https://qiita.com/_-_-_-_-_/items/214d537aae2c1488692c | |
| get_random(){ | |
| od -v -An --width=1 -tu1 -N1 < /dev/urandom | \ | |
| awk "{ print \$1 % 10 }" | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| "math/rand" | |
| "os" | |
| "strconv" | |
| ) |
This file contains hidden or 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
| ebuild U ] kde-plasma/kwin-5.26.2.1 [5.26.0] | |
| [ebuild U ] kde-plasma/kscreenlocker-5.26.2 [5.26.0] | |
| [ebuild U ] kde-plasma/libkworkspace-5.26.2 [5.26.0] | |
| [ebuild U ] kde-plasma/kde-cli-tools-5.26.2 [5.26.0] | |
| [ebuild R ] x11-themes/QGnomePlatform-0.9.0 USE="wayland%*" | |
| [blocks B ] >=app-accessibility/at-spi2-core-2.46.0 (">=app-accessibility/at-spi2-core-2.46.0" is soft blocking dev-libs/atk-2.46.0) | |
| !!! Multiple package instances within a single package slot have been pulled | |
| !!! into the dependency graph, resulting in a slot conflict: |
This file contains hidden or 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 | |
| ClearScreen() { printf "\033[2J" ; } | |
| ClearRight() { printf "\033[0K" ; } | |
| ClearLeft() { printf "\033[1K" ; } | |
| ClearLine() { printf "\033[2K" ; } | |
| MoveCursor() { printf "\033[%d;%dH" "$1" "$2" ; } | |
| MoveCursorUp() { printf "\033[%dA" "$1" ; } | |
| MoveCursorDown() { printf "\033[%dB" "$1" ; } | |
| MoveCursorRight() { printf "\033[%dC" "$1" ; } | |
| MoveCursorLeft() { printf "\033[%dD" "$1" ; } |
This file contains hidden or 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 | |
| CaptureSpecialKeys(){ | |
| local SELECTION rest | |
| IFS= read -r -n1 -s SELECTION | |
| #echo "$SELECTION" | hexdump >&2 | |
| if [[ $SELECTION == $'\x1b' ]]; then | |
| read -r -n2 -s rest | |
| SELECTION+="$rest" |
This file contains hidden or 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 | |
| while IFS= read -r -n1 -s SELECTION && [[ -n "$SELECTION" ]]; do | |
| if [[ $SELECTION == $'\x1b' ]]; then | |
| read -r -n2 -s rest | |
| SELECTION+="$rest" | |
| fi | |
| case $SELECTION in | |
| $'\x1b\x5b\x41') #up arrow |
This file contains hidden or 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 | |
| # CurrentVersion >= 5 | |
| if [ -z "$BASH_VERSION" ]; then | |
| echo "This script works only Bash 5 or higher." | |
| exit 1 | |
| elif ! [[ "${BASH_VERSINFO[0]}" -ge 5 ]]; then | |
| echo "Error: Your Bash version is not supported by this script." >&2 | |
| exit 1 | |
| fi |
This file contains hidden or 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 | |
| # shellcheck source=/dev/null | |
| source /dev/stdin < <(curl -sL "https://raw.githubusercontent.com/Hayao0819/FasBashLib/26e244d6f3839bcf159787dfd3e230df39e4500c/fasbashlib.sh") | |
| Fsblib.RequireLib "BetterShell" "ParseArg" "Ini" "Emerge" "Array" | |
| # Initial variable | |
| SpecifiedRepo=() | |
| #PrintRepoName=false |