Skip to content

Instantly share code, notes, and snippets.

@itsvicsoto
itsvicsoto / ohmyzsh-git-plugin.zsh
Created December 9, 2014 12:07
ohmyzsh git plugin
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
compdef _git gst=git-status
alias gd='git diff'
compdef _git gd=git-diff
alias gdc='git diff --cached'
compdef _git gdc=git-diff
alias gdt='git diff-tree --no-commit-id --name-only -r'

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@itsvicsoto
itsvicsoto / java-settings-osx.md
Last active April 24, 2016 05:35
Java Environment Settings OSX

Java Environment Settings OSX

Brew

Install homebrew

Install Java Pre-Reqs

Install java and maven

Javascript Shorthand Coding Techniques

My (@pongstr) opinion about shorthand coding techniques

Shorthand code is not really a replacement for normal coding but it is very handy and useful in some cases. There are tons of opinions and debates around this but, again it all comes down what is necessary for your codebase and using it responsibly.

@itsvicsoto
itsvicsoto / angular.md
Last active December 15, 2018 17:54
[cheatsheet] Angular 1.3.9
@itsvicsoto
itsvicsoto / ace-editor.md
Last active August 29, 2015 14:14
Front-End Developer Resources

How to highlight multiple selections

Highlight the word:

var range = new Range(rowStart, columnStart, rowEnd, columnEnd);
var marker = editor.getSession().addMarker(range,"ace_selected_word", "text");
Remove the highlighted word:

editor.getSession().removeMarker(marker);
@itsvicsoto
itsvicsoto / node.md
Last active August 29, 2015 14:14
NodeJS
@itsvicsoto
itsvicsoto / Feature Branching.md
Last active August 31, 2016 06:34 — forked from nicholashagen/gist:2855167
Git Working Feature Branching

Git Workflow for Feature Branches

The following is an example workflow for developing on a temporary branch and merging back to the main branch squashing all commits into a single commit. This assumes you already have a branch named branch-xyz and have finished the work on that branch.

Step 1: Checkout the feature branch

git checkout branch-xyz
@itsvicsoto
itsvicsoto / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console