hourlist
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
hourlist [2009/08/04 00:18] – 64.122.198.69 | hourlist [2024/01/31 04:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Don Park 3:15pm feeling tricky by listing all hours in a day with this ruby: | + | 8NqAg1 |
- | <code ruby> | + | |
- | [" | + | |
- | </code> | + | |
- | + | ||
- | RobotAdam 2:53pm @donpdonp That's fun. A Python variation: | + | |
- | <code python> | + | |
- | itertools.chain(*((" | + | |
- | </ | + | |
- | + | ||
- | @selenamarie 3:10pm @donpdonp @robotadam hmmm... | + | |
- | <code perl> | + | |
- | for my $meridiem (qw/am pm/) { print map { $_ . $meridiem . ' '} (12,1..11); } | + | |
- | </code> | + | |
- | + | ||
- | @MarkusQ 4:22pm: @donpdonp If you'd like to feel even trickier: | + | |
- | <code ruby> | + | |
- | (0..23).map { |h| "# | + | |
- | </code> | + |
hourlist.1249345085.txt.gz · Last modified: 2024/01/31 04:08 (external edit)