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
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
ant () { command ant -logger org.apache.tools.ant.listener.AnsiColorLogger "$@" | sed 's/2;//g' ; } |
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
<?php | |
/** | |
* Split the menu to top level items and the children of the | |
* current active parent. | |
* @see http://helperclass.blogspot.de/2011/11/creating-separate-sub-menu-in-wordpress.html | |
*/ | |
class SplitMenu_Walker_Nav_Menu extends Walker_Nav_Menu { | |
private $menu = false; |
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
java -d64 -XstartOnFirstThread -jar SamyGO-ChanEdit-v54cd-MacOSX_Oracle_x64_cocoa_by_loggn.de.jar |
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
App.CollectionRoute = Ember.Route.extend({ | |
model: function (params) { | |
return this.get('store').find('collection', params.collection_id); | |
}, | |
serialize: function(record, options){ | |
console.log(record, options) | |
} | |
}); |
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
angular.module('services', []) | |
.factory('State', function ($rootScope) { | |
'use strict'; | |
var state; | |
var broadcast = function (state) { | |
$rootScope.$broadcast('State.Update', state); | |
}; | |
var update = function (newState) { |
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
// Post repeat directive for logging the rendering time | |
angular.module('myApp').directive('postRepeatDirective', | |
['$timeout', | |
function($timeout) { | |
return function(scope) { | |
if (scope.$first) | |
window.a = new Date(); // window.a can be updated anywhere if to reset counter at some action if ng-repeat is not getting started from $first | |
if (scope.$last) | |
$timeout(function(){ | |
console.log("## DOM rendering list took: " + (new Date() - window.a) + " ms"); |
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
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
// Mappy breakpoints | |
// ----------------- | |
// Output media query with focus on min-width, max-width, min-height and max-height. | |
// Other media rules are passed as the second argument in a map | |
// | |
// @author Zell Liew |
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
this.getCategory = function(){ | |
//2. use async : test key input is idMenu | |
me.listCategory = async.map([1], helper.categoryInMenu, function(err, result){ | |
return result; | |
}); | |
return me.listCategory; | |
} |
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
<h1>Headline</h1> |
OlderNewer