Discover Snippets

@fuyac1192209 fuyac1192209 / 2020-fuyac119220 Created at Tue Apr 28 22:22:00 JST 2020
print"卒業までに必要な単位を入力してください\n"
impo = gets.chomp!.to_i
printf("卒業までに必要な単位は%dです。今どれくらい獲得していますか?\n",impo)
got = gets.chomp!.to_i
change = impo - got
printf("あなたが必要とする単位はあと%dです。\n", change)
@yuuji yuuji / reloader.el Created at Tue Oct 22 12:08:15 JST 2019
;;
;; Reload init files (defaults to .emacs, .emacs.el, .emacs.d/init.el)
;;

(defvar reloader-default-init-files
'("~/.emacs" "~/.emacs.el" "~/.emacs.d/init.el")
"Default target files for reloading.
C-u M-x reloader-reload causes prompt for loading file.")

(defun reloader-reload (arg)
@yuuji yuuji / vga.sh Created at Sat May 26 18:51:31 JST 2018
vga.sh
#!/bin/sh
mode=1024x768
while getopts m:l i; do
case $i in
m)	mode=$OPTARG ;;
l)	lvdsmode=1 ;;
esac
done
shift $((OPTIND - 1))