This file contains 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
/*! | |
* MailWrapper - An extremely simple nodemailer wrapper library that makes it easy to send emails using Express and Jade templates. Originally | |
* developed to practice and learn how to write modules for node. | |
* | |
* Copyright(c) 2011 Tom Shaw <[email protected]> | |
* MIT Licensed | |
*/ | |
var mailer = require('./lib/mailer'); |
This file contains 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
#!/usr/bin/env python | |
# | |
# Copyright 2010 Facebook | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains 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
UI.Kit.ScrollableView = SC.CollectionView.extend({ | |
// options | |
animationDuration: 1000, | |
easing: "easeOutExpo", | |
// must be set ( pixels available) to provide elastic scroll | |
scrollableHeight: 0, | |
// options elastic |
This file contains 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
package foo | |
import ( | |
"reflect" | |
"appengine" | |
"appengine/datastore" | |
) | |
var ( |
This file contains 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
/* jqueryFileUpload-Plugin | |
https://github.com/blueimp/jQuery-File-Upload */ | |
MYANGULARAPP.directive('myJqueryfileupload', function(){ | |
return{ | |
restrict:'E', | |
compile:function(el,attrs){ | |
var compiler = this; | |
var elem = el; | |
// 2DO: serialize it from json? |
This file contains 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
# | |
# generic Barrister transport - can be used with any endpoint | |
# | |
angularTrans = (url, $http) -> | |
return (req, callback) -> | |
reqJson = Barrister.JSON_stringify(req) | |
post = $http.post url, reqJson | |
post.success (data, status, headers, config) -> | |
callback data | |
post.error (data, status, headers, config) -> |
This file contains 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
#make a hook | |
store.hook 'change', 'collection.*.foo', (docId, value, op, session, backend) -> | |
model = store.createModel() | |
#logic | |
#setup the hook method | |
store.hook = (method, pattern, fn) -> | |
store.shareClient.use 'after submit', (shareRequest, next) -> | |
{opData} = shareRequest |
This file contains 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
ALLOWED_COLLECTIONS = [ | |
'auths' # Private user data | |
] | |
store.allow 'create', 'auths', (docId, newDoc, session) -> | |
console.log '[Auths] CREATE' | |
undefined | |
store.allow 'all', 'auths.*', (docId, relPath, opData, docBeingUpdated, session) -> | |
console.log '[Auths] CHANGE' |
This file contains 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
var racerAccess = require('racer-access'); | |
derby.use(racerAccess); | |
var store = derby.createStore(); | |
// This is current racer-access api | |
store.allow('change', 'users', function(docName, changeTo, snapshotData, connectSession) { | |
return; | |
}); | |
This file contains 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
{{define "body"}} | |
This is the start page. | |
<br><br> | |
Check out <a href="/user/5">user 5</a> or <a href="/user/7">user 7</a>. | |
{{end}} | |
OlderNewer