-
Notifications
You must be signed in to change notification settings - Fork 26
/
solutions.html
50 lines (36 loc) · 1.76 KB
/
solutions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>Solutions</title>
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<p class="subtle"><a href="/">« Boston Python puzzles</a></p>
<h1>Solutions</h1>
<p>A number of puzzles have member-contributed solutions linked at the end.
If you would like to do the same, you have two options:</p>
<p>1. Send an email to [email protected] with your solution.</p>
<p>2. <a href="https://help.github.com/articles/creating-a-pull-request">Make a pull request</a>
against <a href="https://github.com/BostonPython/puzzles">this repo</a>. Make a directory
named after yourself in the "solutions" directory. For example it might be the "solutions/pat" directory.
Put you solution in that directory, for example, "solutions/pat/blockparty.py". The exact filename
doesn't matter, but it needs to be meaningful so you can make a link.</p>
<p>Then add a link to the end of the appropriate puzzle page. The general form
of the link is:</p>
<pre>
https://github.com/BostonPython/puzzles/blob/gh-pages/solutions/YOURNAME/YOURFILE.py
</pre>
<p>for example,</p>
<pre>
https://github.com/BostonPython/puzzles/blob/gh-pages/solutions/pat/blockparty.py
</pre>
<p>You have to put the link at the bottom of the page with some HTML around it,
like this:</p>
<pre>
<h2>Solutions</h2>
<ul>
<li>Pat Smiths's solution is <a href="https://github.com/BostonPython/puzzles/blob/gh-pages/solutions/pat/blockparty.py">blockparty.py</a></li>
</ul>
<p>If you have a solution you'd like to share see the <a href="solutions.html">Solutions page</a> for instructions.</p>
</pre>
<p>Yes, this is a pain. If you have a better idea, drop me a line at [email protected],
maybe we'll do it your way!</p>