This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# By default it will fetch the base branch of the current directory, | |
# if we want to fetch all branches, pass -all or -A param. | |
# Run it without downloading: | |
# bash <(curl -s https://gist.githubusercontent.com/JdeJ/410660ab2bcc4b19d3648e9c92faf9d1/raw/9f4a2d7e08b1e0d41d0825aad3813da4d0481bc1/git_pull.sh) | |
pull_all_branches() { | |
local directory="$1" | |
cd "$directory" || return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo "Hello World!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************** | |
Is there a vowel in there? | |
**************************/ | |
function isVow(a){ | |
for(let i=0; i<a.length; i++){ | |
switch(a[i]){ | |
case 97: | |
a[i] = 'a'; | |
break; |