i wrote some stuff

Esse commit está contido em:
dzwdz 2021-03-29 17:45:32 +00:00
commit 4c10117919
4 arquivos alterados com 46 adições e 3 exclusões

25
challenges/00-tilde/desc.html Arquivo normal
Ver arquivo

@ -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>

Ver arquivo

@ -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

Ver arquivo

@ -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>

Ver arquivo

@ -23,7 +23,7 @@ a { color: #83a598 }
box-shadow: .2em .2em .2em #0005;
}
.sol pre {
pre {
border-left: 1px solid;
padding-left: .5em;
margin: .5em 0 .5em;