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

Alright /g/ I have a challenge for you: Write me a Hello World

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 2

File: 1479418471567.jpg (51KB, 640x474px) Image search: [Google]
1479418471567.jpg
51KB, 640x474px
Alright /g/ I have a challenge for you:

Write me a Hello World as efficiently as possible, however you code must not contain the text "Hello World" and you are not allowed to simply print a series of characters
>>
>>57987841
Should say:
"he never came home and maxed out the credit card on milk"
>>
echo "aGVsbG8gd29yZAo=" | base64 --decode
>>
here you go, just wait a bit.

while :; do tr -cd " dlollrHoWe" < /dev/urandom | head -c 11; echo; done
>>
>>57987841
a joke that shit must have been written by a woman.
>>
>>57988674
Yeah well you must be a double woman because I don't see you coming up with a better joke.
>>
print(''.join([chr(x) for x in [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]]))
>>
File: 1481670179347.jpg (118KB, 640x474px) Image search: [Google]
1481670179347.jpg
118KB, 640x474px
>>57988757
>>
>>57987912
are you an artist?
>>
>>57987841
>asian wife
Yep, he is a programmer.
>>
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
>>
>>57987841
print("Hello ".concat("World"))
>>
>>57987841

p 'dlroW olleH'.reverse
>>
>>57987841
Define efficiently?

from bs4 import BeautifulSoup
import requests

r = requests.get('http://boards.4chan.org/g/thread/57987841/alright-g-i-have-a-challenge-for-you')
soup = BeautifulSoup(r.content, "lxml")

content = soup.find_all('meta')[2].get('content')
words = content.split(' ')

print(words[11]+ ' '+words[12])
>>
.... . .-.. .-.. --- .-- --- .-. .-.. -..
>>
>>57989717

Ah wait, in this case Python might even be shorter than Ruby:

print('dlroW olleH'[::-1])
>>
puts [binary decode uuencode {+2&5L;&\@5V]R;&0}]
>>
>>57987841
int main()
{
int one = 0x48656c6c;
int two = 0x6f20576f;
int three = 0x00726c64;

printf("%c%c%c%c%c%c%c%c%c%c%c", \
((one & 0xff000000) >> 24),
((one & 0x00ff0000) >> 16),
((one & 0x0000ff00) >> 8),
((one & 0x000000ff) >> 0),
((two & 0xff000000) >> 24),
((two & 0x00ff0000) >> 16),
((two & 0x0000ff00) >> 8),
((two & 0x000000ff) >> 0),
((three & 0xff0000) >> 16),
((three & 0x00ff00) >> 8),
((three & 0x0000ff) >> 0));
}
>>
>>57989731
Casual
import basc_py4chan as py4c
print(' '.join(py4c.Board('g').get_thread(57987841).topic.text_comment.split(' ')[10:12]))
Thread posts: 19
Thread images: 2


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.