Permalink
Browse files

Whatever

  • Loading branch information...
1 parent 6c5b8ae commit 16937986e489a1dec52963452af07adf97c02fab @thomasdavis committed Dec 2, 2011
View
@@ -1,55 +1,27 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
-<head>
- <meta name="readability-verification" content="vy47hkYexnjBxYJ62n4NseCxGUkPza7UP3enFJa3"/>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>{{ page.title }}</title>
- <meta name="author" content="Thomas Davis" />
+
- <!-- syntax highlighting CSS -->
- <link rel="stylesheet" href="/css/syntax.css" type="text/css" />
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
- <!-- Typekit -->
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
+<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>Thomas Davis</title> <meta name="author" content="Thomas Davis" />
+ <link rel="stylesheet" href="/css/styles.css" type="text/css" />
</head>
<body>
-
- <!--
- <a class="FlattrButton" style="display:none;" href="http://thomasdavis.github.com"></a>
-<noscript><a href="http://flattr.com/thing/176991/Tutorials-by-Thomas-Davis" target="_blank">
-<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript>
-<div id="topmenu">
- <ul>
- <li><a href="/">home</a></li>
- <li><a href="https://github.com/thomasdavis">my github</a></li>
- <li><a href="/about.html">about me</a></li>
- <li><a href="http://protosal.com" target="_blank">check out my startup</a> ( backbone.js, node.js and couchdb )</li>
- <li><a href="https://docs.google.com/document/pub?id=1Cy643CNQvQYew42S3dXkmLlUypQioNttApG_hgjIiMQ" target="_blank">my resume</a></li>
-<li><a href="http://twitter.com/?status=@iamjessicagomes,%20@neutralthoughts%20is%20a%20great%20guy,%20you%20should%20marry%20him" target="_blank" alt="will load in new window, please marry me">hot woman (SFW)</a></li>
- </ul>
- <ul style="float: right; margin-right: 15px;">
-
- <li>thomas davis - <a href="http://twitter.com/neutralthoughts">follow me on twitter</a> or don't</li>
- </ul>
-</div>
--->
-<div id="container">
- <div id="header">
- <img src="http://en.gravatar.com/userimage/9083995/edbb5edbf89b58bfecd99e3452986f05.jpg?size=70" style="float: left;" />
- <div style="float: left; width: 300px; margin-left: 20px; margin-top: 15px;">
- <h1 style="margin-bottom: 5px;"><a href="/">Thomas Davis</a></h1>
- <a href="https://twitter.com/neutralthoughts" class="twitter-follow-button">Follow @neutralthoughts</a>
- </div>
-<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
-<div style="float: right; width: 400px;">Editing today, don't judge =D</div>
- <div style="clear: both;"></div>
- </div>
- <div id="content">
- {{ content }}
+<div class="container">
+ <div class="wrapper span-22 push-1">
+ <div class="header span-20 push-1">
+ <div class="span-14">
+ <h1><a href="http://thomasdavis.github.com">Thomas Davis - Front End Developer</a></h1>
+ <a href="https://twitter.com/neutralthoughts" class="twitter-follow-button">Follow @neutralthoughts</a>
+<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
+ </div>
+ </div>
+ <div class="page span-20 push-1">
+{{ content }}
</div>
</div>
View
@@ -1,7 +1,8 @@
---
layout: default
---
-<div id="post">
+<a href="/">Back to home</a>
+<br />
{{ content }}
<div id="disqus_thread"></div>
@@ -19,15 +20,3 @@
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
-
-</div>
-<!--
-<div id="related">
- <h2>Related Posts</h2>
- <ul class="posts">
- {% for post in site.related_posts limit:3 %}
- <li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
- {% endfor %}
- </ul>
-</div>
--->

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,54 +1,27 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
-<head>
- <meta name="readability-verification" content="vy47hkYexnjBxYJ62n4NseCxGUkPza7UP3enFJa3"/>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>backbone.js beginners and underscore.js micro templating</title>
- <meta name="author" content="Thomas Davis" />
+
- <!-- syntax highlighting CSS -->
- <link rel="stylesheet" href="/css/syntax.css" type="text/css" />
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
- <!-- Typekit -->
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
+<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>Thomas Davis</title> <meta name="author" content="Thomas Davis" />
+ <link rel="stylesheet" href="/css/styles.css" type="text/css" />
</head>
<body>
-
- <!--
- <a class="FlattrButton" style="display:none;" href="http://thomasdavis.github.com"></a>
-<noscript><a href="http://flattr.com/thing/176991/Tutorials-by-Thomas-Davis" target="_blank">
-<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript>
-<div id="topmenu">
- <ul>
- <li><a href="/">home</a></li>
- <li><a href="https://github.com/thomasdavis">my github</a></li>
- <li><a href="/about.html">about me</a></li>
- <li><a href="http://protosal.com" target="_blank">check out my startup</a> ( backbone.js, node.js and couchdb )</li>
- <li><a href="https://docs.google.com/document/pub?id=1Cy643CNQvQYew42S3dXkmLlUypQioNttApG_hgjIiMQ" target="_blank">my resume</a></li>
-<li><a href="http://twitter.com/?status=@iamjessicagomes,%20@neutralthoughts%20is%20a%20great%20guy,%20you%20should%20marry%20him" target="_blank" alt="will load in new window, please marry me">hot woman (SFW)</a></li>
- </ul>
- <ul style="float: right; margin-right: 15px;">
-
- <li>thomas davis - <a href="http://twitter.com/neutralthoughts">follow me on twitter</a> or don't</li>
- </ul>
-</div>
--->
-<div id="container">
- <div id="header">
- <img src="http://en.gravatar.com/userimage/9083995/edbb5edbf89b58bfecd99e3452986f05.jpg?size=70" style="float: left;" />
- <div style="float: left; width: 300px; margin-left: 20px; margin-top: 15px;">
- <h1 style="margin-bottom: 5px;"><a href="/">Thomas Davis</a></h1>
- <a href="https://twitter.com/neutralthoughts" class="twitter-follow-button">Follow @neutralthoughts</a>
- </div>
-<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
- <div style="clear: both;"></div>
- </div>
- <div id="content">
- <div id="post">
+<div class="container">
+ <div class="wrapper span-22 push-1">
+ <div class="header span-20 push-1">
+ <div class="span-14">
+ <h1><a href="http://thomasdavis.github.com">Thomas Davis - Front End Developer</a></h1>
+ <a href="https://twitter.com/neutralthoughts" class="twitter-follow-button">Follow @neutralthoughts</a>
+<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
+ </div>
+ </div>
+ <div class="page span-20 push-1">
+<a href="/">Back to home</a
<h2>backbone.js beginners and underscore.js micro templating</h2>
<p>Surprisingly I have received many request via the <a href="http://poplytics.com">poplytics.com</a> popup at the bottom of the window. A lot of the request have asked for more backbone tutorials. So I decided to share more of what I have learnt so far.</p>
<p>I decided to comment the code this time instead of a normal tutorial layout and hopefully my comments will be sufficient to help you.</p>
@@ -57,8 +30,9 @@ <h2><a href="http://thomasdavis.github.com/examples/backbone-underscore/">Demo</
<p>Please leave comments for anything I am doing wrong =D</p>
<h3>underscore micro templating</h3>
<p>In the latest startup I have been working on, we decided to just use underscore.js templating as we reviewed &#8220;benchmarks&#8221;:&quot;http://www.viget.com/extend/benchmarking-javascript-templating-libraries/ of the different templating engines and none of them could really be crowned king. Since then I have just learnt to use underscore.js micro templating engine as it works fine for us.</p>
-<p>We place all our javascript templates which is basically 99% of our web app into an external file and host it on Amazon <span class="caps">CDN</span>. So our entire app is cached and distrubuted through <a href="http://en.wikipedia.org/wiki/Content_delivery_network">edge locations</a> which increases the speed the site is served and also saves us money on bandwidth.</p>
-<h3>passing parent objects to deferred objects</h3>
+<p>We place all our javascript templates which is basically 99% of our web app into an external file and host it on Amazon <span class="caps">CDN</span>. So our entire app is cached and distrubuted through <a href="http://en.wikipedia.org/wiki/Content_delivery_network">edge locations</a> which increases the speed the site is served and also saves us money on bandwidth.<br />
+ <br />
+h3. passing parent objects to deferred objects</p>
<p>in the example I needed to access the parent object which contains a $.then and $.when. To get the parent object (this) into<br />
the anonymous $.when function I simply used jQuery.proxy(func, this). Has anyone else been experimenting with this and is there<br />
an easier way to do it?</p>
@@ -79,22 +53,6 @@ <h3>passing parent objects to deferred objects</h3>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
-</div>
-<!--
-<div id="related">
- <h2>Related Posts</h2>
- <ul class="posts">
-
- <li><span>10 Jul 2011</span> &raquo; <a href="/2011/07/10/a-moral-dilemma-on-forgiveness-and-hatred.html">A Moral Dilemma On Forgiveness and Hatred</a></li>
-
- <li><span>07 Jul 2011</span> &raquo; <a href="/2011/07/07/the-elevator-scene.html">The Elevator. Sexism or gender stereotyping?</a></li>
-
- <li><span>05 Jul 2011</span> &raquo; <a href="/2011/07/05/is-the-internet-an-extension-of-human-memory.html">Is the Internet an extension of human memory?</a></li>
-
- </ul>
-</div>
--->
-
</div>
</div>
Oops, something went wrong.

0 comments on commit 1693798

Please sign in to comment.