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
# In a handler module. | |
class SomeHandler(BaseHandler): | |
def get(self): | |
if not self.user: | |
logging.warn('There is no user logged in. How aweful!') | |
return AuthenticationError | |
user_store = self.user.db |
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
<td height="60" align="right" valign="bottom" class="number"> | |
<a href="http://www.youtube.com/watch?v=3o9z37bMRME" target="_blank" | |
title="See Oridel on YouTube."> | |
<img border="0" height="55" src="/images/youtube_videos.png" width="78" | |
style="margin: 10px 10px 0 0;" /></a> | |
<a href="http://www.facebook.com/pages/Oridel-Anti-Aging-Moisturizers-and-Rejuvenating-Skin-Care-Products/133446643332279" target="_blank" title="Join Oridel on Facebook."> | |
<img border="0" height="55" src="/images/facebook.png" width="78" | |
style="margin: 10px 12px 0 0;" /></a> | |
</td> |
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
// ======================== | |
// CommonJS 2.0 environment | |
// ======================== | |
// | |
// (unratified draft specification) | |
// -------------------------------- | |
var env = (function (GLOBAL, undefined) { | |
'use strict'; |
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
/** | |
* DAG node | |
* -------- | |
*/ | |
var tabbar = | |
[ | |
{ name: "tabname", | |
title: "Title", | |
thumbnail: "Icon", | |
resource_type: "list, movie, image, ...", |