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 sys | |
import json | |
def extract_json(line): | |
index = line.find('{') | |
if index == -1: | |
return None | |
else: | |
return json.loads(line[index:]) |
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
module AddressCache where | |
import qualified Data.Bimap as B | |
import Data.DateTime | |
import Control.Concurrent.STM | |
import Control.Concurrent | |
import Control.Monad | |
type InetAddress = Integer |