This file contains 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 characters
; | |
; test with: riemann test filename.clj | |
; | |
(let [add-to-index (tap :index-tap (index))] | |
(streams | |
(project [(service "a") (service "b")] | |
(fn [events] | |
(let [how-many (count (remove nil? events))] | |
(add-to-index {:time 0 :how-many how-many})))))) |
This file contains 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 characters
/*****************************************************************************/ | |
/* my implementation of WMenu using thumbnail images as link */ | |
class MyImageMenuItem : public Wt::WMenuItem | |
{ | |
public: | |
MyImageMenuItem(Wt::WImage* img, Wt::WWidget *contents, | |
Wt::WMenuItem::LoadPolicy policy = Wt::WMenuItem::LazyLoading); | |
protected: | |
void updateItemWidget(Wt::WWidget *itemWidget); | |
Wt::WWidget *createItemWidget(); |