Last active
October 14, 2019 04:34
Revisions
-
melriffe revised this gist
Oct 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -28,4 +28,4 @@ nextDate printNl. (nextDate addDays: (2 * oneWeek)) printNl (nextDate addDays: (3 * oneWeek)) printNl 'Fin' printNl. -
melriffe revised this gist
Oct 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -28,4 +28,4 @@ nextDate printNl. (nextDate addDays: (2 * oneWeek)) printNl (nextDate addDays: (3 * oneWeek)) printNl 'Fin' printNl -
melriffe revised this gist
Oct 14, 2019 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,15 +8,14 @@ " | today nextDate isSaturday saturday oneWeek | saturday := 6. oneWeek := 7. isSaturday := false. today := Date today. nextDate := today firstDayOfMonth. 1 to: oneWeek do: [:x | isSaturday := nextDate dayOfWeek = saturday. isSaturday -
melriffe revised this gist
Oct 14, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -25,6 +25,8 @@ daysInMonth := nextDate daysInMonth. ]. nextDate printNl. (nextDate addDays: (1 * oneWeek)) printNl (nextDate addDays: (2 * oneWeek)) printNl (nextDate addDays: (3 * oneWeek)) printNl 'Hello, world' printNl -
melriffe revised this gist
Oct 14, 2019 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,23 +8,23 @@ " | today nextDate isSaturday daysInMonth saturday oneWeek | saturday := 6. oneWeek := 7. isSaturday := false. today := Date today. nextDate := today firstDayOfMonth. daysInMonth := nextDate daysInMonth. 1 to: daysInMonth do: [:x | isSaturday := nextDate dayOfWeek = saturday. isSaturday ifTrue: [ ^ nextDate ]. nextDate := nextDate addDays: 1. ]. nextDate printNl. (nextDate addDays: oneWeek) printNl 'Hello, world' printNl -
melriffe revised this gist
Oct 11, 2019 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,7 @@ This script is a way for me to get back into Smalltalk doing odd little tasks. $ gst /Users/mriffe/dev/play/dnd_games/dates.st $ gist -u https://gist.github.com/cfa53b8f6cd12f75f03d32075c49b82c dates.st " -
melriffe revised this gist
Oct 11, 2019 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,12 @@ #! /usr/local/bin/gst -f " This script is a way for me to get back into Smalltalk doing odd little tasks. $ gst /Users/mriffe/dev/play/dnd_games/dates.st " | today nextDate isSaturday daysInMonth | isSaturday := false. today := Date today. @@ -13,3 +22,8 @@ daysInMonth := nextDate daysInMonth. ] 'Hello, world' printNl "today := Date year: 2019 month: 11 day: 11 hour: 0 minute: 0 second: 0." "today := Date newDay: 11 monthIndex: 11 year: 2019." -
melriffe created this gist
Oct 11, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ | today nextDate isSaturday daysInMonth | isSaturday := false. today := Date today. nextDate := today firstDayOfMonth. daysInMonth := nextDate daysInMonth. 1 to: daysInMonth do: [:x | isSaturday := nextDate dayOfWeek = 6. isSaturday ifTrue: [ nextDate printNl ]. nextDate := nextDate addDays: 1. ] 'Hello, world' printNl