This file contains hidden or 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
| <some json with value with \r\n>| jq . | sed 's/\\r\\n/\n/g' |
This file contains hidden or 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
| FROM php:7.0.16-fpm-alpine | |
| COPY . /app |
This file contains hidden or 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
| FROM php:7-cli | |
| RUN apt-get update && apt-get install -y curl git libzmq3-dev php-pear \ | |
| && docker-php-ext-install opcache \ | |
| && docker-php-ext-install mbstring | |
| RUN pecl install zmq-beta | |
| #COMPOSER | |
| RUN curl -sS https://getcomposer.org/installer | php |
This file contains hidden or 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
| create schema mailing_opened(user_id string, time integer); | |
| create schema mailing_clicked(user_id string, time integer); | |
| create schema opened_and_clicked(user_id string, open_time integer, click_time integer, time_from_open_to_click integer); | |
| @Name('detected_opened_and_clicked') | |
| insert into opened_and_clicked select a2.user_id as user_id, a1.time as open_time, a2.time as click_time, (a2.time - a1.time) as time_from_open_to_click from pattern [((every a1 = mailing_opened) -> a2 = mailing_clicked(a2.user_id = a1.user_id) where timer:within(50 seconds))] | |
| ---------------------------------- | |
| mailing_opened={user_id='1', time=100} |