Jump to...
redirecting...

Log for OwO

/ruby_interactive@mmis_js_bot
require "readline"
loop do
line = Readline.readline
break unless line
puts line
end
|hello
|sound good
||
|?
/bat_interactive@mmis_js_bot @echo off
set/p owo=
echo %owo%
|owo?
||
/bat_interactive@mmis_js_bot @echo off
set/p owo=
echo %owo%
echo End.
|owo
||
程式自行退出的話,也會自動terminate輸入啦
/php_interactive
<?php
echo(file_get_contents('php://input'));
/bat@mmis_js_bot @echo off
set /a 0xFF
叭叭wine cmd實現有問題
[photo](media:AgADBQADvqcxG1w1wVdk8EBlY3ecYjh80DIABN82TGM4j4C4y18BAAEC@telegram)
idk,反正cmd也沒啥用
/bat@mmis_js_bot @echo off
set /a val=0xFF
echo %val%
ㄏㄏ
/ruby_interactive@mmis_js_bot
require "readline"
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
loop do
line = Readline.readline
break unless line
next unless line =~ /^\d{4}$/
cross = line.chars & target
a, b = 0, 0
unless cross.empty?
cross.each do |c|
if target.index(c) == line.index c
a += 1
else
b += 1
end
end
puts "%dA%dB" % [a, b]
break if a == 4
end
/ruby_interactive@mmis_js_bot
require "readline"
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
loop do
line = Readline.readline
break unless line
next unless line =~ /^\d{4}$/
cross = line.chars & target
a, b = 0, 0
unless cross.empty?
cross.each do |c|
if target.index(c) == line.index c
a += 1
else
b += 1
end
end
end
puts "%dA%dB" % [a, b]
break if a == 4
end
乾 為毛我會突然想在 tg 上寫 code
你不覺得local寫完再來貼會比較好嗎?
所以我才在吐槽自己 R
/ruby@mmis_js_bot @two_chars_words = %w"朱砂 天下 杀伐 人家 韶华 风华 繁华 血染 墨染 白衣 素衣 嫁衣 倾城 孤城 空城 旧城 旧人 伊人 心疼 春风 古琴 无情 迷离 奈何 断弦 焚尽 散乱 陌路 乱世 笑靥 浅笑 明眸 轻叹 烟火 一生 三生 浮生 桃花 梨花 落花 烟花 离殇 情殇 爱殇 剑殇 灼伤 仓皇 匆忙 陌上 清商 焚香 墨香 微凉 断肠 痴狂 凄凉 黄梁 未央 成双 无恙 虚妄 凝霜 洛阳 长安 江南 忘川 千年 纸伞 烟雨 回眸 公子 红尘 红颜 红衣 红豆 红线 青丝 青史 青冢 白发 白首 白骨 黄土 黄泉 碧落 紫陌"
@four_chars_words = %w"情深缘浅 情深不寿 莫失莫忘 阴阳相隔 如花美眷 似水流年 眉目如画 曲终人散 繁华落尽 不诉离殇 一世长安"
@sentence_model = %w"xx,xx,xx了xx。 xxxx,xxxx,不过是一场xxxx。 你说xxxx,我说xxxx,最后不过xxxx。 xx,xx,许我一场xxxx。 一x一x一xx,半x半x半xx。 你说xxxxxxxx,后来xxxxxxxx。 xxxx,xxxx,终不敌xxxx。"

def get_sentence
model = @sentence_model.sample(1)[0].clone
while model.include?'xxxx'
model.sub!(/xxxx/, @four_chars_words.sample(1)[0])
end
while model.include?'xx'
model.sub!(/xx/, @two_chars_words.sample(1)[0])
end
while model.include?'x'
model.sub!(/x/, @two_chars_words.sample(1)[0][rand(0..1)])
end
puts model
end
get_sentence
' A')
('A ' 💦💦
/ruby_interactive@mmis_js_bot
require "readline"
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
loop do
line = Readline.readline
break unless line
next unless line =~ /^\d{4}$/
cross = line.chars & target
a, b = 0, 0
unless cross.empty?
cross.each do |c|
if target.index(c) == line.index(c)
a += 1
else
b += 1
end
end
end
puts "%dA%dB" % [a, b]
break if a == 4
end
|1234
oops
|5678
||
......
你應該是沒有把tty預設的行為關掉吧…所以才會輸出一份到stdout
好噢
/ruby_interactive@mmis_js_bot
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
loop do
line = readline.chomp
break unless line
next unless line =~ /^\d{4}$/
cross = line.chars & target
a, b = 0, 0
unless cross.empty?
cross.each do |c|
if target.index(c) == line.index(c)
a += 1
else
b += 1
end
end
end
puts "%dA%dB" % [a, b]
break if a == 4
end
|1234
|1234
||
/ruby@mmis_js_bot
puts STDIN.sync
/ruby_interactive@mmis_js_bot
require "readline"
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
STDIN.echo = false
STDOUT.sync = true
loop do
line = Readline.readline
break unless line
next unless line =~ /^\d{4}$/
cross = line.chars & target
a, b = 0, 0
unless cross.empty?
cross.each do |c|
if target.index(c) == line.index(c)
a += 1
else
b += 1
end
end
end
puts "%dA%dB" % [a, b]
break if a == 4
end
/ruby_interactive@mmis_js_bot
require "readline"
require "io/console"
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
STDIN.echo = false
STDOUT.sync = true
loop do
line = Readline.readline
break unless line
next unless line =~ /^\d{4}$/
cross = line.chars & target
a, b = 0, 0
unless cross.empty?
cross.each do |c|
if target.index(c) == line.index(c)
a += 1
else
b += 1
end
end
end
puts "%dA%dB" % [a, b]
break if a == 4
end
/ruby_interactive@mmis_js_bot
require "readline"
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
STDOUT.sync = true
loop do
line = Readline.readline
break unless line
next unless line =~ /^\d{4}$/
cross = line.chars & target
a, b = 0, 0
unless cross.empty?
cross.each do |c|
if target.index(c) == line.index(c)
a += 1
else
b += 1
end
end
end
puts "%dA%dB" % [a, b]
break if a == 4
end
|1234
5678
|5678
1638
|1638
|5249
|9724
|2974
|0000
嗯這 echo
不過起來 ok
/ruby_interactive@mmis_js_bot
require "readline"
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
STDOUT.sync = true
loop do
line = Readline.readline
break unless line
next unless line =~ /^\d{4}$/
next unless line.chars.uniq.length == line.length
cross = line.chars & target
a, b = 0, 0
puts "%dA%dB" % ( a, b = cross.partition { |c| target.index(c) == line.index(c) }.map(&:length))
break if a == 4
end
|1234
|5678
|0012
|1638
|5274
|1278
|5634
|5639
|5609
|1640
|5204
|6740
|4067
|4076
|0467
/ruby_interactive@mmis_js_bot
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
STDOUT.sync = true
loop do
begin
line = readline.chomp
rescue EOFError
next
end
next unless line =~ /^\d{4}$/
next unless line.chars.uniq.length == line.length
cross = line.chars & target
a, b = 0, 0
puts "%dA%dB" % ( a, b = cross.partition { |c| target.index(c) == line.index(c) }.map(&:length))
break if a == 4
end
||
/ruby_interactive@mmis_js_bot
target = (0..9).to_a.shuffle.shift(4).map(&:to_s)
STDOUT.sync = true
loop do
begin
line = readline.chomp
rescue EOFError
puts "Quit : P"
exit
end
next unless line =~ /^\d{4}$/
next unless line.chars.uniq.length == line.length
cross = line.chars & target
a, b = 0, 0
puts "%dA%dB" % ( a, b = cross.partition { |c| target.index(c) == line.index(c) }.map(&:length))
break if a == 4
end
puts "Finish! 💐"
|1234
|5678
9278
|9278
|9487
|0284
||
/php
<?php echo(system("ip addr"));
果然沒有(
/c_interactive@mmis_js_bot
#include <stdio.h>
int main() {
char s[64];
while (scanf("%s", s) != EOF)
printf("%s\n", s);
return 9487;
}
OuO
|喵
|喵喵
||
有 buff ?
應該吧 剛剛我用 ruby 是遇到這狀況沒錯