Skip to content

Commit 12fe350

Browse files
committed
Merge pull request #53 from codeandcoffeelb/enhancement/#51-add-a-page-for-challenges
add a page for challenges
2 parents 783c46c + c04be4b commit 12fe350

File tree

8 files changed

+125
-1
lines changed

8 files changed

+125
-1
lines changed

Diff for: _includes/challenge-list.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<ul id="member-list">
2+
{% for member in paginator.members %}
3+
<li>
4+
<a href="{{ site.baseurl }}{{ challenge.url | remove_first: '/' }}"><aside class="dates">{{ challenge.date | date:"%b %d" }}</aside></a>
5+
<a href="{{ site.baseurl }}{{ challenge.url | remove_first: '/' }}">{{ challenge.title }} <h2>{{ challenge.description }}</h2></a>
6+
</li>
7+
{% endfor %}
8+
</ul>
9+
10+
{% if paginator.previous_page or paginator.next_page %}
11+
{% include pagination.html %}
12+
{% endif %}

Diff for: _includes/navigation.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
<a href="/members/">members </a>
1414
{% endif %}
1515

16+
{% if page.url != "/challenges/" %}
17+
<a href="/challenges/">challenges </a>
18+
{% endif %}
1619
<a class="cta" href="{{ site.baseurl }}feed.xml">Subscribe</a>
17-
</nav>
20+
</nav>

Diff for: _layouts/challenge.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
archive: true
4+
---
5+
6+
<article class="post">
7+
<header>
8+
<h1>{{ page.title }}</h1>
9+
<h2 class="headline">{{ page.date | date:"%B %-d, %Y" }}</h2>
10+
</header>
11+
<section id="post-body">
12+
{{content}}
13+
</section>
14+
</article>

Diff for: _posts/challenges/2015-09-05-green-squares.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Green Squares"
3+
date: 2015-09-05 10:00:00
4+
category: challenge
5+
layout: challenge
6+
permalink: /challenges/greensquares
7+
---
8+
9+
<span id="greensquare"></span><h2>The Green Square Incident</h2>
10+
<p>Our first real "challenge" started at some point in the fall of 2015. One of the Joshes spontaneously suggested this challenge, and it turned into something suprisingly fun and creative:</p>
11+
12+
<h3>Put a green square on your screen as many ways as you can in 10 minutes.</h3>

Diff for: _posts/challenges/2015-12-20-bandcamp.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Apply to Bandcamp"
3+
date: 2015-12-20 00:00:00
4+
category: challenge
5+
layout: challenge
6+
permalink: /challenges/bandcamp
7+
---
8+
9+
<h2>Get a Job</h2>
10+
<p>This challenge was simple - figure out how to apply to Bandcamp.com as a Systems Engineer. The clues begin by visiting <a href="http://bandcamp.com/jobs#systems">Bandcamp.com's jobs page</a> and look for the Systems Engineer position. Read it carefully, and go!</p>

Diff for: _posts/challenges/2016-02-13-fuse.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Build a FUSE plugin"
3+
date: 2016-02-13 00:00:00
4+
category: challenge
5+
layout: challenge
6+
permalink: /challenges/fuse
7+
---
8+
9+
Ok, go ahead. Build a filesystem, using FUSE and the bindings for your favorite language. You could use Python, or Ruby, or Go, or Lua, or JavaScript, or... really, just about any language out there. So give it a shot. It's stupidly fun.
10+
11+
<h4>WTF is FUSE?</h4>
12+
13+
<ul>
14+
<li>Filesystems in Userspace</li>
15+
<li>aka, really easy to write custom filesystem - bindings for nearly every language imaginable</li>
16+
<li>implement a class consisting of up two dozen familiar POSIX methods such as mkdir, rename, symlink, open, read, write, etc. - basic filesystem in 50 lines of code or less</li>
17+
<li>not unlike implementing a REST api - a hierarchy (file paths, URLs), using a simple set of verbs to manipulate the documents</li>
18+
<li>like REST, you can do a lot with the basic concepts of directories and files - eg., the unix philosophy</li>
19+
<li><a href="https://github.com/dsoprea/GDriveFS/">GDriveFS</a>, <a href="https://code.google.com/archive/p/tweetfs/">TweetFS</a>, <a href="https://en.wikipedia.org/wiki/WikipediaFS">WikipediaFS</a>, and many other <a href="https://en.wikipedia.org/wiki/Filesystem_in_Userspace#Example_uses">awesome examples</a>
20+
</ul>
21+
22+
<a href=""></a>
23+
24+
25+
<h4>Resources</h4>
26+
27+
<ul>
28+
<li>Python: <a href="https://www.stavros.io/posts/python-fuse-filesystem/">python-fuse-filesystem</a> and <a href="http://hackaday.com/2013/11/06/writing-a-fuse-filesystem-in-python/">writing-a-fuse-filesystem-in-python</a></li>
29+
<li>JavaScript: <a href="https://github.com/bcle/fuse4js">fuse4js</a> and <a href="https://github.com/c4milo/fusejs">fusejs</a> and <a href="https://github.com/mafintosh/fuse-bindings">fuse-bindings</a></li>
30+
<li>seriously, just <a href="https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=fuse%20filesystem%20bindings&es_th=1">Google it</a></li>
31+
</ul>

Diff for: assets/css/main.css

+15
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,18 @@ code {
5151
}
5252
}
5353

54+
55+
56+
.post-date {
57+
color: #aaaaaa;
58+
}
59+
60+
#greensquare {
61+
float: left;
62+
width: 200px;
63+
height: 200px;
64+
margin-right: 20px;
65+
margin-bottom: 20px;
66+
background-color: #007700;
67+
}
68+

Diff for: challenges.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
profile: false
3+
title: "Welcome to Code and Coffee, Long Beach"
4+
permalink: challenges/
5+
---
6+
7+
<h1>Challenges</h1>
8+
9+
<p>Every weekend Code &amp;&amp; Coffee has a variety of activities, including group discussions, lightning talks, and - ocassionally - challenges. Challenges should be fun and offer something interesting to every skill level.</p>
10+
11+
<div id="challenge_list" class="content_box">
12+
13+
<h3>our challenges...</h3>
14+
15+
{% for post in site.posts %}
16+
{% if post.category == 'challenge' %}
17+
{% assign author = site.authors[post.author] %}
18+
{{ author.display_name }}
19+
<h4><a href="{{ post.url }}">{{ post.title }}</a> <span class="post-date">{{ post.date | date:"%b %d %Y" }}</span></h4>
20+
{% endif %}
21+
{% endfor %}
22+
23+
</div>
24+
25+
<p>If you have an idea for a new challenge, send @rogerhoward a private message (to avoid spoilers).</p>
26+
27+
{% include footer.html %}

0 commit comments

Comments
 (0)