Skip to content

Instantly share code, notes, and snippets.

View Boamorte8's full-sized avatar
💭
Working

Esteban Salazar Boamorte8

💭
Working
View GitHub Profile
@Boamorte8
Boamorte8 / git-aliases.md
Created August 21, 2021 17:04 — forked from mwhite/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@Boamorte8
Boamorte8 / login.js
Created July 19, 2018 23:25 — forked from dam1/login.js
Example Login controller test with Angular, Ionic, $translate, Karma, Jasmine
angular.module('starter.controllers')
.controller('LoginCtrl', function ($scope, $state, DataCacheService, $rootScope, User, $ionicPopup, $translate, $ionicLoading, InitializeService) {
$rootScope.AAuser={password: '', email: ''};
$scope.login=function () {
if ($rootScope.AAuser.password != null && $rootScope.AAuser.password.length >= 4) {
$ionicLoading.show();
var loginData=$rootScope.AAuser;