Skip to content

Instantly share code, notes, and snippets.

View enyo's full-sized avatar
🙌
Primarily working on Pausly

Matias Meno enyo

🙌
Primarily working on Pausly
View GitHub Profile
enyo@matbook:inc-frontend $ ../abbot/bin/sc-build settings --verbose
INFO ~ Loaded project at: /Volumes/CaseFS/git/inc-frontend
INFO ~ Building targets: /settings
INFO ~ Building languages: de,en
INFO ~ Building manifest for: /settings:de
INFO ~ Building manifest for: /settings:en
INFO ~ Building entries for /settings:de...
INFO ~ javascript.js -> tmp/build/static/settings/de/00bd0c774e5be91999c75f0937c60d65575b3f77/javascript.js
INFO ~ Compressing CSS with YUI .... /Volumes/CaseFS/git/inc-frontend/tmp/staging/static/inc_theme/de/2d94377a36363b73b41fc811a4be0366670d7cbe/stylesheet__2.css
INFO ~ Compressing with YUI: /Volumes/CaseFS/git/inc-frontend/tmp/staging/static/inc_theme/de/2d94377a36363b73b41fc811a4be0366670d7cbe/javascript-packed__5.js...
var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY);
Inc.allTagGroupsController.set('content', tagGroups);
Inc.allTagGroupsController.get('selection').clear();
// The Tag model
isAssignedToSelectedArticle: function(key, value) {
// writing ...
if (value !== undefined) {
if (value === true) {
Inventory.editedArticleController.get('tags').pushObject(this);
}
else {
Inventory.editedArticleController.get('tags').popObject(this);
// handle checkbox
key = this.getDelegateProperty('contentCheckboxKey', del) ;
if (key) {
value = content ? (content.get ? content.get(key) : content[key]) : NO ;
this.renderCheckbox(working, value);
classArray.push('has-checkbox');
}
clearSelection: function() {
// When the content changes, reset the selection.
this.set('selection', null);
}.observes('content')
// ==========================================================================
// Project: Inc.CheckboxListItemView
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals Inc */
/** @class
(Document Your View Here)
// Setting the tags
var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY);
Inc.allTagGroupsController.set('content', tagGroups);
// The controller in question
@enyo
enyo / dabblet.css
Created September 14, 2012 13:59
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(60deg, #f06, yellow);
min-height: 100%;
elements = [ ]
className = "boa"
elements.push """<div class="#{className}">bli</div>"""
elements.push """<div class="#{className}">bli</div>"""
elements.push """<div class="#{className}">bli</div>"""
$("#container").html elements.join ""
App.Model = DS.Model.extend
namingConvention:
keyToJSONKey: (key) -> key
foreignKey: (key) -> key