Skip to content

Instantly share code, notes, and snippets.

View harrastia's full-sized avatar

Carlos Arrastia harrastia

View GitHub Profile
@harrastia
harrastia / decorator
Last active August 29, 2015 14:21 — forked from zourtney/decorator
Adapted decorator to work in Angular 1.3.8
// Decorator adapted out of Angular 1.3.8
// https://github.com/angular/angular.js/blob/v1.3.8/src/ng/rootScope.js#L196
.config(['$provide', function($provide) {
// Minification-safe hack.
var $$watchers = '$$watchers',
$$nextSibling = '$$nextSibling',
$$childHead = '$$childHead',
$$childTail = '$$childTail',
$$listeners = '$$listeners',
@harrastia
harrastia / git-cor
Last active November 22, 2017 12:58
Git command to check out recently used branches
#!/bin/sh
# Carlos Arrastia (Holvi) 2017
#
# This script adds the git command "cor" which stands for CheckOut Recent.
# it lists the 10 most recently checked out branches and allows the user to select
# one for check out
#
# Usage:
#