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
user=> (concat '(1 2 3) '(4 5 6)) | |
(1 2 3 4 5 6) | |
user=> (conj '(1 2 3) '(4 5 6)) | |
((4 5 6) 1 2 3) | |
user=> (cons '(1 2 3) '(4 5 6)) | |
((1 2 3) 4 5 6) | |
user=> (list '(1 2 3) '(4 5 6)) |
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
### | |
Lightweight Backbone Cache | |
Mike Knoop, 2012 (knoopgroup.com, zapier.com) | |
Simply execute this script file sometime after you load Backbone. | |
It hooks into the Backbone sync function to give a lightweight local | |
cache for models and collections. Will work for both models and collections. | |
Only GET requests are eligible for cacheing and caches are stored by URL. |
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
// Implementing the publishing Pusher REST API | |
// @see http://pusher.com/docs/rest_api | |
// with Play (scala) Framework | |
// @see http://scala.playframework.org/ | |
class Pusher { | |
val appId = Play.configuration.getProperty("pusher.appId") | |
val key = Play.configuration.getProperty("pusher.key") | |
val secret = Play.configuration.getProperty("pusher.secret") | |