Created
April 2, 2015 00:03
-
-
Save DavidWells/10708a5be3e5b5e29f13 to your computer and use it in GitHub Desktop.
Check if it is April fools day
This file contains 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
/* Check if it is april fools day */ | |
var aprilFools = { | |
month: 3, | |
date: 1 | |
} | |
function isItAprilFoolDay() { | |
var now = new Date(); | |
return (now.getMonth() == aprilFools.month && now.getDate() == aprilFools.date); | |
} | |
if(isItAprilFoolDay()){ | |
// fuck with people | |
} else { | |
// there is less fake stuff today | |
} |
This is a very specific gist, but actually useful, cuz I'm releasing an update today for something that should be tomorrow (April Fools'). Happy to see this as first in Google Search!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So like the Thanos easter egg in Google? Also you could just do * instead of writing all elements. Just a single character.