i wrote some stuff

master
dzwdz 2021-03-29 17:45:32 +00:00
parent 8e13d7f2f5
commit 4c10117919
4 changed files with 46 additions and 3 deletions

View File

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

View File

@ -18,6 +18,7 @@ def submissions(event)
end end
def challenge_page(event) def challenge_page(event)
`mkdir -p #{$LOCAL_BASE}/#{event}/`
file = File.new("#{$LOCAL_BASE}/#{event}/index.html", 'w') file = File.new("#{$LOCAL_BASE}/#{event}/index.html", 'w')
file.write $HTML_HEAD file.write $HTML_HEAD

View File

@ -1,2 +1,19 @@
<h1>how 2 join</h1> <h1>how to join</h1>
<p>TODO</p> <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>

View File

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