Skip to content

Instantly share code, notes, and snippets.

(function(){
'use strict';var Tda=function(a,b){var c,d=$APP.pa(b);d=(c="array"==d||"object"==d&&"number"==typeof b.length)?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a},Uda=function(a,b){return $APP.ny(a,b)},IW=function(a,b){return $APP.Ny(a,b)},Vda=function(a,b){b=IW(a,$APP.Cl("(keys (ns-map '%s))","%s",b));b=$APP.Bj.h(function(c){return["`",$APP.t.g(c)].join("")},b);b=["[",$APP.Rr.h(" ",b),"]"].join("");a=$APP.Ny(a,b);return $APP.Zu.h(function(c){return $APP.Ml($APP.t.g(c),"nbb.internal")},
a)},Wda=function(a,b,c){c=$APP.Jl.h(c,/\//);$APP.C.j(c,0,null);var d=$APP.C.j(c,1,null),e=IW(a,$APP.Zj.l($APP.G([$APP.X.g($APP.x($APP.R.l(new $APP.J(null,$APP.ys,null,1,null),new $APP.J(null,$APP.oh($APP.X.g($APP.x($APP.R.h(new $APP.J(null,JW,null,1,null),new $APP.J(null,$APP.X.g($APP.x($APP.R.h(new $APP.J(null,$APP.ON,null,1,null),new $APP.J(null,$APP.X.g($APP.x($APP.R.h(new $APP.J(null,$APP.jl,null,1,null),new $APP.J(null,b,null,1,null)))),null,1,null)))),null,1,null))))),null,1,null),$
@gdw2
gdw2 / flask_geventwebsocket_example.py
Created March 29, 2012 16:19 — forked from lrvick/flask_geventwebsocket_example.py
Simple Websocket echo client/server with Flask and gevent / gevent-websocket
from geventwebsocket.handler import WebSocketHandler
from gevent.pywsgi import WSGIServer
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@gdw2
gdw2 / joi.browser.js
Created December 8, 2014 16:33
Joi bundle
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Joi=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
},{}],2:[function(require,module,exports){
// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
//
// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!
//
// Originally from narwhal.js (http://narwhaljs.org)
// Copyright (c)