Skip to content
Browse files

Use LF line endings instead of CRLF.

  • Loading branch information...
1 parent 95265fb commit 781475f85b55648b335e1fd086a1c7c2eeb7b460 @mathiasbynens mathiasbynens committed Sep 17, 2011
View
30 README.md
@@ -1,16 +1,16 @@
-
-## To contribute:
-
- * Fork
- * Add a post under `/_posts` (follow format of other posts)
- * The name is in the format: `YYYY-MM-DD-{SLUG}.md`
- * Before the content of your post:
-
- ---
- title: Your post's title
- layout: post
- author: YOUR NAME
- authorurl: http://YOUR WEBSITE? (or leave blank)
- ---
-
+
+## To contribute:
+
+ * Fork
+ * Add a post under `/_posts` (follow format of other posts)
+ * The name is in the format: `YYYY-MM-DD-{SLUG}.md`
+ * Before the content of your post:
+
+ ---
+ title: Your post's title
+ layout: post
+ author: YOUR NAME
+ authorurl: http://YOUR WEBSITE? (or leave blank)
+ ---
+
* Send pull request
View
12 _config.yml
@@ -1,7 +1,7 @@
-auto: true
-permalink: /:year/:month/:day/:title
-pygments: true
-paginate: 5
-exclude:
-- README.md
+auto: true
+permalink: /:year/:month/:day/:title
+pygments: true
+paginate: 5
+exclude:
+- README.md
- Rakefile
View
96 _layouts/page.html
@@ -1,49 +1,49 @@
-<!doctype html>
-
-<meta charset="utf-8" />
-
-{% if page.title %}
- <title>{{page.title}} - Ugly JS</title>
-{% else %}
- <title>Ugly JS</title>
-{% endif %}
-
-<link href="http://feeds.feedburner.com/UglyJS" rel="alternate" title="Ugly JS" type="application/atom+xml" />
-
-<link rel="stylesheet" href="/assets/ugly.css" />
-<link rel="stylesheet" href="/assets/pyg.css" />
-
-<h1><a href="/">/Ugly/ + 'JavaScript'</a></h1>
-
-<div id="c">
-
- <p class="info">
- A place for ugly, silly, or just-plain-crap JavaScript.
- </p>
-
- {{ content }}
-
-</div>
-
-<div id="wt">
- <p>
- <a href="http://feeds.feedburner.com/UglyJS">Subscribe</a> to get more ugliness!
- <br/>.........<br/>
- <a href="https://github.com/uglyjs/uglyjs.github.com">Fork</a> then send a pull request to contribute.
- </p>
-</div>
-
-<script>
-
- var _gaq = [['_setAccount', 'UA-3768993-8'], ['_trackPageview']];
-
- (function(ga, s) {
- ga.async = true;
- ga.src = 'http://www.google-analytics.com/ga.js';
- s.parentNode.insertBefore(ga, s);
- }(
- document.createElement('script'),
- document.getElementsByTagName('script')[0]
- ));
-
+<!doctype html>
+
+<meta charset="utf-8" />
+
+{% if page.title %}
+ <title>{{page.title}} - Ugly JS</title>
+{% else %}
+ <title>Ugly JS</title>
+{% endif %}
+
+<link href="http://feeds.feedburner.com/UglyJS" rel="alternate" title="Ugly JS" type="application/atom+xml" />
+
+<link rel="stylesheet" href="/assets/ugly.css" />
+<link rel="stylesheet" href="/assets/pyg.css" />
+
+<h1><a href="/">/Ugly/ + 'JavaScript'</a></h1>
+
+<div id="c">
+
+ <p class="info">
+ A place for ugly, silly, or just-plain-crap JavaScript.
+ </p>
+
+ {{ content }}
+
+</div>
+
+<div id="wt">
+ <p>
+ <a href="http://feeds.feedburner.com/UglyJS">Subscribe</a> to get more ugliness!
+ <br/>.........<br/>
+ <a href="https://github.com/uglyjs/uglyjs.github.com">Fork</a> then send a pull request to contribute.
+ </p>
+</div>
+
+<script>
+
+ var _gaq = [['_setAccount', 'UA-3768993-8'], ['_trackPageview']];
+
+ (function(ga, s) {
+ ga.async = true;
+ ga.src = 'http://www.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(ga, s);
+ }(
+ document.createElement('script'),
+ document.getElementsByTagName('script')[0]
+ ));
+
</script>
View
52 _layouts/post.html
@@ -1,27 +1,27 @@
----
-layout: page
----
-
-<div class="post">
-
- <h2 class="meta title">{{page.title}}</h2>
-
- <div class="body">{{content}}</div>
-
- <span class="meta">
-
- {% if page.author %}
- Posted by
- {% if page.authorurl %}
- <a href="{{post.authorurl}}">{{page.author}}</a>
- {% else %}
- {{page.author}}
- {% endif %}
- on
- {% endif %}
-
- {{page.date | date_to_string}} | <a href="{{page.url}}">linky</a>
-
- </span>
-
+---
+layout: page
+---
+
+<div class="post">
+
+ <h2 class="meta title">{{page.title}}</h2>
+
+ <div class="body">{{content}}</div>
+
+ <span class="meta">
+
+ {% if page.author %}
+ Posted by
+ {% if page.authorurl %}
+ <a href="{{post.authorurl}}">{{page.author}}</a>
+ {% else %}
+ {{page.author}}
+ {% endif %}
+ on
+ {% endif %}
+
+ {{page.date | date_to_string}} | <a href="{{page.url}}">linky</a>
+
+ </span>
+
</div>
View
46 _posts/2011-09-07-pointless-if.md
@@ -1,24 +1,24 @@
----
-title: Pointless If statement
-layout: post
-author: James
-authorurl: http://padolsey.net
----
-
-We've all seen this:
-
-{% highlight javascript %}
-if (kRegex.test(value)) {
- return true;
-} else {
- return false;
-}
-{% endhighlight %}
-
-Eew.
-
-*Beautified*:
-
-{% highlight javascript %}
-return kRegex.test(value);
+---
+title: Pointless If statement
+layout: post
+author: James
+authorurl: http://padolsey.net
+---
+
+We've all seen this:
+
+{% highlight javascript %}
+if (kRegex.test(value)) {
+ return true;
+} else {
+ return false;
+}
+{% endhighlight %}
+
+Eew.
+
+*Beautified*:
+
+{% highlight javascript %}
+return kRegex.test(value);
{% endhighlight %}
View
46 _posts/2011-09-08-tribute-doc-write.md
@@ -1,24 +1,24 @@
----
-title: Nostalgic Tribute to document.write
-layout: post
-author: James
-authorurl: http://padolsey.net
----
-
-I feel almost nostalgic at the sight of this. A tear may be shed, not just from the pain that the code induces, but from the memory of how humble things once were...
-
-{% highlight javascript %}
-function wrtOut2(){
- parent.main.document.write(ls
- +"<P><FORM><INPUT TYPE='button' NAME"
- +"='but' VALUE=' I want to play again! '"
- +" onClick='parent.location.href=\"s30.ht"
- +"m\";'><P><INPUT TYPE='button' NAME"
- +"='but1' VALUE=' Let Me See the Scripts '"
- +" onClick='parent.location.href=\"s52.ht"
- +"m\";'></FORM></FONT></BODY></HT"
- +"ML><P>");
-}
-{% endhighlight %}
-
+---
+title: Nostalgic Tribute to document.write
+layout: post
+author: James
+authorurl: http://padolsey.net
+---
+
+I feel almost nostalgic at the sight of this. A tear may be shed, not just from the pain that the code induces, but from the memory of how humble things once were...
+
+{% highlight javascript %}
+function wrtOut2(){
+ parent.main.document.write(ls
+ +"<P><FORM><INPUT TYPE='button' NAME"
+ +"='but' VALUE=' I want to play again! '"
+ +" onClick='parent.location.href=\"s30.ht"
+ +"m\";'><P><INPUT TYPE='button' NAME"
+ +"='but1' VALUE=' Let Me See the Scripts '"
+ +" onClick='parent.location.href=\"s52.ht"
+ +"m\";'></FORM></FONT></BODY></HT"
+ +"ML><P>");
+}
+{% endhighlight %}
+
All credit to a *truly* great publication: [The Ugly JavaScript Book](http://www.jorika.com/books/ugly/)
View
100 _posts/2011-09-09-a-function-for-each-cloud.md
@@ -1,51 +1,51 @@
----
-title: A function for each cloud
-layout: post
-author: James
-authorurl: http://padolsey.net
----
-
-Some poor Google employee [had the job](http://wave.google.com/maintenance/index.html) of making a maintenance page for the once-hyped Google Wave. Apparently, we need a function for each cloud, and each wave:
-
-{% highlight javascript %}
-var cloudMoved = false;
-var cloud2Moved = false;
-var cloud3Moved = false;
-var WAVE_TIME = 6000;
-
-$(init);
-
-function init()
-{
- cloudMove();
- cloud2Move();
- cloud3Move();
- waves2Out();
- waves3Out();
-}
-
-function cloudMove()
-{
- if (!cloudMoved) {
- $("#cloud").css("left", $("#cloud").offset().left)
- }
-
- $("#cloud").animate(
- //...
- )
-}
-
-function cloud2Move()
-{
- if (!cloud2Moved) {
- $("#cloud2")
- .css("left", $("#cloud2").offset().left)
- }
-
- $("#cloud2").animate(
- //...
- )
-}
-
-function cloud3Move() //... etc.
+---
+title: A function for each cloud
+layout: post
+author: James
+authorurl: http://padolsey.net
+---
+
+Some poor Google employee [had the job](http://wave.google.com/maintenance/index.html) of making a maintenance page for the once-hyped Google Wave. Apparently, we need a function for each cloud, and each wave:
+
+{% highlight javascript %}
+var cloudMoved = false;
+var cloud2Moved = false;
+var cloud3Moved = false;
+var WAVE_TIME = 6000;
+
+$(init);
+
+function init()
+{
+ cloudMove();
+ cloud2Move();
+ cloud3Move();
+ waves2Out();
+ waves3Out();
+}
+
+function cloudMove()
+{
+ if (!cloudMoved) {
+ $("#cloud").css("left", $("#cloud").offset().left)
+ }
+
+ $("#cloud").animate(
+ //...
+ )
+}
+
+function cloud2Move()
+{
+ if (!cloud2Moved) {
+ $("#cloud2")
+ .css("left", $("#cloud2").offset().left)
+ }
+
+ $("#cloud2").animate(
+ //...
+ )
+}
+
+function cloud3Move() //... etc.
{% endhighlight %}
View
88 _posts/2011-09-10-if-mania.md
@@ -1,45 +1,45 @@
----
-title: If mania
-layout: post
-author: James
-authorurl: http://padolsey.net
----
-
-Some people enjoy <code>if</code> statements and have an unhealthy obsession with redundant parentheses...
-
-{% highlight javascript %}
-// this function checks which class and subject u have selected
-// and set the value of book accordingly and the name of file that will be open after button clicked
-
-if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="English"))
-{
- document.test.tbook.options[0].text="..Select Book Title..";
- document.test.tbook.options[1].text="Marigold";
- document.test.tbook.options[1].value="textbook.htm?aeen1=0-10"
-}
-else if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="Mathematics"))
-{
- document.test.tbook.options[0].text="..Select Book Title..";
- document.test.tbook.options[1].text="Math-Magic";
- document.test.tbook.options[1].value="textbook.htm?aemh1=0-13"
- document.test.tbook.options[2].text="Ganit Ka Jaadu";
- document.test.tbook.options[2].value="textbook.htm?ahmh1=0-13"
-}
-else if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="Hindi"))
-{
- document.test.tbook.options[0].text="..Select Book Title..";
- document.test.tbook.options[1].text="Rimjhim";
- document.test.tbook.options[1].value="textbook.htm?ahhn1=0-23"
-}
-else if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="Urdu"))
-{
- document.test.tbook.options[0].text="..Select Book Title..";
- document.test.tbook.options[1].text="Ibtedai Urdu-I";
- document.test.tbook.options[1].value="textbook.htm?aulb1=0-27"
- document.test.tbook.options[2].text="Riyazi";
- document.test.tbook.options[2].value="textbook.htm?auri1=0-17"
-}
-/// ... it continues!
-{% endhighlight %}
-
+---
+title: If mania
+layout: post
+author: James
+authorurl: http://padolsey.net
+---
+
+Some people enjoy <code>if</code> statements and have an unhealthy obsession with redundant parentheses...
+
+{% highlight javascript %}
+// this function checks which class and subject u have selected
+// and set the value of book accordingly and the name of file that will be open after button clicked
+
+if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="English"))
+{
+ document.test.tbook.options[0].text="..Select Book Title..";
+ document.test.tbook.options[1].text="Marigold";
+ document.test.tbook.options[1].value="textbook.htm?aeen1=0-10"
+}
+else if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="Mathematics"))
+{
+ document.test.tbook.options[0].text="..Select Book Title..";
+ document.test.tbook.options[1].text="Math-Magic";
+ document.test.tbook.options[1].value="textbook.htm?aemh1=0-13"
+ document.test.tbook.options[2].text="Ganit Ka Jaadu";
+ document.test.tbook.options[2].value="textbook.htm?ahmh1=0-13"
+}
+else if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="Hindi"))
+{
+ document.test.tbook.options[0].text="..Select Book Title..";
+ document.test.tbook.options[1].text="Rimjhim";
+ document.test.tbook.options[1].value="textbook.htm?ahhn1=0-23"
+}
+else if((document.test.tclass.value==1) && (document.test.tsubject.options[sind].text=="Urdu"))
+{
+ document.test.tbook.options[0].text="..Select Book Title..";
+ document.test.tbook.options[1].text="Ibtedai Urdu-I";
+ document.test.tbook.options[1].value="textbook.htm?aulb1=0-27"
+ document.test.tbook.options[2].text="Riyazi";
+ document.test.tbook.options[2].value="textbook.htm?auri1=0-17"
+}
+/// ... it continues!
+{% endhighlight %}
+
Some lookup table, e.g. in JSON, would probably suffice for managing this type of functionality.
View
60 _posts/2011-09-11-browser-inference-worst.md
@@ -1,31 +1,31 @@
----
-title: Browser Inference at its worst?
-layout: post
-author: James
-authorurl: http://padolsey.net
----
-
-... or rather, feature-based browser detection, from which it is inferred that another feature/quality occurs (in this case, a time zone offset):
-
-{% highlight javascript %}
-//remove time zone offset in IE
-if (window.ActiveXObject) {
- obj[i].created_at = obj[i].created_at.replace(/[+]\d{4}/, "");
-}
-{% endhighlight %}
-
-*Window haz property X? Browser must be E. Therefore, E must have unrelated feature Y.*
-
-*Relevant* feature detection would be better:
-
-{% highlight javascript %}
-var canParseTimeOffsetWithoutDesignator = !isNaN(
- +new Date('Mon Jan 01 00:00:00 +0000 2000')
-);
-
-if (canParseTimeOffsetWithoutDesignator) {
- // ...
-}
-{% endhighlight %}
-
+---
+title: Browser Inference at its worst?
+layout: post
+author: James
+authorurl: http://padolsey.net
+---
+
+... or rather, feature-based browser detection, from which it is inferred that another feature/quality occurs (in this case, a time zone offset):
+
+{% highlight javascript %}
+//remove time zone offset in IE
+if (window.ActiveXObject) {
+ obj[i].created_at = obj[i].created_at.replace(/[+]\d{4}/, "");
+}
+{% endhighlight %}
+
+*Window haz property X? Browser must be E. Therefore, E must have unrelated feature Y.*
+
+*Relevant* feature detection would be better:
+
+{% highlight javascript %}
+var canParseTimeOffsetWithoutDesignator = !isNaN(
+ +new Date('Mon Jan 01 00:00:00 +0000 2000')
+);
+
+if (canParseTimeOffsetWithoutDesignator) {
+ // ...
+}
+{% endhighlight %}
+
*Something I never knew: IE appears to require a timezone designator along with the offset, so `+0000` won't do, but e.g. `GMT+0000` will do fine.*
View
138 assets/pyg.css
@@ -1,70 +1,70 @@
-.highlight .hll { background-color: #333333 }
-.highlight pre { background: #111111; color: #ffffff }
-.highlight .c { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment */
-.highlight .err { color: #ffffff } /* Error */
-.highlight .g { color: #ffffff } /* Generic */
-.highlight .k { color: #fb660a; font-weight: bold } /* Keyword */
-.highlight .l { color: #ffffff } /* Literal */
-.highlight .n { color: #ffffff } /* Name */
-.highlight .o { color: #ffffff } /* Operator */
-.highlight .x { color: #ffffff } /* Other */
-.highlight .p { color: #ffffff } /* Punctuation */
-.highlight .cm { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment.Multiline */
-.highlight .cp { color: #ff0007; font-weight: bold; font-style: italic; background-color: #0f140f } /* Comment.Preproc */
-.highlight .c1 { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment.Single */
-.highlight .cs { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment.Special */
-.highlight .gd { color: #ffffff } /* Generic.Deleted */
-.highlight .ge { color: #ffffff } /* Generic.Emph */
-.highlight .gr { color: #ffffff } /* Generic.Error */
-.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
-.highlight .gi { color: #ffffff } /* Generic.Inserted */
-.highlight .go { color: #444444; background-color: #222222 } /* Generic.Output */
-.highlight .gp { color: #ffffff } /* Generic.Prompt */
-.highlight .gs { color: #ffffff } /* Generic.Strong */
-.highlight .gu { color: #ffffff; font-weight: bold } /* Generic.Subheading */
-.highlight .gt { color: #ffffff } /* Generic.Traceback */
-.highlight .kc { color: #fb660a; font-weight: bold } /* Keyword.Constant */
-.highlight .kd { color: #fb660a; font-weight: bold } /* Keyword.Declaration */
-.highlight .kn { color: #fb660a; font-weight: bold } /* Keyword.Namespace */
-.highlight .kp { color: #fb660a } /* Keyword.Pseudo */
-.highlight .kr { color: #fb660a; font-weight: bold } /* Keyword.Reserved */
-.highlight .kt { color: #cdcaa9; font-weight: bold } /* Keyword.Type */
-.highlight .ld { color: #ffffff } /* Literal.Date */
-.highlight .m { color: #0086f7; font-weight: bold } /* Literal.Number */
-.highlight .s { color: #FFEF73 } /* Literal.String */
-.highlight .na { color: #ff0086; font-weight: bold } /* Name.Attribute */
-.highlight .nb { color: #ffffff } /* Name.Builtin */
-.highlight .nc { color: #ffffff } /* Name.Class */
-.highlight .no { color: #FFEF73 } /* Name.Constant */
-.highlight .nd { color: #ffffff } /* Name.Decorator */
-.highlight .ni { color: #ffffff } /* Name.Entity */
-.highlight .ne { color: #ffffff } /* Name.Exception */
-.highlight .nf { color: #ff0086; font-weight: bold } /* Name.Function */
-.highlight .nl { color: #ffffff } /* Name.Label */
-.highlight .nn { color: #ffffff } /* Name.Namespace */
-.highlight .nx { color: #ffffff } /* Name.Other */
-.highlight .py { color: #ffffff } /* Name.Property */
-.highlight .nt { color: #fb660a; font-weight: bold } /* Name.Tag */
-.highlight .nv { color: #fb660a } /* Name.Variable */
-.highlight .ow { color: #ffffff } /* Operator.Word */
-.highlight .w { color: #888888 } /* Text.Whitespace */
-.highlight .mf { color: #0086f7; font-weight: bold } /* Literal.Number.Float */
-.highlight .mh { color: #0086f7; font-weight: bold } /* Literal.Number.Hex */
-.highlight .mi { color: #0086f7; font-weight: bold } /* Literal.Number.Integer */
-.highlight .mo { color: #0086f7; font-weight: bold } /* Literal.Number.Oct */
-.highlight .sb { color: #FFEF73 } /* Literal.String.Backtick */
-.highlight .sc { color: #FFEF73 } /* Literal.String.Char */
-.highlight .sd { color: #FFEF73 } /* Literal.String.Doc */
-.highlight .s2 { color: #FFEF73 } /* Literal.String.Double */
-.highlight .se { color: #FFEF73 } /* Literal.String.Escape */
-.highlight .sh { color: #FFEF73 } /* Literal.String.Heredoc */
-.highlight .si { color: #FFEF73 } /* Literal.String.Interpol */
-.highlight .sx { color: #FFEF73 } /* Literal.String.Other */
-.highlight .sr { color: #FFEF73 } /* Literal.String.Regex */
-.highlight .s1 { color: #FFEF73 } /* Literal.String.Single */
-.highlight .ss { color: #FFEF73 } /* Literal.String.Symbol */
-.highlight .bp { color: #ffffff } /* Name.Builtin.Pseudo */
-.highlight .vc { color: #fb660a } /* Name.Variable.Class */
-.highlight .vg { color: #fb660a } /* Name.Variable.Global */
-.highlight .vi { color: #fb660a } /* Name.Variable.Instance */
+.highlight .hll { background-color: #333333 }
+.highlight pre { background: #111111; color: #ffffff }
+.highlight .c { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment */
+.highlight .err { color: #ffffff } /* Error */
+.highlight .g { color: #ffffff } /* Generic */
+.highlight .k { color: #fb660a; font-weight: bold } /* Keyword */
+.highlight .l { color: #ffffff } /* Literal */
+.highlight .n { color: #ffffff } /* Name */
+.highlight .o { color: #ffffff } /* Operator */
+.highlight .x { color: #ffffff } /* Other */
+.highlight .p { color: #ffffff } /* Punctuation */
+.highlight .cm { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment.Multiline */
+.highlight .cp { color: #ff0007; font-weight: bold; font-style: italic; background-color: #0f140f } /* Comment.Preproc */
+.highlight .c1 { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment.Single */
+.highlight .cs { color: #FFFDB8; font-style: italic; background-color: #0f140f } /* Comment.Special */
+.highlight .gd { color: #ffffff } /* Generic.Deleted */
+.highlight .ge { color: #ffffff } /* Generic.Emph */
+.highlight .gr { color: #ffffff } /* Generic.Error */
+.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #ffffff } /* Generic.Inserted */
+.highlight .go { color: #444444; background-color: #222222 } /* Generic.Output */
+.highlight .gp { color: #ffffff } /* Generic.Prompt */
+.highlight .gs { color: #ffffff } /* Generic.Strong */
+.highlight .gu { color: #ffffff; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #ffffff } /* Generic.Traceback */
+.highlight .kc { color: #fb660a; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #fb660a; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #fb660a; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #fb660a } /* Keyword.Pseudo */
+.highlight .kr { color: #fb660a; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #cdcaa9; font-weight: bold } /* Keyword.Type */
+.highlight .ld { color: #ffffff } /* Literal.Date */
+.highlight .m { color: #0086f7; font-weight: bold } /* Literal.Number */
+.highlight .s { color: #FFEF73 } /* Literal.String */
+.highlight .na { color: #ff0086; font-weight: bold } /* Name.Attribute */
+.highlight .nb { color: #ffffff } /* Name.Builtin */
+.highlight .nc { color: #ffffff } /* Name.Class */
+.highlight .no { color: #FFEF73 } /* Name.Constant */
+.highlight .nd { color: #ffffff } /* Name.Decorator */
+.highlight .ni { color: #ffffff } /* Name.Entity */
+.highlight .ne { color: #ffffff } /* Name.Exception */
+.highlight .nf { color: #ff0086; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #ffffff } /* Name.Label */
+.highlight .nn { color: #ffffff } /* Name.Namespace */
+.highlight .nx { color: #ffffff } /* Name.Other */
+.highlight .py { color: #ffffff } /* Name.Property */
+.highlight .nt { color: #fb660a; font-weight: bold } /* Name.Tag */
+.highlight .nv { color: #fb660a } /* Name.Variable */
+.highlight .ow { color: #ffffff } /* Operator.Word */
+.highlight .w { color: #888888 } /* Text.Whitespace */
+.highlight .mf { color: #0086f7; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #0086f7; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0086f7; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #0086f7; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sb { color: #FFEF73 } /* Literal.String.Backtick */
+.highlight .sc { color: #FFEF73 } /* Literal.String.Char */
+.highlight .sd { color: #FFEF73 } /* Literal.String.Doc */
+.highlight .s2 { color: #FFEF73 } /* Literal.String.Double */
+.highlight .se { color: #FFEF73 } /* Literal.String.Escape */
+.highlight .sh { color: #FFEF73 } /* Literal.String.Heredoc */
+.highlight .si { color: #FFEF73 } /* Literal.String.Interpol */
+.highlight .sx { color: #FFEF73 } /* Literal.String.Other */
+.highlight .sr { color: #FFEF73 } /* Literal.String.Regex */
+.highlight .s1 { color: #FFEF73 } /* Literal.String.Single */
+.highlight .ss { color: #FFEF73 } /* Literal.String.Symbol */
+.highlight .bp { color: #ffffff } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #fb660a } /* Name.Variable.Class */
+.highlight .vg { color: #fb660a } /* Name.Variable.Global */
+.highlight .vi { color: #fb660a } /* Name.Variable.Instance */
.highlight .il { color: #0086f7; font-weight: bold } /* Literal.Number.Integer.Long */
View
258 assets/ugly.css
@@ -1,130 +1,130 @@
-body {
- background: #292929 url(/assets/bg.png);
- color: #FFF;
- font-family: calibri,tahoma,arial,sans-serif;
-}
-
-#c {
- min-width: 700px;
- width: 70%;
- max-width: 1200px;
- margin: 0 auto;
-}
-
-h1 {
- font-size: 2.4em;
- text-align: center;
-}
-
-h1 a {
- text-shadow:
- -1px -1px 1px #111,
- 1px -1px 0 #FF8000,
- -1px 1px 1px #EEE,
- 1px 1px 1px #EEE;
- color: inherit;
- font-weight: normal;
- letter-spacing: 0em;
- font-family: "Consolas","Lucida Console",Courier,mono;
-}
-
-h1 a:hover, h1 a:focus {
- text-decoration: none;
- text-shadow:
- -1px -1px 1px #111,
- 1px -1px 0 #FFF,
- -1px 1px 1px #EEE,
- 1px 1px 1px #EEE;
-}
-
-a {
- color: #FF8000;
- text-shadow: 1px 0 0 rgba(255,255,255,.5);
- text-decoration: none;
-}
-
-a:hover, a:focus {
- text-decoration: underline;
- color: #FFF;
-}
-
-pre {
- padding: 10px;
- border-radius: 3px;
- box-shadow: 0 0 5px #666;
- overflow-x: auto;
-}
-
-pre, code {
- font-size: .93em;
- font-family: "Consolas","Lucida Console",Courier,mono;
-}
-
-.info {
- text-align: center;
- color: #EEE;
- font-style: italic;
- font-size: 1.2em;
- margin-bottom: 40px;
-}
-
-/* POST */
-
-.posts {
- border-top: 1px solid #666;
-}
-
-.post {
- padding: 20px;
- border-top: 1px solid #666;
- border-bottom: 1px solid #666;
- background: #222;
- background: rgba(33, 33, 33, 0.7);
-}
-
-.posts .post {
- border-bottom: 15px solid #666666;
-}
-
-.post p {
- padding: .7em 0;
- margin: 0;
-}
-
-.body {
- padding: 15px;
-}
-
-.meta {
- display: block;
- text-align: right;
- padding: 7px;
- line-height: 1em;
- border-radius: 5px;
- border-top: 2px solid #111;
- border-right: 1px solid #111;
- background: rgba(0,0,0,0.15);
-}
-
-h2.title {
- font-weight: 700;
- font-size: 1.2em;
- text-align: left;
- margin: 0;
-}
-
-h2.title a {
- color: #FFF;
-}
-
-.pagination {
- text-align: center;
- padding: 20px 0;
-}
-
-/* FOOT */
-
-#wt {
- text-align: center;
- margin-top: 40px;
+body {
+ background: #292929 url(/assets/bg.png);
+ color: #FFF;
+ font-family: calibri,tahoma,arial,sans-serif;
+}
+
+#c {
+ min-width: 700px;
+ width: 70%;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+h1 {
+ font-size: 2.4em;
+ text-align: center;
+}
+
+h1 a {
+ text-shadow:
+ -1px -1px 1px #111,
+ 1px -1px 0 #FF8000,
+ -1px 1px 1px #EEE,
+ 1px 1px 1px #EEE;
+ color: inherit;
+ font-weight: normal;
+ letter-spacing: 0em;
+ font-family: "Consolas","Lucida Console",Courier,mono;
+}
+
+h1 a:hover, h1 a:focus {
+ text-decoration: none;
+ text-shadow:
+ -1px -1px 1px #111,
+ 1px -1px 0 #FFF,
+ -1px 1px 1px #EEE,
+ 1px 1px 1px #EEE;
+}
+
+a {
+ color: #FF8000;
+ text-shadow: 1px 0 0 rgba(255,255,255,.5);
+ text-decoration: none;
+}
+
+a:hover, a:focus {
+ text-decoration: underline;
+ color: #FFF;
+}
+
+pre {
+ padding: 10px;
+ border-radius: 3px;
+ box-shadow: 0 0 5px #666;
+ overflow-x: auto;
+}
+
+pre, code {
+ font-size: .93em;
+ font-family: "Consolas","Lucida Console",Courier,mono;
+}
+
+.info {
+ text-align: center;
+ color: #EEE;
+ font-style: italic;
+ font-size: 1.2em;
+ margin-bottom: 40px;
+}
+
+/* POST */
+
+.posts {
+ border-top: 1px solid #666;
+}
+
+.post {
+ padding: 20px;
+ border-top: 1px solid #666;
+ border-bottom: 1px solid #666;
+ background: #222;
+ background: rgba(33, 33, 33, 0.7);
+}
+
+.posts .post {
+ border-bottom: 15px solid #666666;
+}
+
+.post p {
+ padding: .7em 0;
+ margin: 0;
+}
+
+.body {
+ padding: 15px;
+}
+
+.meta {
+ display: block;
+ text-align: right;
+ padding: 7px;
+ line-height: 1em;
+ border-radius: 5px;
+ border-top: 2px solid #111;
+ border-right: 1px solid #111;
+ background: rgba(0,0,0,0.15);
+}
+
+h2.title {
+ font-weight: 700;
+ font-size: 1.2em;
+ text-align: left;
+ margin: 0;
+}
+
+h2.title a {
+ color: #FFF;
+}
+
+.pagination {
+ text-align: center;
+ padding: 20px 0;
+}
+
+/* FOOT */
+
+#wt {
+ text-align: center;
+ margin-top: 40px;
}
View
50 atom.xml
@@ -1,26 +1,26 @@
----
-layout: nil
----
-<?xml version="1.0" encoding="utf-8"?>
-<feed xmlns="http://www.w3.org/2005/Atom">
-
- <title>Ugly JS</title>
- <link href="http://uglyjs.net/atom.xml" rel="self"/>
- <link href="http://uglyjs.net/"/>
- <updated>{{ site.time | date_to_xmlschema }}</updated>
- <id>http://uglyjs.net/</id>
- <author>
- <name>Ugly JS</name>
- </author>
-
- {% for post in site.posts %}
- <entry>
- <title>{{ post.title }}</title>
- <link href="http://uglyjs.net{{ post.url }}"/>
- <updated>{{ post.date | date_to_xmlschema }}</updated>
- <id>http://uglyjs.net{{ post.id }}</id>
- <content type="html">{{ post.content | xml_escape }}</content>
- </entry>
- {% endfor %}
-
+---
+layout: nil
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>Ugly JS</title>
+ <link href="http://uglyjs.net/atom.xml" rel="self"/>
+ <link href="http://uglyjs.net/"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://uglyjs.net/</id>
+ <author>
+ <name>Ugly JS</name>
+ </author>
+
+ {% for post in site.posts %}
+ <entry>
+ <title>{{ post.title }}</title>
+ <link href="http://uglyjs.net{{ post.url }}"/>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <id>http://uglyjs.net{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
</feed>
View
100 index.html
@@ -1,51 +1,51 @@
----
-layout: page
-title: Ugly JS
-url: /
----
-
-<div class="posts">
-{% for post in paginator.posts %}
- <div class="post">
-
- <h2 class="meta title"><a href="{{post.url}}">{{post.title}}</a></h2>
-
- <div class="body">{{post.content}}</div>
-
- <span class="meta">
-
- {% if post.author %}
- Posted by
- {% if post.authorurl %}
- <a href="{{post.authorurl}}">{{post.author}}</a>
- {% else %}
- {{post.author}}
- {% endif %}
- on
- {% endif %}
-
- {{post.date | date_to_string}} | <a href="{{post.url}}">linky</a>
-
- </span>
-
- </div>
-{% endfor %}
-</div>
-
-<!-- Pagination links -->
-<div class="pagination">
- {% if paginator.previous_page %}
- {% if paginator.page == 2 %}
- <a href="/" class="previous">Previous</a>
- {% else %}
- <a href="/page{{paginator.previous_page}}" class="previous">Previous</a>
- {% endif %}
- {% endif %}
-
- <span class="page_number ">Page: {{paginator.page}} of {{paginator.total_pages}}</span>
-
-
- {% if paginator.next_page %}
- <a href="/page{{paginator.next_page}}" class="next ">Next</a>
- {% endif %}
+---
+layout: page
+title: Ugly JS
+url: /
+---
+
+<div class="posts">
+{% for post in paginator.posts %}
+ <div class="post">
+
+ <h2 class="meta title"><a href="{{post.url}}">{{post.title}}</a></h2>
+
+ <div class="body">{{post.content}}</div>
+
+ <span class="meta">
+
+ {% if post.author %}
+ Posted by
+ {% if post.authorurl %}
+ <a href="{{post.authorurl}}">{{post.author}}</a>
+ {% else %}
+ {{post.author}}
+ {% endif %}
+ on
+ {% endif %}
+
+ {{post.date | date_to_string}} | <a href="{{post.url}}">linky</a>
+
+ </span>
+
+ </div>
+{% endfor %}
+</div>
+
+<!-- Pagination links -->
+<div class="pagination">
+ {% if paginator.previous_page %}
+ {% if paginator.page == 2 %}
+ <a href="/" class="previous">Previous</a>
+ {% else %}
+ <a href="/page{{paginator.previous_page}}" class="previous">Previous</a>
+ {% endif %}
+ {% endif %}
+
+ <span class="page_number ">Page: {{paginator.page}} of {{paginator.total_pages}}</span>
+
+
+ {% if paginator.next_page %}
+ <a href="/page{{paginator.next_page}}" class="next ">Next</a>
+ {% endif %}
</div>

0 comments on commit 781475f

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