Commits

Rich Manalang [Atlassian] committed f0bbbdc

cleanup

  • Participants
  • Parent commits a3e437e

Comments (0)

Files changed (3)

File package.json

   "scripts": {
     "start": "server.js"
   },
-  "version": "0.0.0-33",
+  "version": "0.0.0-34",
   "engines": {
     "node": "0.6.x"
   },

File public/brace/index.html

-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-    <title>Brace yourself.
-
-    </title>
-    <meta name="description" content="A 15 minute overview of Backbone Brace --  a simple extension to support your Backbone projects">
-    <meta name="author" content="Rich Manalang">
-    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
-    <link href="./css/themes/blackboard.css" rel="stylesheet">
-    <link href="./css/impress-demo.css" rel="stylesheet">
-  </head>
-  <body>
-    <div id="impress">
-      <div id="title" data-x="1000" data-y="0" class="step"><img src="./img/brace.png">
-      </div>
-      <div data-x="2000" data-y="0" class="step centered">
-        <h1>Backbone Brace
-        </h1>
-        <h3>pragmatic support for your Backbone projects
-        </h3>
-      </div>
-      <div data-x="3000" data-y="0" class="step profile"><img src="./img/manalang.jpg">
-        <div class="col span120">
-          <h4>Rich Manalang &rarr; @rmanalan
-          </h4>
-          <h5 class="black normal">Atlassian
-
-          </h5>
-        </div>
-      </div>
-      <div data-x="4000" data-y="0" class="step"><img src="./img/donttreadonme.jpg" width="920">
-      </div>
-      <div data-x="5000" data-y="0" class="step">
-        <h1>Fact:
-        </h1>
-        <p style="font-size:1.3em;">Large front-end dev teams tread on each other
-
-        </p>
-      </div>
-      <div data-x="6000" data-y="0" class="step">
-        <h1>Backbone is awesome, but...
-        </h1>
-      </div>
-      <div data-x="7000" data-y="0" class="step">
-        <pre><code data-language="javascript">var PersonView = Backbone.View.extend({
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Brace yourself.
+</title><meta name="description" content="A 15 minute overview of Backbone Brace --  a simple extension to support your Backbone projects"><meta name="author" content="Rich Manalang"><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css"><link href="./css/themes/blackboard.css" rel="stylesheet"><link href="./css/impress-demo.css" rel="stylesheet"></head><body><div id="impress"><div id="title" data-x="1000" data-y="0" class="step"><img src="./img/brace.png"></div><div data-x="2000" data-y="0" class="step centered"><h1>Backbone Brace</h1><h3>pragmatic support for your Backbone projects</h3></div><div data-x="3000" data-y="0" class="step profile"><img src="./img/manalang.jpg"><div class="col span120"><h4>Rich Manalang &rarr; @rmanalan</h4><h5 class="black normal">Atlassian
+</h5></div></div><div data-x="4000" data-y="0" class="step"><img src="./img/donttreadonme.jpg" width="920"></div><div data-x="5000" data-y="0" class="step"><h1>Fact:</h1><p style="font-size:1.3em;">Large front-end dev teams tread on each other
+</p></div><div data-x="6000" data-y="0" class="step"><h1>Backbone is awesome, but...</h1></div><div data-x="7000" data-y="0" class="step"><pre><code data-language="javascript">var PersonView = Backbone.View.extend({
   initialize: function() {
     this.log("Initialized");
   },
     console.log(msg);
   }
 });
-</code>
-        </pre>
-      </div>
-      <div data-x="8000" data-y="0" class="step">
-        <h1>Smelly
-        </h1>
-        <pre><code data-language="javascript">function log(msg) {
+</code></pre></div><div data-x="8000" data-y="0" class="step"><h1>Smelly</h1><pre><code data-language="javascript">function log(msg) {
   console.log(msg)
-    }
-
+}
 
 var PersonView = Backbone.View.extend({
   initialize: function() {
   },
   log:log //<- This stinks!
 });
-</code>
-        </pre>
-      </div>
-      <div data-x="9000" data-y="0" class="step">
-        <h1>Mixins!
-        </h1>
-        <pre><code data-language="javascript">var Loggable = {
+</code></pre></div><div data-x="9000" data-y="0" class="step"><h1>Mixins!</h1><pre><code data-language="javascript">var Loggable = {
   log: function(msg) {
     console.log(msg);
   }
     this.log("Initialized");
   }
 });
-</code>
-        </pre>
-        <p style="font-size:.6em">You can do this with models, collections, views, and routers
-        </p>
-      </div>
-      <div data-x="10000" data-y="0" class="step centered">
-        <h1>Named Attributes
-        </h1>
-      </div>
-      <div data-x="11000" data-y="0" class="step">
-        <h1>Silent fail
-        </h1>
-        <pre><code data-language="javascript">// Traditional Backbone model
+</code></pre><p style="font-size:.6em">You can do this with models, collections, views, and routers</p></div><div data-x="10000" data-y="0" class="step centered"><h1>Named Attributes</h1></div><div data-x="11000" data-y="0" class="step"><h1>Silent fail</h1><pre><code data-language="javascript">// Traditional Backbone model
 var Person = Backbone.Model.extend({});
 var person = new Person({name: "Rich"});
 
 person.get("name"); // Ok
 
 person.get("firstName"); // Undefined. Silent fail!
-</code>
-        </pre>
-      </div>
-      <div data-x="12000" data-y="0" class="step">
-        <h1>Fail loudly&trade;
-        </h1>
-        <pre><code data-language="javascript">// Brace extended Backbone model
+</code></pre></div><div data-x="12000" data-y="0" class="step"><h1>Fail loudly&trade;</h1><pre><code data-language="javascript">// Brace extended Backbone model
 var Person = Brace.Model.extend({
   namedAttributes: [ "name" ]
 });
 person.set({
   lost: "in space"
 }); // throws exception!
-</code>
-        </pre>
-      </div>
-      <div data-x="13000" data-y="0" class="step">
-        <h1>Named events
-        </h1>
-        <pre><code data-language="javascript">var Person = Brace.Model.extend({
+</code></pre></div><div data-x="13000" data-y="0" class="step"><h1>Named events</h1><pre><code data-language="javascript">var Person = Brace.Model.extend({
   namedEvents [ "sleep" ]
 });
 
   console.log("Dreaming about " + dream); 
 });
 person.triggerSleep("Unicorns");
-</code>
-        </pre>
-      </div>
-      <div data-x="14000" data-y="0" class="step">
-        <h1>Mix and match
-        </h1>
-        <pre><code data-language="javascript" style="font-size:20px">// Mixin
+</code></pre></div><div data-x="14000" data-y="0" class="step"><h1>Mix and match</h1><pre><code data-language="javascript" style="font-size:20px">// Mixin
 var Selectable = {
   namedAttributes: ["selected"],
   namedEvents: ["select"],
 person.setSelected(true);
 person.getSelected();
 person.triggerSelect();
-</code>
-        </pre>
-      </div>
-      <div data-x="15000" data-y="0" class="step">
-        <h1>Fail loudly&trade;
-        </h1>
-        <pre><code data-language="javascript">var Runnable = {
+</code></pre></div><div data-x="15000" data-y="0" class="step"><h1>Fail loudly&trade;</h1><pre><code data-language="javascript">var Runnable = {
   run: function() {}
 };
 
     run: function() {}
 }); // throws "Mixin error: class already has property 'run' defined"
 
-</code>
-        </pre>
-      </div>
-      <div data-x="16000" data-y="0" class="step centered">
-        <h1>3k
-        </h1><a href="https://bitbucket.org/atlassian/backbone-brace" style="font-size:1em">bitbucket.org/atlassian/backbone-brace</a>
-      </div>
-      <div data-x="17000" data-y="0" class="step centered">
-        <h1 style="font-size:1.3em">Atlassian are hiring JS devs!
-        </h1>
-        <p><a href="http://bit.ly/js-hire" style="font-size:3.2em">bit.ly/js-hire</a>
-        </p>
-      </div>
-    </div>
-    <div class="hint">
-      <p>Use a spacebar or arrow keys to navigate
-      </p>
-    </div>
-    <script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js"></script>
-    <script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script>
-    <script src="./js/backbone.brace.js"></script>
-    <script src="./js/impress.js"></script>
-    <script src="./js/rainbow.min.js"></script>
-    <script src="./js/language/generic.js"></script>
-    <script src="./js/language/javascript.js"></script>
-    <script>impress().init();
-//document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')
-</script>
-  </body>
-</html>
+</code></pre></div><div data-x="16000" data-y="0" class="step centered"><h1>3k</h1><a href="https://bitbucket.org/atlassian/backbone-brace" style="font-size:1em">bitbucket.org/atlassian/backbone-brace</a></div><div data-x="17000" data-y="0" class="step centered"><h1 style="font-size:1.3em">Atlassian are hiring JS devs!</h1><p><a href="http://bit.ly/js-hire" style="font-size:3.2em">bit.ly/js-hire</a></p></div></div><div class="hint"><p>Use a spacebar or arrow keys to navigate</p></div><script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js"></script><script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script><script src="./js/backbone.brace.js"></script><script src="./js/impress.js"></script><script src="./js/rainbow.min.js"></script><script src="./js/language/generic.js"></script><script src="./js/language/javascript.js"></script><script>impress().init();
+document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')
+</script></body></html>

File public/brace/index.jade

     script(src='./js/language/javascript.js')
     script
       impress().init();
-      //document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')
+      document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')