Skip to content

Instantly share code, notes, and snippets.

View mmaz's full-sized avatar

Mark Mazumder mmaz

View GitHub Profile
data WidgetConfig t a
= WidgetConfig { _widgetConfig_setValue :: Event t a
, _widgetConfig_initialValue :: a
, _widgetConfig_attributes :: Dynamic t (Map String String)
}
makeLenses ''WidgetConfig
instance (Reflex t, Default a) => Default (WidgetConfig t a) where
def = WidgetConfig { _widgetConfig_setValue = never
@mmaz
mmaz / Dockerfile
Last active August 29, 2015 14:23 — forked from abn/heredoc-dockerfile.snip
#printf
RUN printf '#!/bin/bash\n\
echo hello world from line 1\n\
echo hello world from line 2\n'\
> /tmp/hello
## or you can use >>
RUN cat /tmp/hello
#echo