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
function exec(fn){ | |
var doneCallback, failCallback, fnCallback, fnEnded=false, _error, _data; | |
exec.done = function(cb){ | |
doneCallback = cb; | |
if(fnEnded && !_error){ | |
cb(_data); | |
} | |
return exec; | |
}; |
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
/** | |
* @file webpack.config.js | |
* @author codeboy<[email protected]> | |
* @desc this gist shows the essential sections used in configuring webpack | |
* to make the Facebook's Parse JavaScript SDK work as other modules as expected. | |
* this gist is inspired by an answer to an issue reported in webpack repo | |
* {@link https://github.com/webpack/webpack-dev-server/issues/66} | |
* disclaimer: this configuration is correct as provided and effective on Parse 1.3.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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Get React and Foundation Work Together" /> | |
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/normalize.min.css" rel="stylesheet" type="text/css" /> | |
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/foundation.min.css" rel="stylesheet" type="text/css" /> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/vendor/jquery.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/foundation.min.js"></script> | |
<script src="http://fb.me/react-0.11.0.js"></script> | |
<meta charset="utf-8"> |
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
(function () { | |
var router = null, view = null; | |
$(function () { | |
RegisterRouter = Backbone.Router.extend({ | |
//setup route maps | |
routes: { | |
"": "list", | |
"list/:key/:type": "list" | |
}, |