Skip to content

Instantly share code, notes, and snippets.

View elVengador's full-sized avatar
🎸
Lets rock baby

Jimy Nicanor elVengador

🎸
Lets rock baby
View GitHub Profile
@elVengador
elVengador / .bashrc
Last active November 21, 2022 00:46
Simplify bash text (PS1)
git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/:\1/'
}
export PS1="\W\$(git_branch) > \[${RESET}\]"
## result, when there isn't branch:
## PATH >
## result, when there is branch:
@elVengador
elVengador / testfile.js
Created March 24, 2021 04:24
test description
createUser(firstName:string,lastName:string,age:number){
console.log('create service')
return this.apollo.mutate<any>({
mutation:createUsers,
variables:{firstName,lastName,age}
}).pipe(
map(resp => resp.data)
)
}