Skip to content

Instantly share code, notes, and snippets.

View aprabaldi's full-sized avatar
:octocat:
coding

Andrés Pra Baldi aprabaldi

:octocat:
coding
View GitHub Profile
@aprabaldi
aprabaldi / gist:2283ab942863a80a27325fd7779bb8da
Created March 9, 2018 16:42
Remove local git merged branches except from master
alias git.clean.merged.branches="git branch --merged | grep -v "master" >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches"
- ES6
-- Arrow Functions:
function(event) { return console.log(event); }.bind(this)
(event) => console.log(event)
(event) => { console.log(event); }
-- Object properties shorthands:
let x = 1; let y = 2;
let obj = {x, y}
-- Template literals:
let multilineString = `This is a