From 3149deefb840c568e9f1263b7cef5add3a32dc97 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Wed, 25 Dec 2019 11:29:51 -0500 Subject: [PATCH] hacker-news: Add Christmas background --- extra/hacker-news/hacker-news.factor | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/extra/hacker-news/hacker-news.factor b/extra/hacker-news/hacker-news.factor index 537efa9652..a4b8f9bb10 100644 --- a/extra/hacker-news/hacker-news.factor +++ b/extra/hacker-news/hacker-news.factor @@ -1,11 +1,9 @@ ! Copyright (C) 2012 Doug Coleman. ! See http://factorcode.org/license.txt for BSD license. - USING: accessors assocs calendar calendar.elapsed -colors.constants colors.hex combinators concurrency.combinators -formatting fry hashtables http.client io io.styles json.reader -kernel make math math.parser sequences ui urls vocabs ; - +calendar.holidays.us colors.constants colors.hex combinators +concurrency.combinators formatting hashtables http.client io +io.styles json.reader kernel make math sequences ui urls ; IN: hacker-news H{ { font-size 20 } { font-style bold } - { background hexcolor: ff6600 } { foreground color: black } - } assoc-union format nl ; + } assoc-union + now christmas-day today? hexcolor: CC0F0E hexcolor: ff6600 ? + background set-of + format nl ; : hacker-news-feed. ( seq -- ) [ 1 + post. ] each-index ;