i wrote some stuff
parent
8e13d7f2f5
commit
4c10117919
|
@ -0,0 +1,25 @@
|
|||
<p>hi, and welcome to the first ~town golf challenge!</p>
|
||||
<p>in case you're not familiar with code golf - your task is to create the smallest
|
||||
program you can to perform a specific task. <a href="">here's a more detailed
|
||||
explaination</a>, including instructions on how to submitting your solution </p>
|
||||
<p>for now we'll keep it simple: your program has to print the ascii art tilde
|
||||
(pictured below) on stdin, without outputting anything else. you don't have to
|
||||
print the trailing spaces, and you may use any non-whitespace characters instead
|
||||
of ▉. have fun!</p>
|
||||
<pre>
|
||||
▉▉
|
||||
▉▉
|
||||
▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ ▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ ▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉▉▉ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉▉▉ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
|
||||
▉▉▉▉
|
||||
▉▉
|
||||
▉▉ </pre>
|
|
@ -18,6 +18,7 @@ def submissions(event)
|
|||
end
|
||||
|
||||
def challenge_page(event)
|
||||
`mkdir -p #{$LOCAL_BASE}/#{event}/`
|
||||
file = File.new("#{$LOCAL_BASE}/#{event}/index.html", 'w')
|
||||
file.write $HTML_HEAD
|
||||
|
||||
|
|
21
how.html
21
how.html
|
@ -1,2 +1,19 @@
|
|||
<h1>how 2 join</h1>
|
||||
<p>TODO</p>
|
||||
<h1>how to join</h1>
|
||||
<p>
|
||||
in short: put your file in ~/golf/<i>[challenge_name]</i>/. ensure that it's
|
||||
executable (chmod +x your_file) and that it has a shebang
|
||||
</p><hr><p>
|
||||
shebangs are those lines at the beginning of scripts that look like
|
||||
<code>#!/this</code>. they contain the path to the interpreter for the language
|
||||
that you're using, so people can launch them easily. some examples are:
|
||||
<ul>
|
||||
<li>for ruby - #!/usr/bin/ruby</li>
|
||||
<li>for python - #!/usr/bin/python</li>
|
||||
</ul>
|
||||
if you don't know where the interpreter is, you can use the <code>whereis</code>
|
||||
command. if you want to use a compiled language, such as C, you have to use a
|
||||
wrapper script. here are the ones that i know of:
|
||||
<ul>
|
||||
<li>for C/C++ - #!/home/dzwdz/bin/c</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue