Skip to content

Commit 9f74138

Browse files
author
Giovanni Cappellotto
committed
Add jekyll support; add first article about Goliath
1 parent b377cb9 commit 9f74138

11 files changed

Lines changed: 242 additions & 1 deletion

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_drafts/
2+
_site/

‎_config.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
markdown: rdiscount

‎_layouts/default.html‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>{{ page.title }}</title>
6+
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Concert+One" />
7+
<link rel="stylesheet" type="text/css" href="/stylesheets/reset.css" />
8+
<link rel="stylesheet" type="text/css" href="/stylesheets/style.css" />
9+
<!--[if IE]>
10+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11+
<![endif]-->
12+
</head>
13+
14+
<body>
15+
<div id="container">
16+
<header class="wrapper clearfix">
17+
<h1 id="title"><a href="/">Hackatron</a></h1>
18+
</header>
19+
20+
<div id="main" class="wrapper clearfix">
21+
{{ content }}
22+
</div>
23+
24+
<footer class="wrapper">
25+
<nav>
26+
<ul>
27+
<li><a href="/">Home</a></li>
28+
<li><a href="/about.html">About</a></li>
29+
</ul>
30+
</nav>
31+
</footer>
32+
</div>
33+
</body>
34+
</html>

‎_layouts/post.html‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article>
6+
<header>
7+
<h2>{{ page.title }}</h2>
8+
<time datetime='{{ page.date | date: "%Y-%m-%d" }}'>{{ page.date | date: "%B %d, %Y" }}</time>
9+
</header>
10+
{{ content }}
11+
</article>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: post
3+
title: Goliath web server framework
4+
---
5+
6+
For the [first project][project] at Hackatron we want to experiment with [Goliath][goliath], the open source version of the non-blocking (asynchronous) Ruby web server framework powering PostRank.
7+
8+
Goliath is a lightweight framework designed to meet the following goals: bare metal performance, Rack API and middleware support, simple configuration, fully asynchronous processing, and readable and maintainable code (read: no callbacks).
9+
10+
One of the coolest things about Goliath is that it makes a clever use of Ruby Fibers in conjunction with Event Machine to let developers write *normal code*, following a linear execution, running instead in an asynchronous way. This leads to more readable and maintainable code that just doesn't block.
11+
12+
How is it possible? Well, under the hood, each Goliath request is executed in its own fiber and all asynchronous I/O operations can transparently suspend and later resume the processing without requiring the developer to write any additional code.
13+
14+
[project]: http://github.com/hackatron/sveglia
15+
[goliath]: http://postrank-labs.github.com/goliath/

‎about.html‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
title: Hackatron - About
4+
---
5+
6+
<div id="about">
7+
<h2>About</h2>
8+
<p>
9+
We're a group of developers, designers, tinkers. We want to have fun building things and learning something new.<br>This is Hackatron.
10+
</p>
11+
<p>
12+
Source if this blog can be found at <a href="http://github.com/hackatron/hackatron.github.com">http://github.com/hackatron/hackatron.github.com</a>.
13+
</p>
14+
</div>

‎atom.xml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: nil
3+
---
4+
5+
<?xml version="1.0" encoding="utf-8"?>
6+
<feed xmlns="http://www.w3.org/2005/Atom">
7+
8+
<title>Hackatron</title>
9+
<link href="http://hackatron.github.com/atom.xml" rel="self"/>
10+
<link href="http://hackatron.github.com/"/>
11+
<updated>{{ site.time | date_to_xmlschema }}</updated>
12+
<id>http://hackatron.github.com/</id>
13+
<author>
14+
<name>Hackatron</name>
15+
<email>potomak84@gmail.com</email>
16+
</author>
17+
18+
{% for post in site.posts %}
19+
<entry>
20+
<title>{{ post.title }}</title>
21+
<link href="http://hackatron.github.com{{ post.url }}"/>
22+
<updated>{{ post.date | date_to_xmlschema }}</updated>
23+
<id>http://hackatron.github.com{{ post.id }}</id>
24+
<content type="html">{{ post.content | xml_escape }}</content>
25+
</entry>
26+
{% endfor %}
27+
28+
</feed>

‎favicon.ico‎

1.12 KB
Binary file not shown.

‎index.html‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
Hi, this is Hack-a-tron!
1+
---
2+
layout: default
3+
title: Hackatron
4+
---
5+
6+
<div id="home">
7+
<h2>Posts</h2>
8+
<ul class="posts">
9+
{% for post in site.posts %}
10+
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
11+
{% endfor %}
12+
</ul>
13+
</div>

‎stylesheets/reset.css‎

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
http://meyerweb.com/eric/tools/css/reset/
3+
v2.0b1 | 201101
4+
NOTE:WORK IN PROGRESS
5+
USE WITH CAUTION AND TEST WITH ABANDON
6+
*/
7+
8+
html,body,div,span,applet,object,iframe,
9+
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
10+
a,abbr,acronym,address,big,cite,code,
11+
del,dfn,em,img,ins,kbd,q,s,samp,
12+
small,strike,strong,sub,sup,tt,var,
13+
b,u,i,center,
14+
dl,dt,dd,ol,ul,li,
15+
fieldset,form,label,legend,
16+
table,caption,tbody,tfoot,thead,tr,th,td,
17+
article,aside,canvas,details,figcaption,figure,
18+
footer,header,hgroup,menu,nav,section,summary,
19+
time,mark,audio,video{
20+
margin:0;
21+
padding:0;
22+
border:0;
23+
outline:0;
24+
font-size:100%;
25+
font:inherit;
26+
vertical-align:baseline;
27+
}
28+
/* HTML5 display-role reset for older browsers */
29+
article,aside,details,figcaption,figure,
30+
footer,header,hgroup,menu,nav,section{
31+
display:block;
32+
}
33+
body{
34+
line-height:1;
35+
}
36+
ol,ul{
37+
list-style:none;
38+
}
39+
blockquote,q{
40+
quotes:none;
41+
}
42+
blockquote:before,blockquote:after,
43+
q:before,q:after{
44+
content:'';
45+
content:none;
46+
}
47+
/* remember to define visible focus styles!
48+
:focus{
49+
outline:?????;
50+
} */
51+
52+
/* remember to highlight inserts somehow! */
53+
ins{
54+
text-decoration:none;
55+
}
56+
del{
57+
text-decoration:line-through;
58+
}
59+
60+
table{
61+
border-collapse:collapse;
62+
border-spacing:0;
63+
}

0 commit comments

Comments
 (0)