Skip to content

Instantly share code, notes, and snippets.

View ckung's full-sized avatar

Christina Kung ckung

View GitHub Profile
define(function(require) {
"use strict";
var positions = [];
var currentScrollPosition = 0;
var ScrollPositions = {
currentScrollPosition: function() {
return currentScrollPosition;
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
});
{{#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"}}
'Food & Drinks': [
'Restaurants & Cafés',
'Bars & Nightlife',
'Wine',
'Cocktails'
],
'Style & Design': [
'Fashion',
'Shopping',
'Design',
@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'
}, {
var Quiz = Ember.Object.extend({});
var QuizRoute = Ember.Route.exted({
model: function() {
return $.ajax();
},
setupController: function(model, controller) {
<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"}}
PUT : http://ci.vf.api.conde.io/v2/lists/53cec3c8fa1f2ecb440e53a9 : BODY : { meta:
{ collectionName: 'lists',
modelName: 'list',
publishable: true,
image: false },
_links: '/lists/53cec3c8fa1f2ecb440e53a9/revisions/8/rels',
id: '53cec3c8fa1f2ecb440e53a9',
createdAt: '2014-07-22T20:04:24.163Z',
modifiedAt: '2014-08-02T15:27:48.744Z',
revision: 9,
"[{\"id\":\"5405fad7193f09557a7d12d3\",\"title\":\"boat1.gif\",\"revision\":1,\"createdAt\":\"2014-09-02T17:13:59.128Z\",\"modifiedAt\":\"2014-09-02T17:14:35.672Z\",\"revisionCreatedAt\":\"2014-09-02T17:14:35.672Z\",\"meta\":{\"collectionName\":\"photos\",\"modelName\":\"photo\",\"publishable\":false},\"images\":{\"original\":{\"url\":\"https://us-east.manta.joyent.com/condenast/public/vf/production/2014/09/02/5405fad7193f09557a7d12d4_boat1.gif\",\"filename\":\"5405fad7193f09557a7d12d4_boat1.gif\",\"width\":500,\"height\":277,\"format\":\"GIF\"},\"copilot-small\":{\"url\":\"https://us-east.manta.joyent.com/condenast/public/vf/production/2014/09/02/5405fad7193f09557a7d12d5_boat1.gif\",\"filename\":\"5405fad7193f09557a7d12d5_boat1.gif\",\"width\":220,\"height\":122,\"format\":\"GIF\"},\"copilot-medium\":{\"url\":\"https://us-east.manta.joyent.com/condenast/public/vf/production/2014/09/02/5405fad7193f09557a7d12d6_boat1.gif\",\"filename\":\"5405fad7193f09557a7d12d6_boat1.gif\",\"width\":298,\"height\":165,\"forma
https://github.com/CondeNast/copilot/commit/b019abd42864beae814fba6593a3b2ba55ac7b6a
https://github.com/CondeNast/copilot/commit/c7c48bf2fea73917cc0898807b2fb6fde57d135e
https://github.com/CondeNast/copilot/commit/e5c5ca423ba68abde66b5e4d7221c7e6ac80fad4