Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <header class="page-row"> | |
| <h1>Site Title</h1> | |
| </header> | |
| <main class="page-row page-row-expanded"> | |
| <p>Page content goes here.</p> | |
| </main> | |
| <footer class="page-row"> | |
| <p>Copyright, blah blah blah.</p> |
| #!/bin/bash | |
| # Options / Usage | |
| # put this script in the same directory as your *.cabal file | |
| # it will use the first line of "cabal info ." to determine the package name | |
| # custom options for "cabal haddock" (cabal haddock --help, | |
| # http://www.haskell.org/haddock/doc/html/invoking.html) | |
| CUSTOM_OPTIONS=(--haddock-options='-q aliased') | |
| # hackage server to upload to (and to search uploaded versions for) |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |