This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="/contactme" method="post"> | |
<textarea id="greeting" name="greeting"></textarea> | |
<label for="email">email:</label> | |
<input type="text" id="email" name="email" /> | |
<input type="submit" value="Send" /> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "kristo.us node.js server" | |
author "Kris Walker" | |
start on startup | |
stop on shutdown | |
script | |
cd /home/kixx/development/kristo.us/ | |
exec sudo /home/kixx/local/bin/spark2 2>&1 >> /home/kixx/development/kristo.us/test.log | |
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*--------------------------------------------------------- | |
copyright: (c) 2010 by Kris Walker. All rights reserved. | |
----------------------------------------------------------*/ | |
body { | |
/* Choose one font-family and delete the rest */ | |
/* sans serif */ | |
font-family: "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, sans-serif; | |
/* serif */ | |
font-family: "Palatino Linotype", Palatino, "Bitstream Charter", "Book Antiqua", Baskerville, "Nimbus Roman No9 L", "URW Palladio L", "Century Schoolbook L", Georgia, serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var db = require('db'); | |
var assert = require('assert'); | |
var Q = require('q'); | |
function hash() { | |
// Hashing function used to make keys etc. | |
} | |
var Story = db.Model('Story', { | |
title: db.StringProperty() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open questions | |
// -------------- | |
// * Async or synchronous. Which is easier to implment in terms of SQLite for | |
// milestone 1? | |
// | |
// * How will the database be poplulated for milestone 1? I assume through | |
// another channel during the build process. | |
// | |
// * What properties should the connection object/handle passed to the proxy | |
// functions have so that the proxy functions have all the information they |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html manifest="cache.manifest"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Basecamp</title> | |
<style type="text/css"> | |
html * { | |
-webkit-transform: translate3d(0,0,0); | |
-webkit-font-smoothing: antialiased; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<style type="text/css"> | |
body { | |
font-size: 18px; | |
background: #000; | |
color: #fff; | |
} | |
#container { | |
width: 600px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* DAG node | |
* -------- | |
*/ | |
var tabbar = | |
[ | |
{ name: "tabname", | |
title: "Title", | |
thumbnail: "Icon", | |
resource_type: "list, movie, image, ...", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Kris Walker <kixxauth@gmail.com> | |
# Copyright 2011 Licensed under the MIT License http://opensource.org/licenses/mit-license.php | |
# | |
# Namespaced and Stateful events | |
# * Event names are namespaced | |
# * Event name specificity is separated by a dot "." | |
# * Event names get more specific from left to right. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a factory function which creates a middleware handler | |
# for serving static files. | |
# | |
# We have to use staticServer.serveFile() instead of .serve() because | |
# we are dynamically rewriting the file path based on the name of the | |
# application asking for the file. | |
resourceHandler = (opts) -> | |
staticServer = new static.Server(STATIC_PATH) |