Skip to content

Instantly share code, notes, and snippets.

View jaroel's full-sized avatar

Roel Bruggink jaroel

View GitHub Profile
stationDepartures id sc=map (\(s1,list)->(stationName $ (stationMap $ system sc) Map.! s1,list)) ( Map.toList (Map.fromListWith (++) (map (\((s1,s2),(d,start,dur))->(s2,[start])) (Map.toList (Map.filterWithKey (\(s1,s2) _ ->s1==id) (Map.unions (List.map times (Map.elems $ schedule sc))))))))
@jaroel
jaroel / gist:741ed34d0a1528792aec
Created October 8, 2014 12:29
Ploneconf 2014 schedule
Wednesday
http://2014.ploneconf.org/talks/@@list#talk_8 Journeys with Transmogrifier & friends or How not to get stuck in the Plone dark ages
http://2014.ploneconf.org/talks/@@list#talk_16 Code analysis for a better future
http://2014.ploneconf.org/talks/@@list#talk_1 RelStorage for mere mortals
http://2014.ploneconf.org/talks/@@list#talk_20 Why Plone is going to die!
http://2014.ploneconf.org/talks/@@list#talk_42 The Beauty and the Beast. Modern Javascript Depelopment with AngularJS and Plone
http://2014.ploneconf.org/talks/@@list#talk_24 ApplicationCache and Plone: An ongoing battle
http://2014.ploneconf.org/talks/@@list#talk_31 Easy Online Business Processes with Plone Forms and Workflow
Thursday
@jaroel
jaroel / gist:6ea92dafd1c61dc08de9
Last active August 29, 2015 14:00
Show message for end user on errors with LDAP server in Plone
patches.py:
from plone.api.portal import show_message
from cStringIO import StringIO
import logging
fake_log_file = StringIO()
aux_logger = logging.StreamHandler(fake_log_file)
aux_logger.setLevel(logging.ERROR)
ldap_logger = logging.getLogger('event.LDAPDelegate')
ldap_logger.addHandler(aux_logger)