Skip to content

Instantly share code, notes, and snippets.

@OliverM
OliverM / core.clj
Created August 22, 2014 10:32
Compojure/Friend route issue
(ns friendtest.core
(:require [ring.adapter.jetty]
[ring.middleware.params :as params]
[ring.util.response :as resp]
[hiccup.page :as h]
[hiccup.element :as e]
[compojure.core :as http]
[compojure.handler]
[compojure.route :as route]
[cemerick.friend :as friend]
@OliverM
OliverM / core.js
Created September 4, 2011 08:48
responders in sproutcore
// ==========================================================================
// Project: ResponderTest
// ==========================================================================
/*globals ResponderTest */
ResponderTest = SC.Application.create({
NAMESPACE: 'ResponderTest',
VERSION: '0.1.0',
trace: YES
});
@OliverM
OliverM / outletTest.js
Created July 5, 2011 10:20
Using SC.outlet to connect objects created at runtime to other views/controllers
MyApp.TestView = SC.View.extend({
internalTestSet: SC.Set.create(),
testSet: SC.outlet('internalTestSet')
});
MyApp.TestController = SC.ObjectController.extend({
testSetBinding: 'MyApp.TestView.testSet'
});
// at console: