Permalink
Browse files

Split javascript.

  • Loading branch information...
1 parent 818a5a6 commit b9214443bc5710a1488f4a368cdde0effd0e0f15 Will White committed Nov 2, 2011
View
@@ -7,4 +7,4 @@ url: http://nodedc.org
hashtag: '#nodedc'
github_login: 'developmentseed'
github_repo: 'bones'
-github_lanaguage: 'JavaScript'
+github_language: 'JavaScript'
View
@@ -8,7 +8,18 @@
<!--[if IE]><link rel='stylesheet' href='{{base}}/site-ie.css' type='text/css'/><![endif]-->
<link rel='shortcut icon' href='{{base}}/images/favicon.ico' type='image/x-icon' />
<link href='http://fonts.googleapis.com/css?family=Jockey+One' rel='stylesheet' type='text/css'>
- <script src='{{base}}/site.js' type='text/javascript'></script>
+ <script type='text/javascript'>
+ var site = {
+ github_language: '{{site.github_language}}',
+ github_login: '{{site.github_login}}',
+ github_repo: '{{site.github_repo}}',
+ hashtag: '{{site.hashtag}}'
+ };
+ </script>
+ <script src='{{base}}/js/jquery-1.6.4.min.js' type='text/javascript'></script>
+ <script src='{{base}}/js/underscore.js' type='text/javascript'></script>
+ <script src='{{base}}/js/backbone.js' type='text/javascript'></script>
+ <script src='{{base}}/js/site.js' type='text/javascript'></script>
</head>
<body>
<div class='limiter'>
@@ -30,7 +41,7 @@
</div>
<div class='follower-project clearfix'>
- <h2>A member's {{site.github_lanaguage}} project</h2>
+ <h2>A member's {{site.github_language}} project</h2>
</div>
<div class='tweets clearfix'>
<h2>Tweets that mention {{site.hashtag}}</h2>
@@ -7,10 +7,13 @@ Come on over to Development Seed's garage to talk about Node.js and why you shou
We'll have a few five minute lightning talks around topics relating to Node.js. We're looking for a few more speakers. If you'd like to give one, please submit it here or send it to @developmentseed. So far, we have one lightning talk on the schedule.
-Adrian Rossouw will give an intro to Underscore.js. He'll run through some of the features of the most depended on package in npm. Underscore.js is quickly becoming a requirement for both server-side and client side developers, and its collection of small utility functions will help you work more efficiently with data structures. Underscore.js also forms the basis or inspiration for several other popular libraries, such as Backbone and Spine. More details on underscore.js are here.
+Adrian Rossouw will give an intro to [Underscore.js](http://github.com/documentcloud/underscore.js). He'll run through some of the features of the most depended on package in npm. Underscore.js is quickly becoming a requirement for both server-side and client side developers, and its collection of small utility functions will help you work more efficiently with data structures. Underscore.js also forms the basis or inspiration for several other popular libraries, such as Backbone and Spine. More details on underscore.js are here.
-Jeff Miccolis will present on the couch-sqlite library for Node.js, which allows a SQLite database to subscribe to changes from CouchDB. For example, this allows you to get real-time updates from Couch into a geo-enabled SQLite database.
+Jeff Miccolis will present on the [couch-sqlite](https://github.com/developmentseed/couch-sqlite)
+library for Node.js, which allows a SQLite database to subscribe to changes from CouchDB.
+For example, this allows you to get real-time updates from Couch into a geo-enabled SQLite database.
-Come on over around 7:00 pm. We'll do introductions and start the lightning talks at 7:30 pm. Bring some beer/drinks to share with the group - we'll provide the fridge and some snacks. Hope to see you there!
+Come on over around 7:00 pm. We'll do introductions and start the lightning talks at
+7:30 pm. Bring some beer/drinks to share with the group - we'll provide the fridge and some snacks. Hope to see you there!
Development Seed's office is at 1714 14th Street NW, off the alley behind 14th Street (behind Peregrine and Cork). Turn down R street and make the first turn down the alley - you'll see our sign.
@@ -9,7 +9,7 @@ presenters:
The third-ever Node.js meetup held in Washington, DC will be Wednesday, September 19. The meetup will start at 7:00 pm, with talks starting at 7:30 so everyone has a chance to grab a drink and talk to folks. Then we'll have introductions, followed by 5 minute lightning talks on anything related to node. We're looking for volunteers to present - if you'd like to give a talk, submit an idea on the lanyard event page or tweet it at @developmentseed. So far, we have one on the lineup:
-- Will White will talk about testing node.js web applications with expresso, an async testing framework.
+- Will White will talk about testing node.js web applications with [expresso, an async testing framework](https://github.com/visionmedia/expresso).
- Ryan Roemer will talk about Sunny.js, a multi-cloud datastore client for Node.js with read/write streams and async.js.
Everyone is welcome - including newcomers to node.js, those interested to hear what the hype is about, and experienced developers looking to trade tricks.
File renamed without changes.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,11 +1,7 @@
----
----
-;{% include js/jquery-1.6.4.min.js %}
-;{% include js/underscore.js %}
-;
-
(function(context) {
+if (!site) throw new Error('Configuration not found');
+
var longneck = {};
longneck.githubWatcherProject = function(resp) {
@@ -23,7 +19,9 @@ longneck.githubWatcherProject = function(resp) {
var repo = _(resp.data)
.chain()
.shuffle()
- .detect(function(r) { return r.language === '{{site.github_lanaguage}}' })
+ .detect(function(r) {
+ return r.language === site.github_language;
+ })
.value();
if (!repo) {
@@ -53,15 +51,17 @@ longneck.githubWatchers = function() {
$.ajax({
// TODO: this endpoint only returns maximum 30 users. Implement random
// pagination so we see different groups of people.
- url: 'https://api.github.com/repos/{{site.github_login}}/{{site.github_repo}}/watchers',
+ url: 'https://api.github.com/repos/' +
+ site.github_login + '/' +
+ site.github_repo + '/watchers',
dataType: 'jsonp',
success: function(resp) {
if (!resp.data.length) return;
longneck.githubWatcherProject(resp);
var template =
- "<a class='github-user' target='_blank' href='http://github.com/<%=login%>'>"
- + "<span style='background-image:url(<%=avatar_url%>)' class='thumb' /></span>"
- + "</a>";
+ "<a class='github-user' target='_blank' href='http://github.com/<%=login%>'>" +
+ "<span style='background-image:url(<%=avatar_url%>)' class='thumb' /></span>" +
+ "</a>";
var t = _(resp.data)
.map(function(i) { return _(template).template(i); })
.join('');
@@ -76,13 +76,13 @@ longneck.setup = function() {
var tweets = $('.tweets');
$('.watch').hover(
- function() { $('.watch-docs').addClass('active') },
- function() { $('.watch-docs').removeClass('active') }
- )
+ function() { $('.watch-docs').addClass('active'); },
+ function() { $('.watch-docs').removeClass('active'); }
+ );
$.ajax({
url: 'http://search.twitter.com/search.json',
- data: { q: '{{site.hashtag}}', rpp:100 },
+ data: { q: site.hashtag, rpp:100 },
dataType: 'jsonp',
success: function(resp) {
if (!resp.results.length) return;
@@ -101,7 +101,7 @@ longneck.setup = function() {
tweets.append(t).addClass('loaded');
}
});
-}
+};
$(longneck.setup);
context.longneck = longneck;
File renamed without changes.

0 comments on commit b921444

Please sign in to comment.