Last active
August 12, 2022 07:22
-
-
Save YumNumm/a64377c40d081050dd64b9ff299708c9 to your computer and use it in GitHub Desktop.
雲の形に見えない....
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
eval(s=(%w(require | |
'uri';require'net/http';requi | |
re"json";n='';firstM="東京の明日の天 気は";;e | |
ndM="です!";;res=JSON.parse(Net::HTT P.get_respo | |
nse(URI('https://www.jma.go.jp/bosai/forecast/data/for | |
ecast/010000.json')).body)[8]["srf"]["timeSeries"][0]["are | |
as"]["weathers"][0];;if(res.include?"晴")then;;res="\e[44;97m"+ | |
res+"☀️"+"\e[m";;elsif(res.include?"曇")then;;res="\e[44;97m"+res+" | |
☁"+"\e[m";;elsif(res.include?"雨")then;;res="\e[44;97m#{firstM | |
}#{res}"+"☔"+"#{endM}\e[ m";;;end;puts("n='#{res}'\n" | |
);puts("eval(s=(% w("+s+")*''))");)*"")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment