Skip to content

Instantly share code, notes, and snippets.

@phirework
phirework / music with female vocalists
Last active September 14, 2018 14:35
Female/female-fronted acts
* = also endorsed by me
() = number of recs
[] = recommend starting point
---
Cat Power (x4)
Janelle Monae* (x4) [Archandroid]
PJ Harvey (x4)
Alabama Shakes* (x3)
@phirework
phirework / .bashrc
Last active December 29, 2019 20:47
# source ~/git-prompt.sh --> get from: https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
red='\[\e[31m\]'
grn='\[\e[32m\]'
yel='\[\e[33m\]'
blu='\[\e[34m\]'
mag='\[\e[35m\]'
cyn='\[\e[36m\]'
# dependencies
node_modules
# logs
npm-debug.log
# Environment config
.env
# Editors
const getWeekNum = (date) => {
// create new Date obj to avoid mutating input
const now = new Date(date.getUTCFullYear(), date.getMonth(), date.getDate());
now.setMilliseconds(0);
const yearStart = new Date(now.getUTCFullYear(), 0, 1);
const milisecsInWeek = 7 * 24 * 60 * 60 * 1000;
return Math.floor((now.valueOf() - yearStart.valueOf()) / milisecsInWeek) + 1;
};