Skip to content

Commit ac31176

Browse files
author
Gerad Suyderhoud
committed
winners
1 parent e0d317d commit ac31176

File tree

8 files changed

+204
-2
lines changed

8 files changed

+204
-2
lines changed

config/app.js

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ app.disable('registration'); // months beforehand
5757
app.disable('pre-coding'); // week beforehand
5858
app.enable('coding'); // coding + several hours before
5959
app.disable('voting'); // after
60+
app.enable('winners'); // after winners are selected
6061

6162
app.configure(function() {
6263
var assetManager = require('./assetmanager')(app);

designs/blog/winners.md

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Node Knockout Winners!
2+
3+
We're excited to announce the winners of <a href="http://nodeknockout.com/">Node Knockout</a>! Here are the champions among the <a href="http://nodeknockout.com/entries">167 entries</a> submitted this year.
4+
5+
# Overall Team
6+
<a href="http://somethingcoded.nko3.jitsu.com/"><img style='float:right;margin-left:1ex;margin-top:10px;width:160px;height:93px' src="http://alpha.url2png.com/v6/P50A14826D8629/668c7765e84d17c68f8b2738de696e9e/png/?url=http%3A%2F%2Fsomethingcoded.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
7+
<h2 style="margin-bottom:0"><a href="http://somethingcoded.nko3.jitsu.com/">Disasteroids</a></h2>
8+
<div style="margin-bottom:1em">by <a href="http://nodeknockout.com/teams/somethingcoded">SomethingCoded</a></div>
9+
10+
Disasteroids is a game where you do battle among a series of asteroids, slinging missiles at other players through the gravity field and trying to hit the most exciting shots. Inspired by the classic artillery games of old and our universal fascination with the stars.
11+
12+
<div style="clear:both;"></div>
13+
14+
# Overall Solo
15+
<a href="http://dothejoy.nko3.jitsu.com"><img style='float:right;margin-left:1ex;margin-top:10px;width:160px;height:93px' src="http://alpha.url2png.com/v6/P50A14826D8629/e8354394d854bd65a0685534a3fc1007/png/?url=http%3A%2F%2Fdothejoy.nko3.jitsu.com&viewport=1024x595&thumbnail_max_width=320"></a>
16+
<h2 style="margin-bottom:0"><a href="http://dothejoy.nko3.jitsu.com">HashPay</a></h2>
17+
<div style="margin-bottom:1em">by <a href="http://nodeknockout.com/teams/dothejoy">DoTheJoy</a></div>
18+
19+
Tweet payments to your friends.
20+
21+
<div style="clear:both;"></div>
22+
23+
# Innovation
24+
<a href="http://coalition-for-the-li.nko3.jitsu.com/"><img style='float:right;margin-left:1ex;margin-top:10px;width:160px;height:93px' src="http://alpha.url2png.com/v6/P50A14826D8629/27713c311b77b7f87f6f4d2cbcd90ce2/png/?url=http%3A%2F%2Fcoalition-for-the-li.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
25+
<h2 style="margin-bottom:0"><a href="http://coalition-for-the-li.nko3.jitsu.com/">Node.js Christmas Sweater</a></h2>
26+
<div style="margin-bottom:1em">by <a href="http://nodeknockout.com/teams/coalition-for-the-li">Coalition for the Liberation of Itinerant Tree-Dwellers</a></div>
27+
28+
It's a hardware/software hack. We created a wireless sweater that takes in messages from the internet and wirelessly displays them on our LoL Shield powered by an arduino built into our own handmade christmas sweater. <a href="http://youtu.be/e33VV6XPqlc">Watch the video.</a>
29+
30+
<div style="clear:both;"></div>
31+
32+
# Design
33+
<a href="http://public-class.nko3.jitsu.com/"><img style='float:right;margin-left:1ex;margin-top:10px;width:160px;height:93px' src="http://alpha.url2png.com/v6/P50A14826D8629/8161bf42d41697703eec858e8de1f783/png/?url=http%3A%2F%2Fpublic-class.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
34+
<h2 style="margin-bottom:0"><a href="http://public-class.nko3.jitsu.com/">Hex</a></h2>
35+
<div style="margin-bottom:1em">by <a href="http://nodeknockout.com/teams/public-class">Public Class</a></div>
36+
37+
A multiplayer game where being in the way of your opponents puts you on top.
38+
39+
<div style="clear:both;"></div>
40+
41+
# Utility / Fun
42+
<a href="http://watermelon-sauce.nko3.jitsu.com/"><img style='float:right;margin-left:1ex;margin-top:10px;width:160px;height:93px' src="http://alpha.url2png.com/v6/P50A14826D8629/139f08ab64ea2a050a0ad58189500053/png/?url=http%3A%2F%2Fwatermelon-sauce.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
43+
<h2 style="margin-bottom:0"><a href="http://watermelon-sauce.nko3.jitsu.com/">Narwhal Knights</a></h2>
44+
<div style="margin-bottom:1em">by <a href="http://nodeknockout.com/teams/watermelon-sauce">🍉</a></div>
45+
46+
Narwhal Knights is a game of knights. Riding Narwhals. Narwhals with wings. Impale the other knights while dodging deadly spikes and lava balls of doom.
47+
48+
<div style="clear:both;"></div>
49+
50+
# Completeness
51+
<a href="http://comorichweb.nko3.jitsu.com/"><img style='float:right;margin-left:1ex;margin-top:10px;width:160px;height:93px' src="http://alpha.url2png.com/v6/P50A14826D8629/80ca0845cd3505a2bbefb39ac44ee9e9/png/?url=http%3A%2F%2Fcomorichweb.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
52+
<h2 style="margin-bottom:0"><a href="http://comorichweb.nko3.jitsu.com/">Asciigram</a></h2>
53+
<div style="margin-bottom:1em">by <a href="http://nodeknockout.com/teams/comorichweb">comorichweb</a></div>
54+
55+
Convert your webcam and images to ASCII and share them!
56+
57+
<div style="clear:both;"></div>
58+
59+
# Popularity
60+
<a href="http://design-4-quality.nko3.jitsu.com/info"><img style='float:right;margin-left:1ex;margin-top:10px;width:160px;height:93px' src="http://alpha.url2png.com/v6/P50A14826D8629/74474527b849b598a152c3902518904a/png/?url=http%3A%2F%2Fdesign-4-quality.nko3.jitsu.com%2Finfo&viewport=1024x595&thumbnail_max_width=320"></a>
61+
<h2 style="margin-bottom:0"><a href="http://design-4-quality.nko3.jitsu.com/info">Space bridge</a></h2>
62+
<div style="margin-bottom:1em">by <a href="http://nodeknockout.com/teams/design-4-quality">Design 4 Quality</a></div>
63+
64+
A devastating earthquake has hit our planet! In these situations, help is needed by most! While the majority is trying to help the people, animals and the plant world, You have got a special mission to find those of whom a very small number of people know exist...Aliens!!
65+
66+
<div style="clear:both;"></div>
67+
68+
# Congratulations!
69+
70+
Congratulations to <a href="http://nodeknockout.com/entries">all who participated</a>. There were a ton of great entries this year!
71+
72+
We will be following up over email with winners and sponsors that are providing prizes.

helpers/index.coffee

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports = (app) ->
5454
preCoding: app.enabled 'pre-coding'
5555
coding: app.enabled 'coding'
5656
voting: app.enabled 'voting'
57+
winners: app.enabled 'winners'
5758

5859
Vote: mongoose.model 'Vote'
5960
stars: (count) ->

public/stylesheets/application.styl

+14-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ form.vote
396396
li
397397
display inline
398398
margin 0 1ex
399-
> h1, form > h1
399+
> h1, form > h1, .winners > h1
400400
inverted()
401401
margin 0 0 0 -23px
402402
padding-left 23px
@@ -451,6 +451,19 @@ form.vote
451451
width 80px
452452

453453
#page.index-index #inner
454+
.winners
455+
img
456+
float right
457+
margin 0 0 0 10px
458+
width 240px
459+
height 148px
460+
border solid 2px hsl(0, 0%, 90%)
461+
border solid 2px hsla(0, 0%, 0%, 0.1)
462+
border-radius 2px
463+
h2
464+
margin-bottom 0
465+
h4
466+
margin-top 5px
454467
header h1
455468
font-size xxx-large !important
456469
.ko

scripts/everybody.coffee

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'colors'
2+
env = require '../config/env'
3+
mongoose = require('../models')(env.mongo_url)
4+
5+
Person = mongoose.model 'Person'
6+
7+
Person.find { email: /@/, }, (err, people) ->
8+
throw err if err
9+
for person in people
10+
console.log person.email.replace(/\.nodeknockout\.com$/, '')
11+
mongoose.connection.close()

scripts/winner.coffee

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
require 'colors'
2+
env = require '../config/env'
3+
mongoose = require('../models')(env.mongo_url)
4+
5+
slug = process.argv[2]
6+
7+
exit = (msg) ->
8+
console.error(msg.red) if msg
9+
process.exit(-1)
10+
11+
unless slug
12+
exit("Usage: coffee winners.coffee winning-team-slug")
13+
process.exit()
14+
15+
16+
console.log "Creating winner markdown for #{process.argv[2]}"
17+
18+
Team = mongoose.model 'Team'
19+
20+
Team.findOne slug: slug, (err, team) ->
21+
return exit(err) if err
22+
console.log """
23+
# Category
24+
<a href="#{team.entry.url}"><img src="#{team.screenshot}"></a>
25+
## [#{team.entry.name}](#{team.entry.url})
26+
#### by [#{team.name}](/teams/#{team})
27+
28+
#{team.entry.description}
29+
30+
<div style="clear:both;"></div>
31+
"""
32+
mongoose.connection.close()

views/index/index.jade

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ if registration
2525
else
2626
h1 Registration is Full
2727
p: a( href="/teams/new" ) More spots on Nov 1 at 0:00 & 12:00 UTC
28-
28+
else if winners
29+
!= partial('winners')
2930
else
3031
h1 Timeline
3132

views/index/winners.jade

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
.winners
2+
:markdown
3+
## Node.js Knockout Winners!
4+
5+
We're excited to announce the winners of Node Knockout! Here are the best
6+
of the [167 entries](/entries) submitted this year.
7+
8+
# Overall Team
9+
<a href="http://somethingcoded.nko3.jitsu.com/"><img src="http://alpha.url2png.com/v6/P50A14826D8629/668c7765e84d17c68f8b2738de696e9e/png/?url=http%3A%2F%2Fsomethingcoded.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
10+
## [Disasteroids](http://somethingcoded.nko3.jitsu.com/)
11+
#### by [SomethingCoded](/teams/somethingcoded)
12+
13+
Disasteroids is a game where you do battle among a series of asteroids, slinging missiles at other players through the gravity field and trying to hit the most exciting shots. Inspired by the classic artillery games of old and our universal fascination with the stars.
14+
15+
<div style="clear:both;"></div>
16+
17+
# Overall Solo
18+
<a href="http://dothejoy.nko3.jitsu.com"><img src="http://alpha.url2png.com/v6/P50A14826D8629/e8354394d854bd65a0685534a3fc1007/png/?url=http%3A%2F%2Fdothejoy.nko3.jitsu.com&viewport=1024x595&thumbnail_max_width=320"></a>
19+
## [HashPay](http://dothejoy.nko3.jitsu.com)
20+
#### by [DoTheJoy](/teams/dothejoy)
21+
22+
Tweet payments to your friends.
23+
24+
<div style="clear:both;"></div>
25+
26+
# Innovation
27+
<a href="http://coalition-for-the-li.nko3.jitsu.com/"><img src="http://alpha.url2png.com/v6/P50A14826D8629/27713c311b77b7f87f6f4d2cbcd90ce2/png/?url=http%3A%2F%2Fcoalition-for-the-li.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
28+
## [Node.js Christmas Sweater](http://coalition-for-the-li.nko3.jitsu.com/)
29+
#### by [Coalition for the Liberation of Itinerant Tree-Dwellers](/teams/coalition-for-the-li)
30+
31+
It's a hardware/software hack. We created a wireless sweater that takes in messages from the internet and wirelessly displays them on our LoL Shield powered by an arduino built into our own handmade christmas sweater. [Watch the video.](http://youtu.be/e33VV6XPqlc)
32+
33+
<div style="clear:both;"></div>
34+
35+
# Design
36+
<a href="http://public-class.nko3.jitsu.com/"><img src="http://alpha.url2png.com/v6/P50A14826D8629/8161bf42d41697703eec858e8de1f783/png/?url=http%3A%2F%2Fpublic-class.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
37+
## [Hex](http://public-class.nko3.jitsu.com/)
38+
#### by [Public Class](/teams/public-class)
39+
40+
A multiplayer game where being in the way of your opponents puts you on top.
41+
42+
<div style="clear:both;"></div>
43+
44+
# Utility / Fun
45+
<a href="http://watermelon-sauce.nko3.jitsu.com/"><img src="http://alpha.url2png.com/v6/P50A14826D8629/139f08ab64ea2a050a0ad58189500053/png/?url=http%3A%2F%2Fwatermelon-sauce.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
46+
## [Narwhal Knights](http://watermelon-sauce.nko3.jitsu.com/)
47+
#### by [🍉](/teams/watermelon-sauce)
48+
49+
Narwhal Knights is a game of knights. Riding Narwhals. Narwhals with wings. Impale the other knights while dodging deadly spikes and lava balls of doom.
50+
51+
<div style="clear:both;"></div>
52+
53+
# Completeness
54+
<a href="http://comorichweb.nko3.jitsu.com/"><img src="http://alpha.url2png.com/v6/P50A14826D8629/80ca0845cd3505a2bbefb39ac44ee9e9/png/?url=http%3A%2F%2Fcomorichweb.nko3.jitsu.com%2F&viewport=1024x595&thumbnail_max_width=320"></a>
55+
## [Asciigram](http://comorichweb.nko3.jitsu.com/)
56+
#### by [comorichweb](/teams/comorichweb)
57+
58+
Convert your webcam and images to ASCII and share them!
59+
60+
<div style="clear:both;"></div>
61+
62+
# Popularity
63+
<a href="http://design-4-quality.nko3.jitsu.com/info"><img src="http://alpha.url2png.com/v6/P50A14826D8629/74474527b849b598a152c3902518904a/png/?url=http%3A%2F%2Fdesign-4-quality.nko3.jitsu.com%2Finfo&viewport=1024x595&thumbnail_max_width=320"></a>
64+
## [Space bridge](http://design-4-quality.nko3.jitsu.com/info)
65+
#### by [Design 4 Quality](/teams/design-4-quality)
66+
67+
A devastating earthquake has hit our planet!
68+
In these situations, help is needed by most!
69+
While the majority is trying to help the people, animals and the plant world, You have got a special mission to find those of whom a very small number of people know exist...Aliens!!
70+
71+
<div style="clear:both;"></div>

0 commit comments

Comments
 (0)