Skip to content

Instantly share code, notes, and snippets.

View AaronBDC's full-sized avatar

Aaron B DC AaronBDC

View GitHub Profile
calcAge(dateString){
let added_date = moment(new Date(dateString)).fromNow(true);
// console.log('today=', today);
added_date = added_date.replace(' days','');
added_date>7 ? added_date = moment(dateString).format("dddd, MMMM Do, YYYY") : added_date = moment(new Date(dateString)).fromNow(false);
return added_date;
}
@AaronBDC
AaronBDC / keybase.md
Created May 6, 2017 05:15
Gist another public pretty good privacy key for AaronBDC

Keybase proof

I hereby claim:

  • I am AaronBDC on github.
  • I am aarondh (https://keybase.io/aarondh) on keybase.
  • I have a public key whose fingerprint is 9C71 323A 3E43 C2B0 EBA1 5F3F D925 B3EF 9E09 2FD9

To claim this, I am signing this object: