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
import json | |
import sys | |
class Insurer: | |
TWO_COVER_PERCENTAGE = .10 | |
ONE_COVER_RANKED_PERCENTAGE = [.20, .25, .30] | |
NO_COVER_PERCENTAGE = 0 | |
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
first_visit converted_day email external_id id min max count | |
20161029 20130806 [email protected] 5284872 121428386 2013-08-06 14:01:56.000000 -04:00 2013-08-06 14:01:56.000000 -04:00 1 | |
20161020 20151201 dblee@bizwizsystem 10890483 121760800 2015-12-01 02:51:42.000000 2015-12-01 02:51:42.000000 1 | |
20161117 20160415 [email protected] 12427435 121864365 2016-04-15 04:34:24.000000 -04:00 2016-05-03 03:38:39.000000 -04:00 2 | |
20161121 20140829 [email protected] 7397683 121587289 2014-08-29 13:47:47.000000 -04:00 2014-08-29 13:47:47.000000 -04:00 1 | |
20161104 20150923 [email protected] 10579068 121738570 2015-09-23 11:00:34.000000 -04:00 2015-09-23 11:00:34.000000 -04:00 1 | |
20161109 20120502 [email protected] 3460517 121359048 2012-05-02 11:50:01.000000 -04:00 2012-05-02 11:50:01.000000 -04:00 1 | |
20161117 20160518 [email protected] 12840045 121914041 2016-05-18 01:08:15.000000 -04:00 2016-05-18 01:08:15.000000 -04:00 1 | |
20161119 20150731 [email protected] 10249522 121712023 2015-07-31 07 |
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
import re | |
classification = ossec_event.get('classification', '') | |
text = '%s\n[%s]' % (ossec_event.get('message', ''), classification) | |
match = re.search(r"\((ip.*)\)", ossec_event.get('component', '')) | |
host = match.group(1) | |
dd_event = { | |
'alert_type': dd_level, | |
'title': ossec_event.get('description', ''), | |
'text': text, |
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
<?xml version="1.0" encoding="utf-8"?> | |
<rss version="2.0"><channel><title>Startseite - BlachReport - Trends und Tendenzen in der Live-Kommunikation</title><link>http://www.blachreport.de/</link><description></description><generator>Curata Reader</generator><docs></docs><item><title>Gamescom Köln 2015: Shuttle-Service mit dem Citroën C4 Cactus</title><link>http://www.blachreport.de/messe-marketing/messe-marketing/10590-gamescom-koeln-2015-shuttle-service-mit-dem-citroen-c4-cactus.html</link></item><item><title>Messebesucherzahlen aus den östlichen EU-Ländern seit 2004 fast verdoppelt</title><link>http://www.blachreport.de/messe-marketing/messe-marketing/10589-messebesucherzahlen-aus-den-oestlichen-eu-laendern-seit-2004-fast-verdoppelt.html</link></item><item><title>Fairnet zieht positive Halbjahresbilanz</title><link>http://www.blachreport.de/messe-marketing/messe-marketing/10588-fairnet-zieht-positive-halbjahresbilanz.html</link></item><item><title>Infrastruktur im Kongress Palais Kassel wird optimiert</t |
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
expandTable = (table, height) -> | |
table.addClass('is-opened') | |
table.siblings('.table-wrapper').css('max-height', height) | |
table.children('.icon').html('') | |
shrinkTable = (table) -> | |
table.removeClass('is-opened') | |
table.siblings('.table-wrapper').css('max-height', '186px') | |
table.children('.icon').html('') |