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
"use strict"; | |
var Namespace = window.Namespace || {}; | |
/** | |
* Factory for Modal Instances | |
* @param data {Object} - instance configurable props | |
* @constructor | |
*/ | |
(function() { |
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
// File types available | |
$file-types: ( | |
pdf: ('pdf'), | |
doc: ('doc docx'), | |
xls: ('xls xlsx'), | |
ppt: ('ppt pptx'), | |
zip: ('zip'), | |
img: ('jpg jpeg gif png'), | |
txt: ('txt default') | |
); |
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
var UserDecorator = Ember.ObjectProxy.extend({ | |
fullName: function() { | |
return [this.get('firstName'), this.get('lastName')].join(' '); | |
}.property('firstName', 'lastName') | |
}); | |
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
/** | |
* Application code which demonstrates how to define multi-dimensional | |
* Ember-data relationships. | |
* | |
* The example uses the following Model concepts: | |
* - Issue (representing an Issue) | |
* - User (representing a User) | |
* - Vote (representing a User's vote for an Issue; a Pivot Model for | |
* Issue and User ) | |
* |
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
@import "partials/ads"; | |
html.dark { @include dark-theme; } | |
html.light { @include light-theme; } |
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
var config = function() { | |
/** | |
* Set a debug flag | |
* @type {boolean} | |
*/ | |
var DEBUG = true; | |
/** | |
* Set the environment variable |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
</head> | |
<body> | |
Loading <output id="output">0%</output> |
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
// http://msdn.microsoft.com/en-us/magazine/gg723713.aspx | |
var store.cachedScriptPromises = {}; | |
$.cachedGetScript = function(url, callback) { | |
if (!store.cachedScriptPromises[url]) { | |
store.cachedScriptPromises[url] = $.Deferred(function(d) { | |
$.getScript(url).then(d.resolve, d.reject); | |
}).promise(); | |
} |
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
// equivalent | |
<?= "hello {$world}" ?> | |
<?= 'hello' . $world ?> | |
<?php echo 'hello ' . $world ?> |