Skip to content

Commit

Permalink
Shuffle over a few more geeky events
Browse files Browse the repository at this point in the history
  • Loading branch information
tylert committed Jan 5, 2024
1 parent 69c87c7 commit 5316b23
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 26 deletions.
30 changes: 15 additions & 15 deletions en-CA.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ import (
func englishCanada(year uint32) {
var t time.Time

// CA-AB Canada - Alberta
// CA-BC Canada - British Columbia/Colombie-Britannique
// CA-MB Canada - Manitoba
// CA-NB Canada - New Brunswick/Nouveau Brunswick
// CA-NL Canada - Newfoundland and Labrador/Terre-Neuve-et-Labrador
// CA-NS Canada - Nova Scotia/Nouvelle-Écosse
// CA-NT Canada - Northwest Territories/Territoires du Nord-Ouest
// CA-NU Canada - Nunavut/ᓄᓇᕗᑦ
// CA-ON Canada - Ontario
// CA-PE Canada - Prince Edward Island/Île-du-Prince-Édouard
// CA-QC Canada - Quebec/Québec
// CA-SK Canada - Saskatchewan
// CA-YT Canada - Yukon
// CA Canada
// CA-AB Alberta
// CA-BC British Columbia/Colombie-Britannique
// CA-MB Manitoba
// CA-NB New Brunswick/Nouveau Brunswick
// CA-NL Newfoundland and Labrador/Terre-Neuve-et-Labrador
// CA-NS Nova Scotia/Nouvelle-Écosse
// CA-NT Northwest Territories/Territoires du Nord-Ouest
// CA-NU Nunavut/ᓄᓇᕗᑦ
// CA-ON Ontario
// CA-PE Prince Edward Island/Île-du-Prince-Édouard
// CA-QC Quebec/Québec
// CA-SK Saskatchewan
// CA-YT Yukon
// https://en.wikipedia.org/wiki/ISO_3166-2:CA
// https://fr.wikipedia.org/wiki/ISO_3166-2:CA
// https://en.wikipedia.org/wiki/Public_holidays_in_Canada
Expand Down Expand Up @@ -298,8 +299,7 @@ func englishCanada(year uint32) {
t = find_date(fmt.Sprintf("%d-07-12", year))
print_date(t, "Orangemen's Day (CA-NL)")

// begins on the 2nd last Sunday of July
// ends 2 weeks later
// begins on the 2nd last Sunday of July and ends 2 weeks later
// https://en.wikipedia.org/wiki/Construction_Holiday_%28Quebec%29
// https://fr.wikipedia.org/wiki/Vacances_de_la_construction
// https://www.ccq.org/en/avantages-sociaux/dates-conges-vacances
Expand Down
2 changes: 1 addition & 1 deletion en-GB.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"
)

func englishUnitedKingdom(year uint32) {
func englishGreatBritain(year uint32) {
var t time.Time

// GB United Kingdom of Great Britain and Northern Ireland/Royaume-Uni de Grande-Bretagne et d'Irlande du Nord
Expand Down
4 changes: 1 addition & 3 deletions en-US.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ func englishUnitedStates(year uint32) {
t = find_date(fmt.Sprintf("%d-05-05", year))
print_date(t, "Cinco de Mayo (US)")

// 2nd Saturday in May
// 3rd Saturday in May
// last Monday in May
// 2nd Saturday in May, 3rd Saturday in May, last Monday in May
// https://en.wikipedia.org/wiki/Armed_Forces_Day
// https://fr.wikipedia.org/wiki/Jour_des_forces_arm%C3%A9es
// https://en.wikipedia.org/wiki/Memorial_Day
Expand Down
30 changes: 30 additions & 0 deletions en-XX.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,36 @@ func englishOther(year uint32) {
t = find_nearby_date(fmt.Sprintf("%d-09-18", year), uint32(time.Saturday))
print_date(t, "Software Freedom Day")

// February 20th, 1991
// https://en.wikipedia.org/wiki/Python_(programming_language)
// https://fr.wikipedia.org/wiki/Python_(langage)
t = find_date(fmt.Sprintf("%d-02-20", year))
print_date(t, fmt.Sprintf("%s Birthday of Python", ordinal(int(year-1991), "en")))

// September 17th, 1991
// https://en.wikipedia.org/wiki/Linux
// https://fr.wikipedia.org/wiki/Linux
t = find_date(fmt.Sprintf("%d-09-17", year))
print_date(t, fmt.Sprintf("%s Birthday of Linux", ordinal(int(year-1991), "en")))

// July 17th, 1993
// https://en.wikipedia.org/wiki/Slackware
// https://fr.wikipedia.org/wiki/Slackware
t = find_date(fmt.Sprintf("%d-07-17", year))
print_date(t, fmt.Sprintf("%s Birthday of Slackware", ordinal(int(year-1993), "en")))

// September 15th, 1993
// https://en.wikipedia.org/wiki/Debian
// https://fr.wikipedia.org/wiki/Debian
t = find_date(fmt.Sprintf("%d-09-15", year))
print_date(t, fmt.Sprintf("%s Birthday of Debian", ordinal(int(year-1993), "en")))

// March 11th, 2002
// https://en.wikipedia.org/wiki/Arch_Linux
// https://fr.wikipedia.org/wiki/Arch_Linux
t = find_date(fmt.Sprintf("%d-03-11", year))
print_date(t, fmt.Sprintf("%s Birthday of Arch Linux", ordinal(int(year-2002), "en")))

// April 7, 2005
// https://en.wikipedia.org/wiki/Git
// https://fr.wikipedia.org/wiki/Git
Expand Down
5 changes: 0 additions & 5 deletions holiday_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ def main(year):
#// XXX FIXME TODO Nativity of Virgin Mary
#// XXX FIXME TODO Ecclesiastical year begins

print(f'{date(year, FEBRUARY, 20)} {ordinal(year - 1991)} Birthday of Python')
print(f'{date(year, MARCH, 11)} {ordinal(year - 2002)} Birthday of Arch')
print(f'{date(year, MARCH, 15)} {ordinal(year - 2013)} Birthday of Docker')
print(f'{date(year, MARCH, 18)} {ordinal(year - 1985)} Birthday of GNU Manifesto')
print(f'{date(year, MARCH, 21)} {ordinal(year - 1993)} Birthday of NetBSD')
Expand All @@ -121,11 +119,8 @@ def main(year):
print(f'{date(year, JUNE, 19)} {ordinal(year - 1984)} Birthday of X-Windows')
print(f'{date(year, JUNE, 19)} {ordinal(year - 1993)} Birthday of FreeBSD')
print(f'{date(year, JUNE, 7)} {ordinal(year - 2014)} Birthday of Kubernetes')
print(f'{date(year, JULY, 16)} {ordinal(year - 1993)} Birthday of Slackware')
print(f'{date(year, AUGUST, 1)} {ordinal(year - 1998)} Birthday of IRC')
print(f'{date(year, AUGUST, 15)} {ordinal(year - 1997)} Birthday of GNOME')
print(f'{date(year, AUGUST, 16)} {ordinal(year - 1993)} Birthday of Debian')
print(f'{date(year, AUGUST, 25)} {ordinal(year - 1991)} Birthday of Linux')
print(f'{date(year, SEPTEMBER, 27)} {ordinal(year - 1983)} Birthday of GNU')
print(f'{date(year, OCTOBER, 18)} {ordinal(year - 1995)} Birthday of OpenBSD')
print(f'{date(year, OCTOBER, 19)} {ordinal(year - 2009)} Birthday of Alpine')
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
}

englishCanada(u32)
englishUnitedKingdom(u32)
englishGreatBritain(u32)
englishUnitedStates(u32)
englishAustralia(u32)
englishOther(u32)
Expand Down
2 changes: 1 addition & 1 deletion main_alt.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
}

englishCanada(u32)
englishUnitedKingdom(u32)
englishGreatBritain(u32)
englishUnitedStates(u32)
englishAustralia(u32)
englishOther(u32)
Expand Down

0 comments on commit 5316b23

Please sign in to comment.