Write a program which creates a file named DICKS.HTML and writes "<html><body>DICKSDICKSDICKS</body></html>" inside.
Language with the shortest code wins.
>>1
Uh, wouldn't it make more sense to serve it over the Internet by some means? (with-open-file (f "DICKS.HTML :direction :output)
(with-html-output (f)
(:html (:body "DICKSDICKSDICKS"))))
>>11 >>7 54 bytes
Doesn't count if it's not valid code.
Name:
Anonymous2009-08-08 6:24
I have modified the HQ9+ language to include the 'd' instruction, which prints <html><body>DICKSDICKSDICKS</body></html>" to a file named ``DICKS.HTML''. Here is the complete programme:
d
Name:
Anonymous2009-08-08 6:41
>>16
My fork of HQ9+(HQ++) treats empty files as instruction to do the above in 0 bytes.
Name:
xkcd2009-08-08 6:43
In my world all you need is butterfly flapping its wings in special manner to trigger >>17 (no files required)
main(){fputs("<html><body>DICKSDICKSDICKS</body></html>",fopen("DICKS.HTML","w"));}
83 bytes source, run with Tiny C Compiler.
1536 bytes .exe 586bytes compressed in 7z(PPMD)
_______________________________ http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Justice is not revenge - it's deciding for a solution that is oriented towards peace, peace being the harder but more human way of reacting to injury. That is the very basis of the idea of rights.
>>23 fputs before fopen() and then failing to close the fucking file
Jesus Christ you are the most useless piece of shit excuse for a "programmer" on the face of the planet.
>>29 fputs before fopen() and then failing to close the fucking file
Jesus Christ you are the most useless piece of shit excuse for a "programmer" on the face of the planet.
>>30 Frozen-Crybaby getting grouchy and posting as Anonymous
I'm sorry your threads have been spoiled pal ;( Maybe one of the other chans will give a shit about your visionary vaporware project.
Name:
Anonymous2009-08-08 11:16
this is so stupid, why don't you just make a DICKS.HTML file.. fuck making a program to do it
This thread (still) sucks. And I'd urge everyone to properly encapsulate their dicks, perhaps using the GoF "Dick in a Box" pattern. You'll be glad you did, and so will she.
Name:
Anonymous2009-09-12 11:31
>>20 dicks.exe 15.6 KB
dicks++.exe 464 KB a.out 1,2K
What the fuck is that about?
I just created the "dicksdicksdicks" programming language for exactly this purpose. In the dicksdicksdicks language, ANY source code will compile to a program that does exactly what you requested - including the empty source file. So I just made an implementation with a zero length source file.
>>63
I don't know if you were being sarcastic, but I just finished the parser in Haskell.
I changed the multiplication operator to × and the escape character to ♯.
Now to write the compiler...
Name:
Anonymous2009-09-13 20:42
>>66
that's actually the buddhist symbol for peace
Name:
Anonymous2009-09-13 20:45
>>70
So? Are you saying that it wouldn't make a good multiplication symbol?
Name:
Anonymous2009-09-13 21:34
>>70
The swastika is a lot older than Buddhism, and isn't a symbol for peace. It's just a general auspicious thing.
Maybe you thought you were clever by mentioning it, but by now, this sort of thing is common knowledge, in large part because of people like you who think half-remembered trivia is impressive.