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
angular.module('sdk.directives.ccVariantSelector', []); | |
angular.module('sdk.directives.ccVariantSelector') | |
.filter('ccVariantFilter', ['$filter', function($filter) { | |
'use strict'; | |
return function(values, selectedValues, key) { | |
var selected = {}, | |
applyFilters = false; |
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
git checkout master | |
git checkout temp | |
...jetzt alle files so organisieren wie sie seien sollen | |
git add -A | |
git commit -m "foo" | |
git tag foo | |
git branch -D temp | |
Im Prinzip ähnlich wie bei einer gh-pages branch. Da möchte man ja in der Regel nur den output aus dem dist verzeichnis auf der rooteben haben. |
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
angular.module('sdk.directives.ccZippy') | |
.directive('ccZippy', function() { | |
var defaultIfUndefined = function(scope, property, defaultVal){ | |
return scope[property] = scope[property] === undefined ? defaultVal : scope[property]; | |
}; | |
return { | |
restrict: 'E', | |
replace: true, |
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'; | |
module.exports = function(grunt) { | |
var fs = require("fs"), | |
path = require("path"), | |
phantom = require("grunt-lib-phantomjs").init(grunt); | |
grunt.registerMultiTask('seo','fetch html snapshots', 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
seo: { | |
site: 'index.html' | |
} | |
}); | |
grunt.loadTasks('grunt-contrib-seo/tasks'); |
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'; | |
angular.module('sdk.directives.ccZippy', []); | |
/** | |
* this is a generic directive that creates an view with | |
* optional fixed header and toolbars | |
* | |
*/ |
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
//<debug> | |
Ext.Loader.setPath({ | |
'Ext':'../sencha/src', | |
'Ext.ux': 'libs/ux', | |
'CouchCommerce':'app' | |
}); | |
Ext.Loader.setConfig('disableCaching', false); | |
//</debug> | |
Ext.require([ |
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
Ext.define('CouchCommerce.infrastructure.ViewCache', { | |
xtype: 'viewcache', | |
extend: 'Ext.Component', | |
constructor: function(){ | |
this._viewStore = {}; | |
this._viewStack = []; | |
}, | |
/** | |
* @public | |
* This method pushes new views on the cache |
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
/** | |
* This plugin brings missing async features to card layouts. It can be applied | |
* on any component that uses a card layout (e.g. a NavigationView) | |
* | |
* With this plugin you can do the following: | |
* | |
* navigationView.setActiveItem(fooCard, function(){ alert('after transition'); }); | |
* navigationView.push(fooCard, function(){ alert('after transition'); }); | |
* navigationView.pop(function(){ alert('after transition'); }); | |
* |
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
YOU: | |
Hey #jQuery guys! What's the best way to check if an element has a specific data attribute? Is there only $.attr() ? | |
YOU SAY: | |
(typeof($el.data('name')) != 'undefined') { … } | |
..is what you currently use. | |
ME: |