Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

missing some files

  • Loading branch information...
commit a797f2b1a0f0ce253b789eefec138dc7f7de263d 1 parent 3fd99d2
@ptarjan authored
Showing with 129 additions and 0 deletions.
  1. +17 −0 app.yaml
  2. +99 −0 event.html
  3. +11 −0 index.yaml
  4. +1 −0  python-sdk
  5. +1 −0  simplejson
View
17 app.yaml
@@ -0,0 +1,17 @@
+application: fb-hackathon
+version: 1
+runtime: python
+api_version: 1
+
+handlers:
+- url: /static
+ static_dir: static
+- url: /images
+ static_dir: static
+
+- url: /favicon.ico
+ static_files: static/favicon.ico
+ upload: static/favicon.ico
+
+- url: .*
+ script: main.py
View
99 event.html
@@ -0,0 +1,99 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>
+ Facebook Camp Hackathon
+ </title>
+
+ <link rel="stylesheet" href="/static/dynamic.12380.css" type="text/css" />
+ <link rel="stylesheet" href="/static/power.12380.css" type="text/css" />
+</head>
+<body>
+<style>
+tr {
+ border-top: 1px solid #ccc;
+}
+td {
+ padding: 10px;
+}
+</style>
+
+<div id="container">
+<form class="wufoo">
+
+<div class="info">
+ <h2><a href="http://www.facebook.com/camphackathon">Facebook Camp Hackathon</a></h2>
+ <div>Hacks for <a href="/{{ eid }}/event">{{ event.name }}</a></div>
+</div>
+
+<table>
+ <tr>
+ <th>Hackers</th>
+ <th>Title</th>
+ <th>Description</th>
+ <th>Screenshot</th>
+ </tr>
+{% for hack in hacks %}
+ <tr class="hack">
+ <!--
+ <input type="button" class="remove" value="Remove" style="visibility:hidden" />
+ -->
+ <td>
+ {% for person in hack.people %}
+ <a href="http://www.facebook.com/profile.php?id={{ person.id }}">
+ <img src="http://graph.facebook.com/{{ person.id }}/picture" title="{{ person.name }}" alt="{{ person.name }}" />
+ </a>
+ {% endfor %}
+ </td>
+ <td>
+ <a target="_new" href="{{ hack.link }}">{{ hack.title|truncatewords:"10" }}</a>
+ </td>
+ <td>
+ <a target="_new" href="{{ hack.link }}">{{ hack.description|truncatewords:"50" }}</a>
+ </td>
+ <td>
+ <a href="{{ hack.screenshot_raw }}">
+ <img src="{{ hack.screenshot }}" />
+ </a>
+ </td>
+ </tr>
+{% endfor %}
+</table>
+
+<input id="randomize" value="randomize" type="button"/>
+
+</div>
+<img id="bottom" src="/static/bottom.png" alt="" />
+
+<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
+<script>
+$(function() {
+ $('#randomize').click(function() {
+ var lis = $('.hack');
+ lis.each(function() {
+ $(this).remove()
+ });
+
+ function RandomSort() {
+ return Math.floor((Math.random()*lis.length)-1)
+ }
+ lis.sort(RandomSort);
+
+ $('table').append(lis);
+ return false;
+ });
+ $('.remove').click(function() {
+ $(this).parent().remove();
+ });
+ $('li').mouseover(function() {
+ $(this).children('.remove').each(function() {
+ this.style.visibility = "visible";
+ });
+ });
+ $('li').mouseout(function() {
+ $(this).children('.remove').each(function() {
+ this.style.visibility = "hidden";
+ });
+ });
+});
+</script>
View
11 index.yaml
@@ -0,0 +1,11 @@
+indexes:
+
+# AUTOGENERATED
+
+# This index.yaml is automatically updated whenever the dev_appserver
+# detects that a new type of query is run. If you want to manage the
+# index.yaml file manually, remove the above marker line (the line
+# saying "# AUTOGENERATED"). If you want to manage some indexes
+# manually, move them above the marker line. The index.yaml file is
+# automatically uploaded to the admin console when you next deploy
+# your application using appcfg.py.
1  python-sdk
@@ -0,0 +1 @@
+Subproject commit 2da0f678f0c0c5a5ddc77b7456dde232e9b98bd9
View
1  simplejson
Please sign in to comment.
Something went wrong with that request. Please try again.