Skip to content

Commit

Permalink
romulus -> jekyll
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehner committed Mar 24, 2013
1 parent 2f76a1f commit 8da5dd5
Show file tree
Hide file tree
Showing 119 changed files with 441 additions and 584 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
/node_modules
/public/css/*.css
.notes
/_site
15 changes: 8 additions & 7 deletions pages/2012/berlin/oct-5.html → 2012/berlin/oct-5.html
@@ -1,10 +1,11 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'Berlin, Oct 5th 2012';
this.introText =
'The first NodeCopter event. Spawned<br>' +
'by <a href="http://berlinjs.org/">BerlinJS</a> and <a href="http://vimeo.com/52140932">JSConf.eu</a>.';
%>
---
layout: default
title: Berlin, Oct 5th 2012
introTitle: Berlin, Oct 5th 2012
introText: |
The first NodeCopter event. Spawned<br>
by <a href="http://berlinjs.org/">BerlinJS</a> and <a href="http://vimeo.com/52140932">JSConf.eu</a>.
---

<h2 id="impressions"><a href="#impressions">Impressions</a></h2>

Expand Down
15 changes: 8 additions & 7 deletions pages/2012/brighton/nov-10.html → 2012/brighton/nov-10.html
@@ -1,10 +1,11 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'NodeCopter Brighton';
this.introText =
'A full day of programming <strong>flying robots</strong> with<br>' +
'node.js in Brighton on November 10, 2012.';
%>
---
layout: default
title: NodeCopter Brighton
introTitle: NodeCopter Brighton
introText: |
A full day of programming <strong>flying robots</strong> with<br>
node.js in Brighton on November 10, 2012
---
<p><strong>NodeCopter.js is a full day event where teams of 3 get together to hack on flying robots using javascript.</strong></p>

<p style="text-align: center; margin: 40px;"><strong>&raquo; <a href="https://tito.io/leftlogic/nodecopter-brighton">Get a ticket now - hackfest or sponsor a drone</a> &laquo;</strong></p>
Expand Down
23 changes: 12 additions & 11 deletions pages/2012/dublin/oct-20.md → 2012/dublin/oct-20.md
@@ -1,18 +1,19 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'Dublin, Oct 20th 2012';
this.introText =
'A full day of programming <strong>flying robots</strong> with<br>' +
'node.js that took place in Dublin on Oct 20, 2012.';
%>
---
layout: default
title: Dublin, Oct 20th 2012
introTitle: Dublin, Oct 20th 2012
introText: |
A full day of programming <strong>flying robots</strong> with<br>
node.js that took place in Dublin on Oct 20, 2012.
---

<h2 id="impressions"><a href="#impressions">Impressions</a></h2>
<img src="/img/dublin-family.jpg">
<ul>
<li><a href="http://www.flickr.com/photos/31120333@N04/sets/72157631818235565/">Photos</a> by <a href="http://www.twitter.com/a_l_a_n">Alan</a>
<li><a href="http://vimeo.com/51826336">Video: NodeCopter</a> by <a href="http://www.twitter.com/sean_nicholls">Sean Nicholls</a>
<li><a href="http://www.youtube.com/watch?v=RIO1LS-0E3g">Video: NodeCopter 2012 Dublin</a> by <a href="http://www.twitter.com/csanz">Christian Sanz</a>
<li><a href="https://www.facebook.com/media/set/?set=a.10151071432512411.423699.626637410&type=1">Photos</a> by <a href="http://www.twitter.com/csanz">Christian Sanz</a>
<li><a href="http://www.flickr.com/photos/31120333@N04/sets/72157631818235565/">Photos</a> by <a href="http://www.twitter.com/a_l_a_n">Alan</a></li>
<li><a href="http://vimeo.com/51826336">Video: NodeCopter</a> by <a href="http://www.twitter.com/sean_nicholls">Sean Nicholls</a></li>
<li><a href="http://www.youtube.com/watch?v=RIO1LS-0E3g">Video: NodeCopter 2012 Dublin</a> by <a href="http://www.twitter.com/csanz">Christian Sanz</a></li>
<li><a href="https://www.facebook.com/media/set/?set=a.10151071432512411.423699.626637410&type=1">Photos</a> by <a href="http://www.twitter.com/csanz">Christian Sanz</a></li>
</ul>

<hr>
Expand Down
@@ -1,15 +1,16 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'San Francisco, Oct 31st 2012';
this.introText =
'A full day of programming <strong>flying robots</strong> with<br>' +
'node.js in San Francisco on Oct 31st, 2012.';
%>
---
layout: default
title: San Francisco, Oct 31st 2012
introTitle: San Francisco, Oct 31st 2012
introText: |
A full day of programming <strong>flying robots</strong> with<br>
node.js in San Francisco on Oct 31st, 2012.
---

<h2 id="mininodecopter"><a href="#mininodecopter">MiniNodeCopter</a></h2>

Organized by [Christian Sanz](https://twitter.com/csanz), a small NodeCopter
event is coming to San Francisco on **Oct 31st**!
event is coming to San Francisco on **Oct 31st**!

<ul>
<li><strong><a href="https://tito.io/nodecopter/mininodecopter-sf-oct-2012">Register and Learn More</a></strong></li>
Expand All @@ -25,7 +26,7 @@ Start with

<script src="https://gist.github.com/3964996.js?file=flyingrobots.js"></script>

End with
End with

<iframe width="515" height="270" src="http://www.youtube.com/embed/RIO1LS-0E3g" frameborder="0" allowfullscreen></iframe>

Expand Down
15 changes: 8 additions & 7 deletions pages/2012/seattle/nov-8-9.html → 2012/seattle/nov-8-9.html
@@ -1,10 +1,11 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'The NodeCopter Lounge at CascadiaJS';
this.introText =
'A two day lounge style workshop of programming <strong>flying robots</strong> with<br>' +
'node.js in Seattle, WA on November 8-9, 2012.';
%>
---
layout: default
title: The NodeCopter Lounge at CascadiaJS
introTitle: The NodeCopter Lounge at CascadiaJS
introText:
A two day lounge style workshop of programming <strong>flying robots</strong> with<br>
node.js in Seattle, WA on November 8-9, 2012.
---
<h1>
<a name="nodecopter-lounge-at-cascadiajs" class="anchor" href="#nodecopter-lounge-at-cascadiajs"><span class="mini-icon mini-icon-link"></span></a>How was the NodeCopter Lounge at CascadiaJS</h1>

Expand Down
7 changes: 7 additions & 0 deletions 2013/amelia-island/may-30.md
@@ -0,0 +1,7 @@
---
layout: default
title: Amelia Island, May 30th 2013
introTitle: Amelia Island, May 30th 2013
---

# More info coming soon ...
12 changes: 6 additions & 6 deletions pages/2013/bath/mar-23.md → 2013/bath/mar-23.md
@@ -1,9 +1,9 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'Bath, March 23rd 2013';
this.introText =
'A fine day programing flying robots in Bath, UK';
%>
---
layout: default
title: Bath, March 23rd 2013
introTitle: Bath, March 23rd 2013
introText: A fine day programing flying robots in Bath, UK
---

<h2 id="intro"><a href="#intro">MiniNodeCopter Bath</a></h2>

Expand Down
12 changes: 6 additions & 6 deletions pages/2013/london/mar-16.md → 2013/london/mar-16.md
@@ -1,9 +1,9 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'London, March 16th 2013';
this.introText =
'A fine day programing flying robots in London';
%>
---
layout: default
title: London, March 16th 2013
introTitle: London, March 16th 2013
introText: A fine day programing flying robots in London
---

<h2 id="intro"><a href="#intro">MiniNodeCopter London</a></h2>

Expand Down
12 changes: 6 additions & 6 deletions pages/2013/zurich/jan-23.md → 2013/zurich/jan-23.md
@@ -1,9 +1,9 @@
<%
this.layout = 'default';
this.title = this.introTitle = 'Zurich, Jan 23rd 2013';
this.introText =
'A fine evening programing flying robots in Zurich';
%>
---
layout: default
title: Zurich, Jan 23rd 2013
introTitle: Zurich, Jan 23rd 2013
introText: A fine evening programing flying robots in Zurich
---

<h2 id="intro"><a href="#intro">MiniNodeCopter Zurich</a></h2>

Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Expand Up @@ -18,8 +18,8 @@ A loose collection of stuff that should happen on the site:

* Finish remaining compass pages
* Add note about drift / testin drone flight in venues before picking them
* Finish story page (done by @rmehner)
* Finish story page (done by @rmehner & @mrnugget)
* T-Shirt, Sticker, etc. shop (needs: t-shirt design / printing partner)
* Add a blog (needs: romulus scripting support)
* Create /people pages. Use these as partials on the event pages (needs: romulus partial support)
* Link to compass homepage from all compass pages (needs: romulus scripting support)
* Add a blog
* Create /people pages. Use these as partials on the event pages
* Link to compass homepage from all compass pages
26 changes: 10 additions & 16 deletions README.md
@@ -1,26 +1,20 @@
# nodecopter.com

In order to contribute to this site, you have to install
[romulus](https://github.com/felixge/node-romulus):
## Setup

Clone the repo, then install the following gems:

```bash
$ [sudo] npm install -g romulus
```
gem install jekyll
```

Now start the romulus development server to run the site locally:
You can now run the site locally on port 4000 using:

```bash
$ romulus
jekyll --auto --server
```

The site, as well as any changes you make, should now appear at
[http://localhost:8080/](http://localhost:8080/).

In order to deploy the site, you simply type:

```
romulus deploy
```
## Deployment

Refer to the [romulus](https://github.com/felixge/node-romulus) documentation
for more info.
The site uses [gh-pages](http://pages.github.com), so every commit to the gh-pages
branch will update the live website. Yay.
4 changes: 4 additions & 0 deletions _config.yml
@@ -0,0 +1,4 @@
exclude:
- README.md
- CONTRIBUTING.md
markdown: redcarpet
12 changes: 6 additions & 6 deletions layouts/default.html → _layouts/default.html
Expand Up @@ -63,7 +63,7 @@
<meta http-equiv="expires" content="Thu, 01 Jan 1970 13:37:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />

<title><%= this.title %></title>
<title>{{ page.title }}</title>

<link rel="stylesheet" media="screen" href="/css/main.css" >
</head>
Expand All @@ -83,17 +83,17 @@
</div>

<div id="introduction">
<% if (this.introTitle) { %>
<h2><%= this.introTitle %></h2>
{% if page.introTitle %}
<h2>{{ page.introTitle }}</h2>

<p>
<%- this.introText %>
{{ this.introText }}
</p>
<% } %>
{% endif %}
</div>

<div id="content">
<%- page %>
{{ content }}
</div>

<!-- needed to keep footer from overlapping #content -->
Expand Down
87 changes: 13 additions & 74 deletions pages/compass/budget.md → compass/budget.md
@@ -1,7 +1,7 @@
<%
this.layout = 'default';
this.title = 'Budget';
%>
---
layout: default
title: Budget
---

<h2 id="budget"><a href="#budget">Budget</a></h2>

Expand Down Expand Up @@ -102,80 +102,19 @@ on your budget and circumstances.

<h2 id="example"><a href="#example">Example Budget</a></h2>

<%
var people = 30;
var visitors = people * 0.4;
var drones = people / 3 + (people / 3) * 0.2;
var existingDrones = 4;

var currency = 'USD';
var items = [
{
name: 'Lunch',
amount: people,
price: 15
},
{
name: 'Drinks',
amount: people + visitors,
price: 15,
comment: 'including ' + visitors + ' visitors'
},
{
name: 'Drones',
amount: drones - existingDrones,
price: 300,
comment: '+' + existingDrones + ' existing drones'
},
{
name: 'Extra Batteries',
amount: drones * 2,
price: 40,
},
{
name: 'Extra Chargers',
amount: drones * 2,
price: 40,
},
{
name: 'Repair Parts',
amount: 1,
price: 200,
},
{
name: 'Travel + lodging',
amount: 1,
price: 1000,
},
];

var total = 0;
%>

To give you an idea of what the total budget for an event could look like,
here is an example for a nodecopter with <%= people %> people:

<%-
items.map(function(item) {
var subTotal = item.amount * item.price;
total += subTotal;
var line =
'* **' + item.name + ':** ' + item.amount + ' x ' + item.price + ' ' +
currency + ' = **' + subTotal + ' ' + currency + '**';

if (item.comment) {
line += ' (' + item.comment + ')';
}

return line;
}).join('\n')
%>
<%
var overhead = total * 0.15;
%>

**Total:** <%= total + ' ' + currency %> (hard costs) + <%= overhead + ' ' +
currency %> (15% overhead) = **<%= (total + overhead) + ' ' + currency %>**
* **Lunch:** 30 x 15 USD = **450 USD**
* **Drinks:** 42 x 15 USD = **630 USD** (including 12 visitors)
* **Drones:** 8 x 300 USD = **2400 USD** (+4 existing drones)
* **Extra Batteries:** 24 x 40 USD = **960 USD**
* **Extra Chargers:** 24 x 40 USD = **960 USD**
* **Repair Parts:** 1 x 200 USD = **200 USD**
* **Travel + lodging:** 1 x 1000 USD = **1000 USD**

**Total:** 6600 USD (hard costs) + 990 USD (15% overhead) = **7590 USD**

This is just an example, but **2500 USD - 10000 USD** is a reasonable ball
bark for most nodecopter events.
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions pages/compass/financing.md → compass/financing.md
@@ -1,7 +1,7 @@
<%
this.layout = 'default';
this.title = 'Financing';
%>
---
layout: default
title: Financing
---

<h2 id="financing"><a href="#financing">Financing</a></h2>

Expand Down

0 comments on commit 8da5dd5

Please sign in to comment.