Skip to content

Instantly share code, notes, and snippets.

app.directive('grid', function() {
return {
scope: {
panels: "="
},
templateUrl: 'partials/templates/grid.html',
link: function($scope, element, attributes ) {
}
}
});
@carcer
carcer / gist:7318063
Last active December 27, 2015 11:19 — forked from eef/gist:7318010
function Chat(notifier, tabStatus) {
this.notifier = notifier;
this.tab_status = tabStatus;
};
_.extend(Chat.prototype, {
init: function() {
this.join();
this.open();
this.leave();
@carcer
carcer / nh.cs
Created January 5, 2012 11:28 — forked from johnnonolan/nh.cs
nh headache
static ICriterion BuildCriteria(params MatchableClientParams[] clientParams)
{
var result = Restrictions.Disjunction();
foreach (var parameters in clientParams)
{
var parameters1 = parameters;
var criteria = parameters1.BuildCriteria();
result.Add(criteria);
@carcer
carcer / gist:993437
Created May 26, 2011 16:09 — forked from lynchjames/gist:992875
.bashrc
alias s='git s'
alias d='git d'
alias av='git av'
alias cm='git cm'
alias cod='git cod'
alias com='git com'
alias co='git co'
alias warmup='"/C/Program Files/warmup/warmup.exe"'
function merge { git checkout ${1:-master}; git merge ${2:-dev}; git checkout ${2:-dev}; }