Skip to content

Instantly share code, notes, and snippets.

View ckung's full-sized avatar

Christina Kung ckung

View GitHub Profile
<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"}}
var Quiz = Ember.Object.extend({});
var QuizRoute = Ember.Route.exted({
model: function() {
return $.ajax();
},
setupController: function(model, controller) {
@ckung
ckung / gist:d1d5ac4bff8d2a2280dc
Last active August 29, 2015 14:02
CNT Content Sources
contentSourceOptions: [{
'label': 'Magazine',
'value': 'magazine'
}, {
'label': 'Slideshows',
'value': 'slideshows'
}, {
'label': 'RCA',
'value': 'rca'
}, {
'Food & Drinks': [
'Restaurants & Cafés',
'Bars & Nightlife',
'Wine',
'Cocktails'
],
'Style & Design': [
'Fashion',
'Shopping',
'Design',
{{#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"}}
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
});
define(function(require) {
"use strict";
var positions = [];
var currentScrollPosition = 0;
var ScrollPositions = {
currentScrollPosition: function() {
return currentScrollPosition;
index.hbs:
{{#photo}}
<span {{action "run" target="controllers.photo"}}></span>
{{/photo}}
------------------------------------
photo.hbs:
{{yield}}
-----------------------------------
App.IndexController = Ember.ObjectController.extend({
actions: {
@ckung
ckung / gist:6813685
Last active December 24, 2015 14:38
Object.prototype.explode = function() {
return 'KABOOM!';
};
var addAll = function(things, value) {
for (var i in things) {
things[i].push(value);
}
return things;
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);
}