Skip to content

Instantly share code, notes, and snippets.

View kixxauth's full-sized avatar

Kris Walker kixxauth

View GitHub Profile
@kixxauth
kixxauth / basecamp-mobile.html
Created April 3, 2011 17:41
The bootstrap page to load the Basecamp mobile web app.
<!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;
@kixxauth
kixxauth / ebooq-db-binding.js
Created March 17, 2011 20:34
SQLite binding API for milestone 1 for Node.js app.
// 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
@kixxauth
kixxauth / datamodel.js
Created March 8, 2011 15:05
Simple JS data modeling
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()
@kixxauth
kixxauth / fontstack.css
Created January 26, 2011 19:04
My CSS font stack that I always seem to come back to.
/*---------------------------------------------------------
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;
@kixxauth
kixxauth / kristous.conf
Created January 25, 2011 16:48
Use upstart and spark2 to start a hello world http server on node.js
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
@kixxauth
kixxauth / contact_form.html
Created November 29, 2010 17:44
Code snippets for a contact form.
<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>
@kixxauth
kixxauth / crown_construction.js
Created November 21, 2010 20:02
Enterprice Resource Management application with CommonJS 2.0 JS loader.
// ========================
// CommonJS 2.0 environment
// ========================
//
// (unratified draft specification)
// --------------------------------
var env = (function (GLOBAL, undefined) {
'use strict';
@kixxauth
kixxauth / oridel-snip.html
Created November 2, 2010 18:08
new links
<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>
@kixxauth
kixxauth / fwerks_models.py
Created October 24, 2010 22:49
A wrapper for App Engine models that incorporates user permissions.
# 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
@kixxauth
kixxauth / README
Created October 22, 2010 12:49
FWP copyright and license
Copyright and License
---------------------
copyright: (c) 2010 by Fireworks Technology Projects Inc.
Unless otherwise indicated, all source code is licensed under the MIT license.
See MIT-LICENSE for details.
And, unless otherwise indicated, all content, including written copy and images
but not including source code, is licensed under a Creative Commons
Attribution-ShareAlike 3.0 Unported license. All derivatives of this content