Skip to content

Instantly share code, notes, and snippets.

@YumNumm
Last active August 12, 2022 07:22
Show Gist options
  • Save YumNumm/a64377c40d081050dd64b9ff299708c9 to your computer and use it in GitHub Desktop.
Save YumNumm/a64377c40d081050dd64b9ff299708c9 to your computer and use it in GitHub Desktop.
雲の形に見えない....
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