This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-10
Channels
- # announcements (4)
- # beginners (111)
- # boot (34)
- # cider (67)
- # cljdoc (10)
- # clojure (90)
- # clojure-dev (37)
- # clojure-europe (3)
- # clojure-gamedev (3)
- # clojure-italy (18)
- # clojure-losangeles (2)
- # clojure-nl (27)
- # clojure-spec (24)
- # clojure-uk (59)
- # clojurescript (41)
- # cursive (32)
- # datomic (31)
- # emacs (21)
- # figwheel (1)
- # figwheel-main (2)
- # fulcro (43)
- # graalvm (6)
- # graphql (3)
- # jobs-discuss (3)
- # kaocha (1)
- # nyc (1)
- # off-topic (22)
- # pathom (10)
- # pedestal (11)
- # re-frame (9)
- # reitit (17)
- # shadow-cljs (15)
- # spacemacs (13)
- # sql (6)
- # testing (5)
- # tools-deps (3)
- # vim (13)
- # yada (1)
måning
is there something better than the following?
(defn months-seq
"Takes t/year-months like: (months-seq (t/year-month 2017 7) (t/year-month) \"yyyy-MM\")"
([start]
(map (fn [x] (t/plus start
(t/months x)))
(range)))
([start end]
(take-while #(t/before? % (t/plus end (t/months 1)))
(months-seq start)))
([start end fmt]
(map #(t/format fmt %) (months-seq start end))))
(take 10 (reductions java-time/plus (java-time/local-date) (repeat (java-time/period "P1M"))))
thats using
clojure.java-time {:mvn/version "0.3.2"}
if you can depend upon such a thing
@U793EL04V thx! 🙂
@otfrom https://github.com/MastodonC/kixi.hecuba.weather/blob/master/src/kixi/hecuba/weather/metoffice_api.clj#L92
ah, but that is good old clj-time, and I know that has periodic-seq. 😉 I was hoping to use the newer java-time (I stole that code from the private disco you remember)
morning
felt too ill to cycle in this morning, but remembered I have chores to run, so figured I would cycle in to the co-working space at lunch. Just prepped the bike and saw it’s started raining. Great.
@alex.lynham yeah, if you are perm stay home. Don't infect your cow-orking buddies
I was going to go anyway and then the rain has intensified further
the thing is, the chore I need to do is get the parts to tap a keg for a party tomorrow
basic utilitarian philosophy states I am expendable in the face of the commonwealth having access to beer
xactly, spock was right
>cow-orking 😆
morning
@alex.lynham that kind of thinking is how you get starships shot out from underneath you
it’s for the greater good 🍻 🍻 🍻 🍻 🍻
Just discovered my first ever legitimate use for a <marquee>
tag, and found html5 made it obsolete. 😢
much better to use a style than a tag; but still disappointed we can’t build modern webapps like we did in ’98
I’m with @maleghast on this one… MIDP was a royal PITA.
@jasonbell You’ve just brought back bad memories; well and truly burried of struggling to get a multiplayer battle of gettysberg game working on an old Nokia 6600 for Orange/France Telecom… I might not sleep tonight.
I’d almost forgotten I could claim I was once through an unfortunate contract; a mobile games developer… not that the game ever made it to market.
Think of me as your programming therapist @rickmoynihan taking you back on some regression therapy to old projects. How did you feel when you wrote those things, thinking back how what could you have done differently……. now forget all this 🙂
…alone a stranger and afraid, in a world I never made
have good weekends everyone
(the right but not the obligation)