Skip to content

Instantly share code, notes, and snippets.

View WhiteCat6142's full-sized avatar
:octocat:

K.O. WhiteCat6142

:octocat:
  • Titech->U-Tokyo (master)
  • Tokyo,Japan
View GitHub Profile
@WhiteCat6142
WhiteCat6142 / supermoon.py
Last active July 26, 2021 11:07
supermoon.py ver 1.1
"""
MIT License
Copyright 2021 Whitecat6142
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
@WhiteCat6142
WhiteCat6142 / supermoon.py
Created June 29, 2021 01:40
新月用簡易スクリプト supermoon Ver1
"""
MIT License
Copyright 2021 Whitecat6142
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
dnf install -y rkhunter zsh
chsh -s /usr/bin/zsh
rkhunter --update
rkhunter --propupd
rkhunter -c --sk
dnf install -y Thunar git ImageMagick alternatives automake boinc-client boinc-manager breeze-icon-theme clamav claws-mail dia dkms aria2 exfat-utils extra-cmake-modules freetype-devel fuse-exfat gap ghostscript-tools-fonts gnome-tweaks google-noto-cjk-fonts-common google-noto-sans-cjk-ttc-fonts gparted gphoto2 gthumb ifuse java-1.8.0-openjdk-openjfx k4dirstat kicad kleopatra krita libreoffice-langpack-ja miniupnpc-devel ibus-mozc mozc ngspice openblas p7zip poedit pngquant qalculate-gtk rawtherapee raw-thumbnailer squid thunar-archive-plugin tumbler tuned tlp xorriso siril audacity sox woff2 gnome-shell chrome-gnome-shell gnome-session-wayland-session gnome-system-monitor gedit gconf-editor gnome-system-log lightdm-gtk lightdm-gtk-greeter-settings mesa-vulkan-drivers libva-utils gimp
<<COMMENT_OUT
rpmfusion-free-release
import Control.Monad
import System.IO
main=setting>>zipWithM ask q a>>=print.jug.sum
setting=hSetBuffering stdin NoBuffering>>hSetBuffering stdout NoBuffering
ask x y =print x>>getChar>>=return.fromEnum.(==y)
jug n |n >= 8 = "You win!"
|otherwise="You lose"
q = ["Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","Q10"]
a = "1234123412"
bsort=foldr bs []
where bs x []=[x]
bs x (y:ys)|x<=y =(x:y:ys)
|otherwise =(y:bs x ys)
console.log("123go!");