Skip to content

Instantly share code, notes, and snippets.

View allaud's full-sized avatar

Anton Pleshivtsev allaud

  • Saint-Petersburg, Russia
View GitHub Profile
[alias]
lg = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
co = checkout
ci = commit
CURRENT PRODUCTIVITY:
1 3.8441107635412326
2 0.0
3 14.186773625415563
4 0.0
5 0.0
6 9.841968051931929
7 13.618975556240608
8 14.221436319592014
@allaud
allaud / gist:5412027
Created April 18, 2013 11:26
Angular autocomplete example
/*
{{value | json}}
<al-autocomplete min-length="1" data="MyAutoList" type="text" nn-model="value" nn-field="name" placeholder="Поиск по архиву" class="search-query span4">
{{item.name}} of age {{item.age}}
</al-autocomplete>
*/
angular.module('st', []).directive('alAutocomplete', function($http, $compile, $timeout) {
return {
restrict: 'E',