Skip to content

Commit

Permalink
alpha code for SeattleHacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Carter Rabasa committed Mar 28, 2013
1 parent c83fa5c commit 5a403ab
Show file tree
Hide file tree
Showing 13 changed files with 365 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_site
11 changes: 11 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta:
site_title: "Seattle Hacks"
site_subtitle: "For Seattle developers, by Seattle developers"
site_language: "en"
absolute_baseurl: http://seattlehacks.com
domain: seattlehacks.com

tag_dir: tag
pygments: true
markdown: rdiscount
permalink: pretty
16 changes: 16 additions & 0 deletions _layouts/calendar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: default
title: Event Calendar
---
<h1>Calendar</h1>
<div class="calendar">
{% for event in page.events %}
<div class="event">
<h2><a href="{{ event.url }}">{{ event.name] }}</a> @ {{ event.venue }}</h2>
<ul>
<li>Start: {{ event.start }}</li>
<li>End: {{ event.start }}</li>
</ul>
</div>
{% endfor %}
</div>
119 changes: 119 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<!DOCTYPE html>
<!--
_____ _____
/\ \ /\ \
/::\ \ /::\____\
/::::\ \ /:::/ /
/::::::\ \ /:::/ /
/:::/\:::\ \ /:::/ /
/:::/__\:::\ \ /:::/____/
\:::\ \:::\ \ /::::\ \
___\:::\ \:::\ \ /::::::\ \ _____
/\ \:::\ \:::\ \ /:::/\:::\ \ /\ \
/::\ \:::\ \:::\____\ /:::/ \:::\ /::\____\
\:::\ \:::\ \::/ / \::/ \:::\ /:::/ /
\:::\ \:::\ \/____/ \/____/ \:::\/:::/ /
\:::\ \:::\ \ \::::::/ /
\:::\ \:::\____\ \::::/ /
\:::\ /:::/ / /:::/ /
\:::\/:::/ / /:::/ /
\::::::/ / /:::/ /
\::::/ / /:::/ /
\::/ / \::/ /
\/____/ \/____/
-->
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css">
<link rel="stylesheet" href="/stylesheets/site.css">
<meta name="description" content="">
<link href="/atom.xml" rel="alternate" title="{{ site.meta.site_title }} (Atom)" type="application/atom+xml" />
<link href="/rss.xml" rel="alternate" title="{{ site.meta.site_title }} (RSS)" type="application/rss+xml" />
<link rel="shortcut icon" href="/favicon.ico"/>
<meta name="google-site-verification" content="xxx" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
</head>
<body>
<a href="https://github.com/crabasa/seattlehacks"><img style="position: absolute; top: 0; right: 0; border: 0; z-index:999999" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div class="topbar">
<div class="fill">
<div class="container">
<a class="brand" href="/">{{ site.meta.site_title }}</a>
<ul class="nav">
<li><a href="/">Home</a></li>
<li><a href="/calendar">Calendar</a></li>
<li><a href="/archive">Archive</a></li>
<li><a href="/submit">Submit</a></li>
<li><a href="/search">Search</a></li>
</ul>
</div>
</div>
</div>

<div class="container">
<div class="content">
<div class="row">
<div class="span10">
{{ content }}
</div>
<div class="span4">
<h3>About Us</h3>
<p>Seattle Hacks is a community-driven resource for the developer community in Seattle, maintained by developers for developers. <a href="/submit">Contributing is easy</a>, just submit a pull request! Hit us up @seattlehacks if you have any questions or feedback.</p>
<h3>Local Meetups</h3>
<ul>
<li><a href="http://www.meetup.com/seattlejs/">Seattle JS</a></li>
<li><a href="http://www.meetup.com/MobileDevelopment/">Seattle Mobile Web Apps</a></li>
<li><a href="http://www.netda.net/">.NET Developers Association</a></li>
<li><a href="http://www.meetup.com/Appy-Hour/">Appy Hour</a></li>
<li><a href="http://www.meetup.com/CloudTalk/">CloudTalk</a></li>
<li><a href="http://www.dotnetstartup.com/">Dot Net Startup Group</a></li>
<li><a href="http://www.meetup.com/Ember-js-Seattle-Meetup/">Ember.js Seattle</a></li>
<li><a href="http://www.meetup.com/North-Side-Front-End-Devs/">North Side Front End Devs</a></li>
<li><a href="http://www.meetup.com/TheOcho/">The Ocho</a></li>
<li><a href="http://www.meetup.com/OpenStack-Seattle/">OpenStack Seattle</a></li>
<li><a href="http://www.meetup.com/Seattle-Android-Developers/">Seattle Android Developers</a></li>
<li><a href="http://www.meetup.com/seattle-backbone/">Seattle Backbone</a></li>
<li><a href="http://www.meetup.com/seattle-gdg/">Seattle Google Developer Group </a></li>
<li><a href="http://www.meetup.com/Seattle-Grab-Beers-and-Talk-Web-Development/">Seattle Grab Beers and Talk Webdev</a></li>
<li><a href="http://www.meetup.com/Seattle-iPhone-iPad-Android-SURF-Incubator/">Seattle iOS &amp; Android Incubator</a></li>
<li><a href="http://www.meetup.com/gamedevjs/">Seattle JavaScript Game Development</a></li>
<li><a href="http://www.meetup.com/seajsws/">Seattle JavaScript Workshop</a></li>
<li><a href="http://www.meetup.com/Seattle-Node-js/">Seattle Node.js</a></li>
<li><a href="http://www.meetup.com/php-49/">Seattle PHP</a></li>
<li><a href="http://www.meetup.com/Seattle-Py/">Seattle Py</a></li>
<li><a href="http://www.meetup.com/The-Seattle-Ruby-on-Rails-Developers-Meetup-Group/">Seattle Ruby on Rails Developers</a></li>
<li><a href="http://www.meetup.com/SASSlang/">Seattle Sass &mp; Compass</a></li>
<li><a href="http://www.meetup.com/Seattle-Hadoop-HBase-NoSQL-Meetup/">Seattle Scalability</a></li>
<li><a href="http://www.meetup.com/StudentRND-Meetups/">StudentRND Meetups</a></li>
</ul>
</div>
</div>
</div>

<footer>
<p>&copy; Event Loop LLC 2010-2013</p>
</footer>
</div> <!-- /container -->

<section id="javascript">

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-75426-11']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</section>

</body>
</html>



7 changes: 7 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: default
---
<div id="post" class="markdown-body">
<h1>{{ page.title }}</h1>
{{ content }}
</div>
48 changes: 48 additions & 0 deletions _plugins/calendar.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module Jekyll

class CalendarGenerator < Generator
safe true

def generate(site)
events = site.tags['event']
if events
site.pages << CalendarPage.new(site, events)
end
end
end

class CalendarPage < Page

def initialize(site, events)
@site = site
@base = site.source
@dir = '/calendar/'
@name = 'index.html'

self.process(@name)
self.read_yaml(File.join(@base, '_layouts'), 'calendar.html')

# start building a proper list of events to display
calendar = []

events.each do |event|
event.tags.each do |tag|
puts tag
if tag.start_with?('cal:')
key = tag.split('cal:')[1].split('=')[0]
value = tag.split('cal:')[1].split('=')[1]
event.data[key] = value
end
end

if (Date.parse(event.data['start']) >= Date.today)
calendar << event
end
end

self.data['events'] = calendar.sort{|a, b| Date.parse(a.data['start']) <=> Date.parse(b.data['start'])}
end

end

end
25 changes: 25 additions & 0 deletions _posts/2013-03-28-seattle-js.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Seattle JS - Test the Web Forward and Fun With Angular.js
layout: post
tags:
- event
- cal:name=Seattle JS - Test the Web Forward and Fun With Angular.js
- cal:allday=false
- cal:start=2013-04-11T18:30:00-08:00
- cal:end=2013-04-11T20:00:00-08:00
- cal:venue=Makers Space
- cal:website=http://www.meetup.com/seattlejs/events/110183332/
---
Agenda
------

*6:00 - 6:30pm:* Pizza, beer & catching up
*6:30 - 7:00pm:* Testing the Web Forward (TBD)

The Internet Explorer Developer Relations Team is hosting a Test the Web Forward event in Seattle April 12–13.The focus of this event is on learning, hacking, and writing tests for W3C specifications. During the event, experts will teach you about W3C specs & W3C testing and will guide you as you help make the Web a better, more interoperable place. Better tests for a better Web!

They'll be at SeattleJS to discuss this event and answer any questions you have!

*7:00 - 8:30pm:* Angular.js (TBD)

The remainder of the time will be spent on some short talks involving Angular.js.
10 changes: 10 additions & 0 deletions archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: default
title: Archive
---
<h2>Archives</h2>
<ul class="posts">
{% for post in site.posts %}
<li><span class="ddMMMyyyy">{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
Binary file added images/seattlehacks_logo_200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 41 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<!doctype html>
<html>
<head>
<style>#logo {font-family: courier; font-size: 8px}</style>
</head>
<body>
<pre id="logo">
---
layout: default
title: Home
---
<div class="logo">
_____ _____ _____ _____ _____ _____ _____
/\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \
/::\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\____\ /::\ \
Expand Down Expand Up @@ -49,6 +47,39 @@
\::/ / \::/ / \::/ / \:| | \::/ /
\/____/ \/____/ \/____/ \|___| \/____/

</pre>
</body>
</html>
</div>
<h1 class="foo">Latest Post</h1>
<div class="post" class="markdown-body">
{% assign x = site.posts.first %}
<h2><a href="{{ x.url }}">{{ x.title }}</a></h2>
{{ x.content }}
</div>
<h1 class="foo">More Posts</h1>
<ul class="posts">
{% for post in site.posts limit:10 %}
{% if forloop.index != 1 %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>

<h1 class="foo">Collaborators</h1>
<div id="collaborators">
</div>

<script>
function buildCollabs(response) {
response.data.forEach(function(collab) {
console.log(collab);
$('<a href="' + collab.url + '"><img src=' + collab.avatar_url + '"/></a>').appendTo('#collaborators');
});
}


$.ajax({
url: 'https://api.github.com/repos/crabasa/seattlehacks/collaborators?callback=buildCollabs'
}).done(function() {

});

</script>
17 changes: 17 additions & 0 deletions search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: default
title: Search
---
<h2>Search</h2>
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl(
'011229841708764099387:0ppwh9slobo');

customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
36 changes: 36 additions & 0 deletions stylesheets/site.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* Override some defaults */
html, body {
background-color: #eee;
}
body {
padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */
}

/* good lord, rename this class */
h1.foo {
font-size:30px;
margin-bottom:10px;
border-bottom: thin dotted #aaa;
}

.topbar .fill {
background-color: #5B9C64;
background-image: -webkit-linear-gradient(top, #5B9C64, #517B58);
}

/* The white background content wrapper */
.content {
background-color: #fff;
padding: 20px;
margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */
border-radius: 0 0 6px 6px;
box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.logo {
font-family: 'Courier New';
white-space: pre;
font-size:6px;
line-height:6px;
font-weight:bold;
}
34 changes: 34 additions & 0 deletions submit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: default
title: Submit
---
<h2>Submitting a Post</h2>
<p>Submitting a post is as simple as sending a pull request:</p>
<ol>
<li>Fork this repo</li>
<li>Compose your post using Markdown syntax</li>
<li>Name the file YYYY-MM-DD-title.md and copy to _posts directory</li>
<li>Submit a pull request for this new file</li>
</ol>
<p>Please make sure you include a YAML header at the top of the file that defines the <code>title</code> or your post and specifies the <code>post</code> layout.</p>
<pre>
---
title: Test
layout: post
---
</pre>
<h2>Submitting an Event</h2>
<p>Submitting an event is just like submitting a post. Follow the instructions above and you're 90% of the way there. Consider the content of the post to both be an announcement of your event and the core information that people need to know to find your event.</p>
<p>The only difference is that in order for your event to make it into our <a href="/calendar">calendar</a> you need to define some additional tags. All of these tags are required:</p>
<pre>
---
tags:
- event
- cal:name=Test Event #1
- cal:allday=false
- cal:start=2013-03-28T14:10:04+00:00
- cal:end=2013-03-28T14:10:04+00:00
- cal:venue=Hub Seattle
- cal:website=http://test.event.com
---
</pre>

0 comments on commit 5a403ab

Please sign in to comment.