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
{-# LANGUAGE OverloadedStrings, RecordWildCards, LambdaCase #-} | |
import Conduit | |
import Data.Conduit | |
import Data.Conduit.Network | |
import qualified Data.ByteString.Char8 as BS | |
import Data.Conduit.TMChan | |
import Text.Printf (printf) | |
import Control.Concurrent.STM | |
import qualified Data.Map as Map |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Written by Joe Hillenbrand <[email protected]> 2012 | |
All rights reserved! | |
""" | |
import sys |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Written by Joe Hillenbrand <[email protected]> 2012 | |
All rights reserved! | |
""" | |
import string |
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 Control.Concurrent (forkIO, killThread, | |
threadDelay, newEmptyMVar, | |
tryTakeMVar, putMVar) | |
import Control.Monad (void, forever) | |
import Control.Concurrent.STM (atomically) | |
import Control.Monad.Trans (MonadIO(..)) | |
import Control.Monad.Trans.Resource (MonadResource, allocate) | |
import Data.Conduit (GInfConduit, awaitE) | |
throttle :: (MonadResource m) => Int -> GInfConduit a m a |
NewerOlder