Skip to content

Instantly share code, notes, and snippets.

View dacrazycoder's full-sized avatar

Shannon Pettit dacrazycoder

View GitHub Profile
@dacrazycoder
dacrazycoder / gist:6443109
Last active December 22, 2015 08:09
Overloading the dojo/app/view's loadTemplate function to support loading urls as part of the template
// Overload the view loader..
View.prototype._loadTemplate = function(){
var localView = this;
// summary:
// load view HTML template and dependencies.
// tags:
// private
//
var tpl = this.template;
var deps = this.dependencies?this.dependencies:[];
@dacrazycoder
dacrazycoder / gist:6517914
Created September 11, 2013 00:42
What happens when angry elephants make you pass encrypted objects as url params...
package com.test.web.controllers;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.net.URLEncoder;
import java.security.MessageDigest;
@dacrazycoder
dacrazycoder / MockAMD.js
Created April 30, 2015 17:34
Mocking AMD calls
define([
'intern',
'dojo/Deferred',
"dojo/aspect",
'./MockManager',
], function (
intern,
Deferred,
aspect,
MockManager