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 | |
| class A(object): | |
| def f(self, a): | |
| print a | |
| def g(self, b, ff=A.f): |
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
| Code: | |
| _log.debug("prefix = %s, rndm = %s", prefix, rndm) | |
| s = os.path.join(prefix, rndm[0], rndm[0:2], rndm, filename) | |
| _log.debug("resulting string s = %s", s) | |
| Output: | |
| prefix = pubkey, rndm = 9gksLuHlOVGIleV6gjLk |
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 qualified Data.Map as M | |
| import Data.Monoid | |
| data MMap k a = MMap (M.Map k a) | |
| instance (Ord k, Monoid a) => Monoid (MMap k a) where | |
| mempty = MMap M.empty | |
| (MMap m1) `mappend` (MMap m2) = MMap (M.unionWith mappend m1 m2) |
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/python | |
| import platform | |
| import sys | |
| def linux_distribution(): | |
| try: | |
| return platform.linux_distribution() | |
| except: | |
| return "N/A" |
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
| node425:/tmp/vsc40075/easybuild/GHC/6.12.3/dummy-dummy/ghc-6.12.3 $ make install | |
| make -r --no-print-directory -f ghc.mk install BINDIST=YES NO_INCLUDE_DEPS=YES | |
| /usr/bin/install -c -m 755 -d "/user/data/gent/vsc400/vsc40075/easybuild/software/GHC/6.12.3/share/man" | |
| /usr/bin/install -c -m 755 -d "/user/data/gent/vsc400/vsc40075/easybuild/software/GHC/6.12.3/share/man/man1" | |
| /usr/bin/install -c -m 644 docs/man/ghc.1 "/user/data/gent/vsc400/vsc40075/easybuild/software/GHC/6.12.3/share/man/man1" | |
| /usr/bin/install -c -m 755 -d "/user/data/gent/vsc400/vsc40075/easybuild/software/GHC/6.12.3/lib/ghc-6.12.3" | |
| /usr/bin/install -c -m 755 driver/mangler/dist/ghc-asm "/user/data/gent/vsc400/vsc40075/easybuild/software/GHC/6.12.3/lib/ghc-6.12.3" | |
| /usr/bin/install -c -m 755 -d "/user/data/gent/vsc400/vsc40075/easybuild/software/GHC/6.12.3/lib/ghc-6.12.3" | |
| /usr/bin/install -c -m 755 driver/split/dist/ghc-split "/user/data/gent/vsc400/vsc40075/easybuild/software/GHC/6.12.3/lib/ghc-6.12.3" | |
| /usr/bin/install -c -m 755 -d "/user/data |
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
| package valsgeld; | |
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Scanner; | |
| import java.util.TreeSet; |
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
| -- | Rotating logger for the PRIVMSG sent on the channels | |
| {-# LANGUAGE OverloadedStrings #-} | |
| module NumberSix.Handlers.RotatingLogger | |
| ( handler | |
| ) where | |
| -------------------------------------------------------------------------------- | |
| import Control.Applicative ((<$>)) | |
| import Control.Concurrent.MVar (MVar, newMVar, putMVar, takeMVar) | |
| import Control.Monad.Trans (liftIO) |
NewerOlder