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
| import re | |
| from email import parser, message | |
| from email.header import decode_header | |
| class EmlParser(object): | |
| def __init__(self, email: bytes): | |
| self.parsed = parser.BytesParser().parsebytes(email) | |
| def file_name_extractor(self, text): |
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
| version: '3' | |
| services: | |
| # my-app: | |
| # image: ${docker-registry}/my-app:1.0 | |
| # ports: | |
| # - 3000:3000 | |
| mongodb: | |
| image: mongo | |
| ports: | |
| - 27017:27017 |
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
| pragma solidity 0.5.1; | |
| contract MyContract | |
| { | |
| mapping(address=>uint256)public balances; | |
| event Purchase( | |
| address indexed _buyer, | |
| uint256 _amount); | |