A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
1
Task/Calendar/Mathematica/calendar-1.mathematica
Normal file
1
Task/Calendar/Mathematica/calendar-1.mathematica
Normal file
|
|
@ -0,0 +1 @@
|
|||
Needs["Calendar`"];
|
||||
23
Task/Calendar/Mathematica/calendar-2.mathematica
Normal file
23
Task/Calendar/Mathematica/calendar-2.mathematica
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
monthlyCalendar[y_, m_] :=
|
||||
Module[{
|
||||
days = {Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday},
|
||||
months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"},
|
||||
d1, shortDays, offset, daysInMonth},
|
||||
|
||||
d1 = DayOfWeek[{y, m, 1}];
|
||||
|
||||
daysInMonth[year_, month_] := DaysBetween[{year, month, 1}, {If[month == 12, year + 1, year], If[month == 12, 1, month + 1], 1}];
|
||||
|
||||
shortDays = (StringTake[ToString[#], 3] & /@ days);
|
||||
|
||||
offset = d1 /. Thread[days -> Range[0, 6]];
|
||||
|
||||
Grid[
|
||||
Prepend[
|
||||
Prepend[
|
||||
Partition[
|
||||
PadRight[PadLeft[Range[daysInMonth[y, m]], daysInMonth[y, m] + offset, ""],
|
||||
36, "" ],
|
||||
7],
|
||||
shortDays],
|
||||
{months[[m]], SpanFromLeft}]]]
|
||||
1
Task/Calendar/Mathematica/calendar-3.mathematica
Normal file
1
Task/Calendar/Mathematica/calendar-3.mathematica
Normal file
|
|
@ -0,0 +1 @@
|
|||
yearlyCalendar[y_] := Grid[Partition[Table[monthlyCalendar[y, k], {k, 12}], 3], Spacings -> {4, 2}];
|
||||
Loading…
Add table
Add a link
Reference in a new issue