Skip to content

Instantly share code, notes, and snippets.

View mattkime's full-sized avatar
🌊

Matthew Kime mattkime

🌊
View GitHub Profile
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<page-encoding>UTF-8</page-encoding>
</jsp-property-group>
</jsp-config>
@mattkime
mattkime / gist:5349728
Last active December 16, 2015 00:39
JSP tags for integration with ...just roughing it out
<backbone:view view="AppView">
<jsp:param name="template">
<mustache:interpolate key="Meetup.Templates[App]"/>
</jsp:param>
<%-- need way to pass in arbitrary list of args as options
such as counter = 6
gets passed as data-counter="6" to main tag...not sure how possible that is
--%>
<backbone:viewOption name="counter" value="${itemList.length}"/>
exports.load = function(configPath,onComplete){
var config = {
ip : "10.254.2.93",
port : 80
};
if(process.argv[2] !== "config" && pathUtil.existsSync(configPath)){
underscore.extend(exports,require(configPath));
onComplete();
return;
@mattkime
mattkime / spread.js
Created December 27, 2011 06:12
added spread test
"use strict";
var Q = require("../q");
exports['test spread'] = function (ASSERT, done) {
Q.ref([1,2,3])
.spread(function (a, b, c) {
ASSERT.equal(a, 1, 'spread 1');
ASSERT.equal(b, 2, 'spread 2');
ASSERT.equal(c, 3, 'spread 3');
@mattkime
mattkime / error output
Created December 12, 2011 22:17
error starting npm
matthewk:~ matthewk$ npm -v
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: No such module
at Object.<anonymous> (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)