[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
QUICK WRITE A PROGRAM THAT SPLIT A STRING RANDOM NUMBER OF TIME
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 18
Thread images: 3
File: killer_crow.gif (64 KB, 416x430) Image search: [Google]
killer_crow.gif
64 KB, 416x430
QUICK WRITE A PROGRAM THAT

SPLIT A STRING RANDOM NUMBER OF TIME WITH A RANDOM CHAR EVERY 3 ASCII VALUE MULTIPLY FIRST TWO, DIVIDE BY THE THIRD REGENERATE NEW STRING FROM THAT THE OUTPUT ON SCREEN, IF IT GOES ON DOUBLE OR SINGLE NUMBER CUT THE OVERFLOW, IF IT GOES OVER ASCII TABLE DIVIDE BY 2 AGAIN

OR THIS BIRD IS GONNA STAB YOU
>>
weak
>>
>>55631938
repeat in english
>>
sick general op xD
>>
File: IMG_20160308_204024.jpg (2 MB, 2448x3264) Image search: [Google]
IMG_20160308_204024.jpg
2 MB, 2448x3264
What does that even mean
>>55631938
>>
>>55631938
Print(Rand())
>>
>>55631938

Holy fuck!!

Gimme two minutes..
>>
I'm not doing your homework again.
>>
>>55632641
this guy gets it.
>>
>>55631938
>QUICK DO MY HOMEWORK

Some fag is actually gonna do it
>>
>>55634265
I thought stack overflow was for homework.
>>
>>55631938
Done:
eval eval '"'.


('['^',').('`'|'(').('`'|')').('`'|',').('`'|'%').('{'^'[').'('.('^'^('`'|'/')).')'.('{'^"\[").'\\'.
'{'.('{'^'[').('!'^'+').('{'^'[').('{'^'[').('['^'+').('['^')').('`'|')').('`'|'.').('['^'/').("\{"^
'[').'\\'.'"'.('{'^'"').('`'|'/').('['^'.').('{'^'[').('`'|'!').('['^')').('`'|'%').('{'^'[').("\`"|
'!').('{'^'[').('`'|'.').('`'|')').('`'|"'").('`'|"'").('`'|'%').('['^')').'\\'.'\\'.('`'|'.').'\\'.
'"'.';'.('!'^'+').'\\'.'}'.'"';$:='.'^'~';$~='@'|'(';$^=')'^'[';$/='`'|'.';$,='('^'}';$\='`'|'!';#;#
>>
>>55631938
I normally like the stabby bird threads but this one is a blatant "do my HW /g/"
>>
>>55631938
Still asking /g/ to do your homework, I see.
And people are still falling for it, I see.
>>
>>55631938
what am I reading
>>
>blatant copycat of true knifebird
baka
>>
File: fucking_bird.png (33 KB, 1443x451) Image search: [Google]
fucking_bird.png
33 KB, 1443x451
>>55631938


God damnit, just let me live..

text = <<END
QUICK WRITE A PROGRAM THAT
SPLIT A STRING RANDOM NUMBER OF TIME WITH A RANDOM CHAR
EVERY 3 ASCII VALUE MULTIPLY FIRST TWO, DIVIDE BY THE THIRD
REGENERATE NEW STRING FROM THAT THE OUTPUT ON SCREEN,
IF IT GOES ON DOUBLE OR SINGLE NUMBER CUT THE OVERFLOW,
IF IT GOES OVER ASCII TABLE DIVIDE BY 2 AGAIN
OR THIS BIRD IS GONNA STAB YOU
END

text = text.split (65 + rand(25)).chr

text.map! do |s|
tmp = 0
s.split('').each_index do |i|
if i%3==2 then tmp += (s[i-2].ord * s[i-1].ord / s[i].ord) end
end
tmp
end

text.map! do |s|
while s > 90 do s/=2 end; s > 65 ? s.chr : " "
end

p text.join
>>
>>55631938

I don't even understand any of this post.
Thread replies: 18
Thread images: 3

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.