Skip to content

Instantly share code, notes, and snippets.

View AndrewBarber's full-sized avatar
👨‍💻

Andrew A. Barber AndrewBarber

👨‍💻
View GitHub Profile
@AndrewBarber
AndrewBarber / chkPkgMgr.sh
Created July 1, 2020 12:46
An alias to check if the working directory uses NPM or Yarn Package Manager.
# Should work on .bashrc or .zshrc
alias chkPkgMgr="if [ -f \"./yarn.lock\" ]; then echo -e \"Looks like \e[94mYarn\e[0m.\"; elif [ -f \"./package-lock.json\" ]; then echo -e \"Looks like \e[31mNPM\e[0m.\"; else echo -e \"Can't tell if \e[31mNPM\e[0m or \e[94mYarn\e[0m has been used. Sorry!\"; fi"

Keybase proof

I hereby claim:

  • I am AndrewBarber on github.
  • I am andrewbarber (https://keybase.io/andrewbarber) on keybase.
  • I have a public key whose fingerprint is 5806 C8EB E461 4BFB 9993 685B FF19 4930 073F 0B1D

To claim this, I am signing this object:

@AndrewBarber
AndrewBarber / scoutColours.scss
Last active December 30, 2019 17:32
Scouting UK Colours as per guidelines
//-- Scouting UK Colours as per guidelines
// found at: https://docs.scoutsbrand.org.uk/guidelines.pdf
//----------------------------------------------------------------------------
//
$scoutsPurple: #7413dc;
$scoutsTeal: #00a794;
$scoutsRed: #e22e12;
$scoutsPink: #ffb4e5;
$scoutsGreen: #23a950;
$scoutsNavy: #003982;