Permalink
Browse files

first commit

  • Loading branch information...
jColeChanged committed Nov 22, 2010
0 parents commit 707faac004f59745408a764f435cc7bc74af8623
@@ -0,0 +1,4 @@
pom.xml
*jar
lib
classes
17 README
@@ -0,0 +1,17 @@
# mysite
FIXME: write description
## Usage
FIXME: write
## Installation
FIXME: write
## License
Copyright (C) 2010 FIXME
Distributed under the Eclipse Public License, the same as Clojure.
@@ -0,0 +1,10 @@
(defproject mysite "1.0.0-SNAPSHOT"
:description "A portfolio site. Hopefully it will get me a job."
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
[compojure "0.5.3"]
[ring/ring-jetty-adapter "0.3.1"]
[enlive "1.0.0-SNAPSHOT"]]
:dev-dependencies [[appengine-magic "0.3.0-SNAPSHOT"]
[swank-clojure "1.2.1"]]
:namespaces [mysite.app_servlet])
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>mysite</application>
<version>1</version>
<static-files/>
<resource-files/>
</appengine-web-app>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>mysite</display-name>
<servlet>
<servlet-name>app</servlet-name>
<servlet-class>mysite.app_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>app</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
@@ -0,0 +1 @@
sh ~/Programming/appengine-java-sdk-1.3.8/bin/dev_appserver.sh ~/Programming/mysite/resources/
@@ -0,0 +1,8 @@
(ns mysite.app_servlet
(:gen-class :extends javax.servlet.http.HttpServlet)
(:use mysite.core)
(:use [appengine-magic.servlet :only [make-servlet-service-method]]))
(defn -service [this request response]
((make-servlet-service-method mysite-app) this request response))
@@ -0,0 +1,21 @@
(ns mysite.core
(:use compojure.core)
(:require [net.cgrand.enlive-html :as html])
(:require [appengine-magic.core :as ae]))
;; Templates
(html/deftemplate add-project "mysite/projects/add.html" [] [] [])
(defn show-project
[request]
(str request))
(defroutes mysite-app-handler
(GET "/projects/add/" [] (add-project))
(POST "/projects/add/" [] show-project)
(GET "*" req
{:status 200
:headers {"Content-Type" "text/plain"}
:body "making changes live*"}))
(ae/def-appengine-app mysite-app #'mysite-app-handler)
@@ -0,0 +1,17 @@
(ns mysite.core
(:use compojure.core)
(:require [net.cgrand.enlive-html :as html])
(:require [appengine-magic.core :as ae]))
;; Templates
(html/deftemplate add-project "mysite/projects/add.html" [] [] [])
(defroutes mysite-app-handler
(GET "/projects/add/" (add-project))
(GET "*" req
{:status 200
:headers {"Content-Type" "text/plain"}
:body "making changes live*"}))
(ae/def-appengine-app mysite-app #'mysite-app-handler)
@@ -0,0 +1,18 @@
<html>
<head>
</head>
<body>
<h1>Add a project</h1>
<form method="POST" action="/projects/add/">
<label for="title">Title</label><br />
<input name="title" type="text"></input><br />
<label for="pitch">Pitch</label><br />
<input name="pitch" type="text"></input><br />
<label for="details">Details</label><br />
<textarea name="details" rows="10" cols="80"></textarea><br />
<label for="priority">Priority</label><br />
<input name="priority" type="text"></input><br />
<input type="submit" value="Add project"></input>
</form>
<body>
</html>
@@ -0,0 +1,5 @@
html {
line-height: 1.5em;
text-size: 14px;
font-family:Georgia,Utopia,Palatino,'Palatino Linotype',serif;
}
@@ -0,0 +1,5 @@
html {
line-height: 1.5em;
text-size: 14px;
font-family:Georgia,Utopia,Palatino,'Palatino Linotype',serif;
}
@@ -0,0 +1,65 @@
<html><head>
<style type="text/css">
html {
line-height: 1.5em;
text-size: 14px;
font-family:Georgia,Utopia,Palatino,'Palatino Linotype',serif;
}
.projects {
width:720px;
margin-left:50px;
}
.project {
background-image:url('file:///home/joshua/Pictures/workingonit.png');
background-repeat:no-repeat;
margin:20px 0px;
border:solid;
}
h2 {
display: inline;
margin: 0px;
padding: 0px;
}
.project p {
margin: 0px;
padding: 0px;
}
.details {
display: none;
}
.projects a {
float:right;
}
</style>
</head><body>
<div class="projects">
<h1>Projects</h1>
<div class="project">
<h2>Unscramble It</h2>
<a href="http://anagramscramble.appspot.com/">site</a>
<p class="pitch">Race the clock and your friends to unscramble words, learning as you go. Solve words quickly to gain more points! Can you claim the highest score?</p>
<div class="details">
Motivation
I had played a similar game with a friend and found it to be a lot of fun so when I wanted to write a program just for kicks and couldn't think of anything better to do, I latched onto this. As it turns out I found better things to work on so right now this project isn't really that important to me. However, if you play it make sure to let me know. I don't want to leave focus bugs and cross browser inconsitency in something people are actually going to use.
Technical
Server side this python app is using the django-norel framework and running on AppEngine. Client side it is making use of JQuery and JQueryUI. Word info is being fetched through the wordnik API.
</div>
</div>
<div class="project">
<h2>Personal Site</h2><a href="http://personalsite.appspot.com/">site</a>
<p class="pitch">My projects, blog, and anything else I decide to share in one convenient location.</p>
<div class="details">
Motivation
I wanted to create something useful for myself.
Technical
Clojure on google appegnine. Compojure with enlive for templates.
</div>
</div>
</div>
</body></html>
@@ -0,0 +1,58 @@
<html><head>
<style type="text/css">
html {
line-height: 1.5em;
text-size: 14px;
font-family:Georgia,Utopia,Palatino,'Palatino Linotype',serif;
}
.projects {
width:720px;
margin-left:50px;
}
.project {
}
h2 {
display: inline;
margin: 0px;
padding: 0px;
}
.details {
display: none;
}
.projects a {
float:right;
}
</style>
</head><body>
<div class="projects">
<h1>Projects</h1>
<div class="project">
<h2>Unscramble It</h2>
<a href="http://anagramscramble.appspot.com/">site</a>
<p class="pitch">Race the clock and your friends to unscramble words, learning as you go. Solve words quickly to gain more points! Can you claim the highest score?</p>
<div class="details">
Motivation
I had played a similar game with a friend and found it to be a lot of fun so when I wanted to write a program just for kicks and couldn't think of anything better to do, I latched onto this. As it turns out I found better things to work on so right now this project isn't really that important to me. However, if you play it make sure to let me know. I don't want to leave focus bugs and cross browser inconsitency in something people are actually going to use.
Technical
Server side this python app is using the django-norel framework and running on AppEngine. Client side it is making use of JQuery and JQueryUI. Word info is being fetched through the wordnik API.
</div>
</div>
<div class="project">
<h2>Personal Site</h2><a href="http://personalsite.appspot.com/">site</a>
<p class="pitch">My projects, blog, and anything else I decide to share in one convenient location.</p>
<div class="details">
Motivation
I wanted to create something useful for myself.
Technical
Clojure on google appegnine. Compojure with enlive for templates.
</div>
</div>
</div>
</body></html>
@@ -0,0 +1,6 @@
(ns mysite.test.core
(:use [mysite.core] :reload)
(:use [clojure.test]))
(deftest replace-me ;; FIXME: write
(is false "No tests have been written."))

0 comments on commit 707faac

Please sign in to comment.