This file contains hidden or 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
''' | |
Generates a stupid api the illustrates returning POST data from tastypie | |
''' | |
import random | |
import shelve | |
from hashlib import md5 | |
from datetime import datetime | |
from django.utils import simplejson | |
from tastypie.resources import Resource | |
from tastypie.authorization import ReadOnlyAuthorization, DjangoAuthorization, Authorization |
This file contains hidden or 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
<html> | |
<head> | |
<title>Socket.IO Example</title> | |
<script src="http://apollo.dyn.mke.corvisa.com:8080/static/js/mootools.js"></script> | |
<script src="http://apollo.dyn.mke.corvisa.com:4000/socket.io/socket.io.js"></script> | |
<style> | |
html,body{background:#888;} | |
h1{color:#FF9900;font-family:'Trebuchet MS',helvetica, arial, sans-serif;border-bottom:1px solid #333; padding:6px;margin-bottom:4px;text-shadow:#333 0 1px 0;} | |
ul{margin:0;padding:0;} | |
#tweets li{ |
This file contains hidden or 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
/** | |
* | |
* AMD module for logging function calls. Intended for use with require.js ( http://www.requirejs.org ) | |
* inspired by Mootools Log ( https://github.com/mootools/mootools-more/blob/1.2x/Source/Core/Log.js ) | |
* and js-klib ( http://code.google.com/p/js-klib/source/browse/klib.js ) | |
* @author Eric Satterwhite | |
* @module log | |
*/ | |
define(['require','exports','array'],function(require, exports, array){ | |
var has_log = ( console && console.log ); |
This file contains hidden or 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
/** | |
* Module for General utility functions and classes | |
* @module utils | |
* | |
*/ | |
Ext.ns('BlackjackM','BlackjackM.utils', 'BlackjackM.utils.forms'); | |
/** | |
* A class which renders and validates a form based on a Ext.data.Model or Model instace |
This file contains hidden or 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
/** | |
* Base Module for Generic Components | |
* @module Blackjack | |
*/ | |
/** | |
* Class for creating Modal form objects. | |
* Meant to work with Blackjack.FormFactory | |
* @extends Ext.Window | |
* @namespace Blackjack |
NewerOlder