Skip to content
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
0 parents commit 556b2657c6b3a31fa1457b849ef37fad13ab19ea @slaskis slaskis committed Aug 13, 2012
Showing with 575 additions and 0 deletions.
  1. +233 −0 index.html
  2. +17 −0 javascripts/scale.fix.js
  3. +1 −0 params.json
  4. +69 −0 stylesheets/pygment_trac.css
  5. +255 −0 stylesheets/styles.css
233 index.html
@@ -0,0 +1,233 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <title>OpenURI by publicclass</title>
+
+ <link rel="stylesheet" href="stylesheets/styles.css">
+ <link rel="stylesheet" href="stylesheets/pygment_trac.css">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <!--[if lt IE 9]>
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="wrapper">
+ <header>
+ <h1>OpenURI</h1>
+ <p>Asynchronous Open URI, a CommonJS module inspired by Rubys Open-URI library.</p>
+
+ <p class="view"><a href="https://github.com/publicclass/open-uri">View the Project on GitHub <small>publicclass/open-uri</small></a></p>
+
+
+ <ul>
+ <li><a href="https://github.com/publicclass/open-uri/zipball/master">Download <strong>ZIP File</strong></a></li>
+ <li><a href="https://github.com/publicclass/open-uri/tarball/master">Download <strong>TAR Ball</strong></a></li>
+ <li><a href="https://github.com/publicclass/open-uri">View On <strong>GitHub</strong></a></li>
+ </ul>
+ </header>
+ <section>
+ <h1>Asynchronous Open URI</h1>
+
+<p>A CommonJS module inspired by Rubys Open-URI library.</p>
+
+<h2>Install</h2>
+
+<p>It's available on npm, so a simple <code>npm install open-uri</code> should be enough.</p>
+
+<h2>Usage</h2>
+
+<pre><code>var open = require("open-uri");
+
+// Get a website
+open("http://google.com",function(err,google){console.log(google)})
+
+// Get a file
+open("/var/log/system.log",function(err,log){console.log(log)})
+
+// Stream a file to STDOUT
+open("file:///var/log/system.log",process.stdout)
+
+// Stream a website to a file
+var file = require("fs").createWriteStream("/tmp/goog.html")
+open("https://encrypted.google.com/search?q=open+uri",file)
+
+// Chain it
+open("http://google.com",console.log)("http://publicclass.se",process.stdout)
+
+// Get a file off of an FTP
+open("ftp://user:pass@ftp.example.com/myfile.txt",function(err,txt){console.log(txt)})
+</code></pre>
+
+<h2>Supported schemes</h2>
+
+<p>http, https, file &amp; ftp</p>
+
+<p>Uses the <a href="https://github.com/publicclass/addressable">addressable module</a> for parsing the scheme and the <a href="https://github.com/bentomas/node-mime">mime module</a> for parsing the data.</p>
+
+<h3>Options for all schemes</h3>
+
+<ul>
+<li>
+<code>buffer</code> (boolean) For when you only want the body to be buffered and returned as the second argument instead of receiving the direct stream. Defaults to <code>true</code>.</li>
+</ul><h3>Options for HTTP(S)</h3>
+
+<ul>
+<li>
+<code>follow</code> (boolean) Follow redirects. Defaults to <code>true</code>.</li>
+<li>
+<code>gzip</code> (boolean) If the request should be attempted with gzip. Defaults to <code>true</code> if the <a href="https://github.com/waveto/node-compress">node-compress module</a> is available.</li>
+<li>
+<code>headers</code> (object) Headers to pass along with the HTTP request.</li>
+<li>
+<code>method</code> (string) HTTP request method. Default 'GET'.</li>
+<li>
+<code>body</code> (readablestream|string|buffer) A body of data to pass with the request.</li>
+<li>
+<code>key</code> (string) (HTTPS Only) Private key to use for SSL. Defaults to ENV var <code>NODE_HTTPS_KEY</code> or attempts to find it as "./key.pem".</li>
+<li>
+<code>cert</code> (string) (HTTPS Only) Public x509 certificate to use. Defaults to ENV var NODE_HTTPS_CERT or attempts to find it as "./cert.pem".</li>
+<li>
+<code>ca</code> (string|array) (HTTPS Only) An authority certificate or array of authority certificates to check the remote host against.</li>
+</ul><h3>Options for file</h3>
+
+<ul>
+<li>
+<code>encoding</code> (string) The encoding of the file to read.</li>
+</ul><h3>Options for FTP</h3>
+
+<ul>
+<li>
+<code>anonymous</code> (boolean) If no user info is in the URI, add anonymous. Defaults to <code>true</code>.</li>
+</ul><h2>History</h2>
+
+<h3>0.4.1</h3>
+
+<ul>
+<li>[Fix] Added <code>buffer</code>-option to file and ftp schemes.</li>
+<li>[Change] Updated mime dependency to 1.2.5.</li>
+</ul><h3>0.4.0</h3>
+
+<ul>
+<li>[Change] Added the <code>buffer</code> option, which is an inverted <code>stream</code>, which is now deprecated. </li>
+<li>[Fix] Avoid a global variable (by <a href="https://github.com/senorpedro/">senorpedro</a>)</li>
+<li>[Fix] <em>HTTP</em>/<em>HTTPS</em> Only 301, 302 and 307 is proper statusCodes for redirects.</li>
+</ul><h3>0.3.5</h3>
+
+<ul>
+<li>[Fix] Use Buffer.byteLength(body) only on strings, and body.length on Buffers.</li>
+<li>[Fix] Support for broken redirect implementations that give relative Location: headers.</li>
+</ul><h3>0.3.4</h3>
+
+<ul>
+<li>[Fix] Use Buffer.byteLength(body) for Content-Length header as well, it's just better (and fixes a bug where the body was cut off).</li>
+</ul><h3>0.3.3</h3>
+
+<ul>
+<li>[Fix] Avoid 'Out of bounds'-errors by using Buffer.byteLength(chunk) instead of chunk.length.</li>
+</ul><h3>0.3.2</h3>
+
+<ul>
+<li>[Fix] Errors was being thrown when using userinfo in HTTP uris.</li>
+</ul><h3>0.3.1</h3>
+
+<ul>
+<li>[Fix] Updated <code>addressable</code> dependency to 0.3.3. Now both addressable.URI and Nodes built-in URL objects are valid as the <code>uri</code> argument.</li>
+<li>[Fix] Fixed error thrown when an error occurs in utils.buffer().</li>
+</ul><h3>0.3.0</h3>
+
+<ul>
+<li><p>[Feature] Updated <code>addressable</code> dependency to 0.3.1.</p></li>
+<li><p>[Feature] <em>HTTPS</em> Added key and certificate parsing.</p></li>
+<li><p>[Feature] <em>HTTP</em>/<em>HTTPS</em> Added a <code>method</code> option can be used if anything other than GET is desired.</p></li>
+<li><p>[Feature] <em>HTTP</em>/<em>HTTPS</em> Added a <code>body</code> options for passing a payload with the request. Can be either a ReadableStream, a String or a Buffer.</p></li>
+</ul><h3>0.2.2</h3>
+
+<ul>
+<li><p>[Feature] Re-factored the schemes into separate files. Now adding more schemes will be much easier.</p></li>
+<li><p>[Feature] Added a simple binary. Usage: <code>open-uri http://google.com</code></p></li>
+<li><p>[Fix] <em>FTP</em> is now closing properly when completed or failed.</p></li>
+</ul><h3>0.2.1</h3>
+
+<ul>
+<li><p>[Feature] Better parsing of content using the <a href="https://github.com/bentomas/node-mime">mime module</a> for Content-Type lookup.</p></li>
+<li><p>[Feature] <em>FTP</em> Initial support using the <a href="https://github.com/mscdex/node-ftp">node-ftp module</a>.</p></li>
+</ul><h3>0.2.0</h3>
+
+<ul>
+<li><p>[Feature] <em>HTTP(S)</em> Now supports gzip responses (and adds a 'Accept-Encoding: gzip'-header if there is none already).</p></li>
+<li><p>[Feature] <em>HTTP(S)</em> Now decodes JSON if response is of 'Content-Type: application/json'.</p></li>
+<li><p>[Fix] <em>HTTP(S)</em> Fixed an issue with redirects.</p></li>
+</ul><h3>0.1.0</h3>
+
+<ul>
+<li>Initial version.</li>
+</ul><h2>TODO</h2>
+
+<ul>
+<li><p><em>HTTP(S)</em> Support older versions of Node? Currently only support 0.3.6 and up (because of the new HTTP Client API).</p></li>
+<li><p><em>HTTP(S)</em> Proxy support.</p></li>
+<li><p><em>FTP</em> Listing files (when uri.pathname ends with "/")</p></li>
+<li><p><em>FTP</em> Uploading files (when opts.body is passed)</p></li>
+<li><p>A timeout option for all schemes would be useful.</p></li>
+<li>
+<p>A binary, just for fun really. Usage: <code>open-uri http://google.com</code>. </p>
+
+<ul>
+<li>Output to process.stdout by default. </li>
+<li>Allow a REST interface? So if something is written to stdin it's sent as body to the url using POST by default, but definable with -X (curl style!)</li>
+<li>Pass command line arguments as options to the scheme functions. Ex. <code>open-uri -gzip http://google.com</code> sets opts.gzip to true.</li>
+</ul>
+</li>
+<li>
+<p>More schemes support? Suggestions?</p>
+
+<ul>
+<li>Support for opening a file descriptor? Basically a shortcut for fs.readFile(fd).</li>
+<li>S3 (using <a href="https://github.com/LearnBoost/knox">knox module</a>), should list objects when path ends with "/"</li>
+<li>NNTP (using <a href="https://github.com/mscdex/node-nntp">node-nntp module</a>)</li>
+<li>IRC (using <a href="https://github.com/martynsmith/node-irc">node-irc module</a>), open("irc://<a href="mailto:bot@chat.freenode.net">bot@chat.freenode.net</a>/nodejs") -&gt; callback for each message? with a say function in the callback? ex: <code>function(err,from,to,msg,say){ if( to == "bot" &amp;&amp; ~msg.indexOf("hello") ){ say(from+": HI!") } }</code> <code>this</code> could be the irc object so the socket can be closed...</li>
+<li>SQL query. Is there a standard URI for this? Something like: <code>mysql://root@localhost/mydb?query=SELECT * FROM x;</code> or <code>sqlite3://file.sqlite?query=SELECT * FROM x;</code> possibly with support for input escaping. open("sqlite3://file.sqlite?query=SELECT * FROM x WHERE id=? AND name=?;",[12,"bob"]) using the drivers own escaping. With a callback like <code>function(err,rows,meta){}</code>.</li>
+</ul>
+</li>
+</ul><h2>Thanks to</h2>
+
+<ul>
+<li><p><a href="https://github.com/mikeal">Mikeal Rogers</a>, for his excellent <a href="https://github.com/mikeal/request/">request module</a>.</p></li>
+<li><p><a href="https://github.com/visionmedia">TJ Holowaychuck</a>, for his minimalist projects inspiring this little tool.</p></li>
+<li><p><a href="https://github.com/mscdex">Brian White</a>, for <a href="https://github.com/mscdex/node-ftp">ftp</a> and <a href="https://github.com/mscdex/node-nntp">nntp</a> modules.</p></li>
+</ul><h2>License</h2>
+
+<p>(The MIT License)</p>
+
+<p>Copyright (c) 2011 Robert Sköld &lt;<a href="mailto:robert@publicclass.se">robert@publicclass.se</a>&gt;</p>
+
+<p>Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:</p>
+
+<p>The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.</p>
+
+<p>THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
+ </section>
+ <footer>
+ <p>This project is maintained by <a href="https://github.com/publicclass">publicclass</a></p>
+ <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
+ </footer>
+ </div>
+ <script src="javascripts/scale.fix.js"></script>
+
+ </body>
+</html>
17 javascripts/scale.fix.js
@@ -0,0 +1,17 @@
+var metas = document.getElementsByTagName('meta');
+var i;
+if (navigator.userAgent.match(/iPhone/i)) {
+ for (i=0; i<metas.length; i++) {
+ if (metas[i].name == "viewport") {
+ metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
+ }
+ }
+ document.addEventListener("gesturestart", gestureStart, false);
+}
+function gestureStart() {
+ for (i=0; i<metas.length; i++) {
+ if (metas[i].name == "viewport") {
+ metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
+ }
+ }
+}
1 params.json
@@ -0,0 +1 @@
+{"note":"Don't delete this file! It's used internally to help with page regeneration.","tagline":"Asynchronous Open URI, a CommonJS module inspired by Rubys Open-URI library.","body":"# Asynchronous Open URI\r\n\r\n A CommonJS module inspired by Rubys Open-URI library.\r\n\r\n\r\n## Install\r\n\r\n It's available on npm, so a simple `npm install open-uri` should be enough.\r\n\r\n\r\n## Usage\r\n\r\n\tvar open = require(\"open-uri\");\r\n\r\n\t// Get a website\r\n\topen(\"http://google.com\",function(err,google){console.log(google)})\r\n\r\n\t// Get a file\r\n\topen(\"/var/log/system.log\",function(err,log){console.log(log)})\r\n\r\n\t// Stream a file to STDOUT\r\n\topen(\"file:///var/log/system.log\",process.stdout)\r\n\r\n\t// Stream a website to a file\r\n\tvar file = require(\"fs\").createWriteStream(\"/tmp/goog.html\")\r\n\topen(\"https://encrypted.google.com/search?q=open+uri\",file)\r\n\r\n\t// Chain it \r\n\topen(\"http://google.com\",console.log)(\"http://publicclass.se\",process.stdout)\r\n\r\n\t// Get a file off of an FTP\r\n\topen(\"ftp://user:pass@ftp.example.com/myfile.txt\",function(err,txt){console.log(txt)})\r\n\r\n\r\n## Supported schemes\r\n\r\n http, https, file & ftp\r\n\r\nUses the [addressable module](https://github.com/publicclass/addressable) for parsing the scheme and the [mime module](https://github.com/bentomas/node-mime) for parsing the data.\r\n\r\n\r\n### Options for all schemes\r\n\r\n* `buffer` (boolean) For when you only want the body to be buffered and returned as the second argument instead of receiving the direct stream. Defaults to `true`.\r\n\r\n\r\n### Options for HTTP(S)\r\n\r\n* `follow` (boolean) Follow redirects. Defaults to `true`.\r\n* `gzip` (boolean) If the request should be attempted with gzip. Defaults to `true` if the [node-compress module](https://github.com/waveto/node-compress) is available.\r\n* `headers` (object) Headers to pass along with the HTTP request.\r\n* `method` (string) HTTP request method. Default 'GET'.\r\n* `body` (readablestream|string|buffer) A body of data to pass with the request.\r\n* `key` (string) (HTTPS Only) Private key to use for SSL. Defaults to ENV var `NODE_HTTPS_KEY` or attempts to find it as \"./key.pem\".\r\n* `cert` (string) (HTTPS Only) Public x509 certificate to use. Defaults to ENV var NODE_HTTPS_CERT or attempts to find it as \"./cert.pem\".\r\n* `ca` (string|array) (HTTPS Only) An authority certificate or array of authority certificates to check the remote host against.\r\n\r\n### Options for file\r\n\r\n* `encoding` (string) The encoding of the file to read.\r\n\r\n\r\n### Options for FTP\r\n\r\n* `anonymous` (boolean) If no user info is in the URI, add anonymous. Defaults to `true`.\r\n\r\n\r\n\r\n## History\r\n\r\n### 0.4.1\r\n\r\n* [Fix] Added `buffer`-option to file and ftp schemes.\r\n* [Change] Updated mime dependency to 1.2.5.\r\n\r\n### 0.4.0\r\n\r\n* [Change] Added the `buffer` option, which is an inverted `stream`, which is now deprecated. \r\n* [Fix] Avoid a global variable (by [senorpedro](https://github.com/senorpedro/))\r\n* [Fix] _HTTP_/_HTTPS_ Only 301, 302 and 307 is proper statusCodes for redirects.\r\n\r\n### 0.3.5\r\n\r\n* [Fix] Use Buffer.byteLength(body) only on strings, and body.length on Buffers.\r\n* [Fix] Support for broken redirect implementations that give relative Location: headers.\r\n\r\n### 0.3.4\r\n\r\n* [Fix] Use Buffer.byteLength(body) for Content-Length header as well, it's just better (and fixes a bug where the body was cut off).\r\n\r\n### 0.3.3\r\n\r\n* [Fix] Avoid 'Out of bounds'-errors by using Buffer.byteLength(chunk) instead of chunk.length.\r\n\r\n### 0.3.2\r\n\r\n* [Fix] Errors was being thrown when using userinfo in HTTP uris.\r\n\r\n### 0.3.1\r\n\r\n* [Fix] Updated `addressable` dependency to 0.3.3. Now both addressable.URI and Nodes built-in URL objects are valid as the `uri` argument.\r\n* [Fix] Fixed error thrown when an error occurs in utils.buffer().\r\n\r\n### 0.3.0\r\n\r\n* [Feature] Updated `addressable` dependency to 0.3.1.\r\n\r\n* [Feature] _HTTPS_ Added key and certificate parsing.\r\n\r\n* [Feature] _HTTP_/_HTTPS_ Added a `method` option can be used if anything other than GET is desired.\r\n\r\n* [Feature] _HTTP_/_HTTPS_ Added a `body` options for passing a payload with the request. Can be either a ReadableStream, a String or a Buffer.\r\n\r\n### 0.2.2\r\n\r\n* [Feature] Re-factored the schemes into separate files. Now adding more schemes will be much easier.\r\n\r\n* [Feature] Added a simple binary. Usage: `open-uri http://google.com`\r\n\r\n* [Fix] _FTP_ is now closing properly when completed or failed.\r\n\r\n### 0.2.1\r\n\r\n* [Feature] Better parsing of content using the [mime module](https://github.com/bentomas/node-mime) for Content-Type lookup.\r\n\r\n* [Feature] _FTP_ Initial support using the [node-ftp module](https://github.com/mscdex/node-ftp).\r\n\r\n\r\n### 0.2.0\r\n\r\n* [Feature] _HTTP(S)_ Now supports gzip responses (and adds a 'Accept-Encoding: gzip'-header if there is none already).\r\n\r\n* [Feature] _HTTP(S)_ Now decodes JSON if response is of 'Content-Type: application/json'.\r\n\r\n* [Fix] _HTTP(S)_ Fixed an issue with redirects.\r\n\r\n\r\n### 0.1.0\r\n\r\n* Initial version.\r\n\r\n\r\n## TODO\r\n\r\n* _HTTP(S)_ Support older versions of Node? Currently only support 0.3.6 and up (because of the new HTTP Client API).\r\n\r\n* _HTTP(S)_ Proxy support.\r\n\r\n* _FTP_ Listing files (when uri.pathname ends with \"/\")\r\n\r\n* _FTP_ Uploading files (when opts.body is passed)\r\n\r\n* A timeout option for all schemes would be useful.\r\n\r\n* A binary, just for fun really. Usage: `open-uri http://google.com`. \r\n - Output to process.stdout by default. \r\n - Allow a REST interface? So if something is written to stdin it's sent as body to the url using POST by default, but definable with -X (curl style!)\r\n - Pass command line arguments as options to the scheme functions. Ex. `open-uri -gzip http://google.com` sets opts.gzip to true.\r\n\r\n* More schemes support? Suggestions?\r\n - Support for opening a file descriptor? Basically a shortcut for fs.readFile(fd).\r\n - S3 (using [knox module](https://github.com/LearnBoost/knox)), should list objects when path ends with \"/\"\r\n - NNTP (using [node-nntp module](https://github.com/mscdex/node-nntp))\r\n - IRC (using [node-irc module](https://github.com/martynsmith/node-irc)), open(\"irc://bot@chat.freenode.net/nodejs\") -> callback for each message? with a say function in the callback? ex: `function(err,from,to,msg,say){ if( to == \"bot\" && ~msg.indexOf(\"hello\") ){ say(from+\": HI!\") } }` `this` could be the irc object so the socket can be closed...\r\n - SQL query. Is there a standard URI for this? Something like: `mysql://root@localhost/mydb?query=SELECT * FROM x;` or `sqlite3://file.sqlite?query=SELECT * FROM x;` possibly with support for input escaping. open(\"sqlite3://file.sqlite?query=SELECT * FROM x WHERE id=? AND name=?;\",[12,\"bob\"]) using the drivers own escaping. With a callback like `function(err,rows,meta){}`.\r\n\r\n## Thanks to\r\n\r\n* [Mikeal Rogers](https://github.com/mikeal), for his excellent [request module](https://github.com/mikeal/request/).\r\n\r\n* [TJ Holowaychuck](https://github.com/visionmedia), for his minimalist projects inspiring this little tool.\r\n\r\n* [Brian White](https://github.com/mscdex), for [ftp](https://github.com/mscdex/node-ftp) and [nntp](https://github.com/mscdex/node-nntp) modules.\r\n\r\n\r\n## License \r\n\r\n(The MIT License)\r\n\r\nCopyright (c) 2011 Robert Sk&ouml;ld &lt;robert@publicclass.se&gt;\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n'Software'), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","name":"OpenURI","google":""}
69 stylesheets/pygment_trac.css
@@ -0,0 +1,69 @@
+.highlight { background: #ffffff; }
+.highlight .c { color: #999988; font-style: italic } /* Comment */
+.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.highlight .k { font-weight: bold } /* Keyword */
+.highlight .o { font-weight: bold } /* Operator */
+.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
+.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #aa0000 } /* Generic.Error */
+.highlight .gh { color: #999999 } /* Generic.Heading */
+.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #555555 } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
+.highlight .gt { color: #aa0000 } /* Generic.Traceback */
+.highlight .kc { font-weight: bold } /* Keyword.Constant */
+.highlight .kd { font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #009999 } /* Literal.Number */
+.highlight .s { color: #d14 } /* Literal.String */
+.highlight .na { color: #008080 } /* Name.Attribute */
+.highlight .nb { color: #0086B3 } /* Name.Builtin */
+.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
+.highlight .no { color: #008080 } /* Name.Constant */
+.highlight .ni { color: #800080 } /* Name.Entity */
+.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
+.highlight .nn { color: #555555 } /* Name.Namespace */
+.highlight .nt { color: #000080 } /* Name.Tag */
+.highlight .nv { color: #008080 } /* Name.Variable */
+.highlight .ow { font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #009999 } /* Literal.Number.Float */
+.highlight .mh { color: #009999 } /* Literal.Number.Hex */
+.highlight .mi { color: #009999 } /* Literal.Number.Integer */
+.highlight .mo { color: #009999 } /* Literal.Number.Oct */
+.highlight .sb { color: #d14 } /* Literal.String.Backtick */
+.highlight .sc { color: #d14 } /* Literal.String.Char */
+.highlight .sd { color: #d14 } /* Literal.String.Doc */
+.highlight .s2 { color: #d14 } /* Literal.String.Double */
+.highlight .se { color: #d14 } /* Literal.String.Escape */
+.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
+.highlight .si { color: #d14 } /* Literal.String.Interpol */
+.highlight .sx { color: #d14 } /* Literal.String.Other */
+.highlight .sr { color: #009926 } /* Literal.String.Regex */
+.highlight .s1 { color: #d14 } /* Literal.String.Single */
+.highlight .ss { color: #990073 } /* Literal.String.Symbol */
+.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #008080 } /* Name.Variable.Class */
+.highlight .vg { color: #008080 } /* Name.Variable.Global */
+.highlight .vi { color: #008080 } /* Name.Variable.Instance */
+.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
+
+.type-csharp .highlight .k { color: #0000FF }
+.type-csharp .highlight .kt { color: #0000FF }
+.type-csharp .highlight .nf { color: #000000; font-weight: normal }
+.type-csharp .highlight .nc { color: #2B91AF }
+.type-csharp .highlight .nn { color: #000000 }
+.type-csharp .highlight .s { color: #A31515 }
+.type-csharp .highlight .sc { color: #A31515 }
255 stylesheets/styles.css
@@ -0,0 +1,255 @@
+@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
+
+body {
+ padding:50px;
+ font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
+ color:#777;
+ font-weight:300;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color:#222;
+ margin:0 0 20px;
+}
+
+p, ul, ol, table, pre, dl {
+ margin:0 0 20px;
+}
+
+h1, h2, h3 {
+ line-height:1.1;
+}
+
+h1 {
+ font-size:28px;
+}
+
+h2 {
+ color:#393939;
+}
+
+h3, h4, h5, h6 {
+ color:#494949;
+}
+
+a {
+ color:#39c;
+ font-weight:400;
+ text-decoration:none;
+}
+
+a small {
+ font-size:11px;
+ color:#777;
+ margin-top:-0.6em;
+ display:block;
+}
+
+.wrapper {
+ width:860px;
+ margin:0 auto;
+}
+
+blockquote {
+ border-left:1px solid #e5e5e5;
+ margin:0;
+ padding:0 0 0 20px;
+ font-style:italic;
+}
+
+code, pre {
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+ color:#333;
+ font-size:12px;
+}
+
+pre {
+ padding:8px 15px;
+ background: #f8f8f8;
+ border-radius:5px;
+ border:1px solid #e5e5e5;
+ overflow-x: auto;
+}
+
+table {
+ width:100%;
+ border-collapse:collapse;
+}
+
+th, td {
+ text-align:left;
+ padding:5px 10px;
+ border-bottom:1px solid #e5e5e5;
+}
+
+dt {
+ color:#444;
+ font-weight:700;
+}
+
+th {
+ color:#444;
+}
+
+img {
+ max-width:100%;
+}
+
+header {
+ width:270px;
+ float:left;
+ position:fixed;
+}
+
+header ul {
+ list-style:none;
+ height:40px;
+
+ padding:0;
+
+ background: #eee;
+ background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
+ background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+
+ border-radius:5px;
+ border:1px solid #d2d2d2;
+ box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
+ width:270px;
+}
+
+header li {
+ width:89px;
+ float:left;
+ border-right:1px solid #d2d2d2;
+ height:40px;
+}
+
+header ul a {
+ line-height:1;
+ font-size:11px;
+ color:#999;
+ display:block;
+ text-align:center;
+ padding-top:6px;
+ height:40px;
+}
+
+strong {
+ color:#222;
+ font-weight:700;
+}
+
+header ul li + li {
+ width:88px;
+ border-left:1px solid #fff;
+}
+
+header ul li + li + li {
+ border-right:none;
+ width:89px;
+}
+
+header ul a strong {
+ font-size:14px;
+ display:block;
+ color:#222;
+}
+
+section {
+ width:500px;
+ float:right;
+ padding-bottom:50px;
+}
+
+small {
+ font-size:11px;
+}
+
+hr {
+ border:0;
+ background:#e5e5e5;
+ height:1px;
+ margin:0 0 20px;
+}
+
+footer {
+ width:270px;
+ float:left;
+ position:fixed;
+ bottom:50px;
+}
+
+@media print, screen and (max-width: 960px) {
+
+ div.wrapper {
+ width:auto;
+ margin:0;
+ }
+
+ header, section, footer {
+ float:none;
+ position:static;
+ width:auto;
+ }
+
+ header {
+ padding-right:320px;
+ }
+
+ section {
+ border:1px solid #e5e5e5;
+ border-width:1px 0;
+ padding:20px 0;
+ margin:0 0 20px;
+ }
+
+ header a small {
+ display:inline;
+ }
+
+ header ul {
+ position:absolute;
+ right:50px;
+ top:52px;
+ }
+}
+
+@media print, screen and (max-width: 720px) {
+ body {
+ word-wrap:break-word;
+ }
+
+ header {
+ padding:0;
+ }
+
+ header ul, header p.view {
+ position:static;
+ }
+
+ pre, code {
+ word-wrap:normal;
+ }
+}
+
+@media print, screen and (max-width: 480px) {
+ body {
+ padding:15px;
+ }
+
+ header ul {
+ display:none;
+ }
+}
+
+@media print {
+ body {
+ padding:0.4in;
+ font-size:12pt;
+ color:#444;
+ }
+}

0 comments on commit 556b265

Please sign in to comment.
Something went wrong with that request. Please try again.