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
<label class="label-seam">Address</label> | |
<div class="multicrud-row" style="overflow: auto"> | |
<div class="col-lg-12"> | |
{{text-field fieldValue=address.address1 label="Street Name"}} | |
</div> | |
<div class="col-lg-12"> | |
{{text-field fieldValue=address.city label="City" validation=validationErrors.address.city}} | |
</div> | |
<div class="col-lg-4"> | |
{{text-field fieldValue=address.state label="State"}} |
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 Quiz = Ember.Object.extend({}); | |
var QuizRoute = Ember.Route.exted({ | |
model: function() { | |
return $.ajax(); | |
}, | |
setupController: function(model, controller) { |
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
contentSourceOptions: [{ | |
'label': 'Magazine', | |
'value': 'magazine' | |
}, { | |
'label': 'Slideshows', | |
'value': 'slideshows' | |
}, { | |
'label': 'RCA', | |
'value': 'rca' | |
}, { |
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
'Food & Drinks': [ | |
'Restaurants & Cafés', | |
'Bars & Nightlife', | |
'Wine', | |
'Cocktails' | |
], | |
'Style & Design': [ | |
'Fashion', | |
'Shopping', | |
'Design', |
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
{{#multi values=memberComments label="Member Comments" addText="comment" modelClass="rcalists-comment"}} | |
{{text-field fieldValue=comment label="Comment"}} | |
{{text-field fieldValue=source label="Source"}} | |
{{text-field fieldValue=location label="Location"}} | |
{{/multi}} | |
{{#multi-form values=memberComments label="Member Comments" addText="comment" modelClass="rcalists-comment"}} | |
{{text-field fieldValue=comment label="Comment"}} | |
{{text-field fieldValue=source label="Source"}} |
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 b = shim(browserify({ | |
noParse: build_config.noParse | |
}), build_config.paths) | |
.require(require.resolve(build_config.appEntryPoint), { | |
entry: true | |
}) | |
.require(require.resolve(build_config.templateEntryPoint), { | |
entry: true | |
}); |
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(function(require) { | |
"use strict"; | |
var positions = []; | |
var currentScrollPosition = 0; | |
var ScrollPositions = { | |
currentScrollPosition: function() { | |
return currentScrollPosition; |
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
index.hbs: | |
{{#photo}} | |
<span {{action "run" target="controllers.photo"}}></span> | |
{{/photo}} | |
------------------------------------ | |
photo.hbs: | |
{{yield}} | |
----------------------------------- | |
App.IndexController = Ember.ObjectController.extend({ | |
actions: { |
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
Object.prototype.explode = function() { | |
return 'KABOOM!'; | |
}; | |
var addAll = function(things, value) { | |
for (var i in things) { | |
things[i].push(value); | |
} | |
return things; |
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
public void sort(int[] values) { | |
// Check for empty or null array | |
if (values == null || values.length == 0) { | |
return; | |
} | |
this.numbers = values; | |
number = values.length; | |
quicksort(0, number - 1); | |
} |
NewerOlder