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 |
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
/** | |
* | |
* 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
<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
''' | |
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
var zmq = require("zmq") | |
var pub = zmq.createSocket("pub") | |
pub.bind("tcp://127.0.0.1:19019"); | |
var x = 0 | |
setInterval(function(){ | |
console.log('publishing') | |
pub.send('foobar ' + ( ++x ) ) | |
},250) |
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
var zmq = require( "zmq" ) | |
, xpub // xpub to redistribute messages over known port | |
, xsub; // xsub to recieve incomming messaes | |
var xpub_url = 'tcp://0.0.0.0:9999' | |
var xsub_url = 'tcp://0.0.0.0:9998'; | |
var noop = function(){"use strict";} | |
xpub = zmq.socket( "xpub" ); | |
xsub = zmq.socket( "xsub" ); |
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
{ | |
"apps" : [{ | |
"name" : "Alice", | |
"script" : "/home/esatterwhite/dev/js/spiritshop-api/server.js", | |
"instances": 3, | |
"port":3001, | |
"env": { | |
"logger": "stdout", | |
"log__stdout__prettyPrint":0, | |
"NODE_PATH":"/home/esatterwhite/dev/js/spiritshop-api/packages" |
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
/*jshint node:true, laxcomma: true, smarttabs: true*/ | |
'use strict'; | |
/** | |
The conf package reads configurations options in an overriding fashion from a number of sources. In order of importance: | |
1. System level overrides | |
2. Command line arguments | |
3. Environment variables | |
4. A configuration file(s) | |
5. System specified defaults |
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
<snippet> | |
<content><![CDATA[ | |
/** | |
* Description | |
* @constructor | |
* @alias module:$TM_FILENAME | |
* @param {TYPE} [param] | |
* @param {TYPE} [?param.val=1j] | |
* @example var x = new require('$TM_FILENAME'); | |
* @tutorial <tutorial-name> |
OlderNewer