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
| // Helper methods for dealing with phone numbers and phone related content (i.e. "tel:") | |
| export default | |
| { | |
| /** | |
| * Display a phone number as a given format | |
| * @param {String, Int} pnum - A Phone number | |
| * @param {Int} displayCase - The desired formmatting pattern | |
| * @return {String} - If good phone number, properly displayed phone number; Else, empty string; | |
| */ |
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
| # Author: [email protected] | |
| # Date: 2019-03-29 | |
| #Import (i.e. `source`) all files in ~/bin/ | |
| #for f in ~/bin/*; do source $f --source-only; echo "imported ~/bin/$f"; done | |
| ### Most convenient aliases | |
| alias c='clear && ls && echo -e "\n" && gs' | |
| alias q='exit' | |
| alias g='grep -ri ' ## `g f foo/` |
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
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| """"""""""""""""""""""""""""""__VUNDLE CONFIG__"""""""""""""""""""""""""""""" | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins |
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/sh | |
| #***************************************************************************# | |
| #***************************************************************************# | |
| # FIRST DAY INSTALLS # | |
| #***************************************************************************# | |
| #***************************************************************************# | |
| pprint (){ | |
| printf "############ ############ ############ ############ ############ ############\n" | |
| true |
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
| deploy-live (){ | |
| # Author: [email protected] | |
| # Creation Date: 2019-10-12 | |
| # Purpose: | |
| # Deploy code to production server; | |
| # This is done within a shell script as we do not have the /build/ | |
| # dir git controlled and manually need to copy over files that are | |
| # generated to their corresponding path; | |
| # TODO: | |
| # Check if dirs exist on server; Mkdir if dirs do not exist; |
OlderNewer