I hereby claim:
- I am Itkovian on github.
- I am itkovian (https://keybase.io/itkovian) on keybase.
- I have a public key whose fingerprint is 1B82 264B 2D1C 74DF 0703 6F6A B88B 1889 BCBC 7CD8
To claim this, I am signing this object:
-- | 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) |
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; |
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 |
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) |
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 |
#!/usr/bin/env python | |
class A(object): | |
def f(self, a): | |
print a | |
def g(self, b, ff=A.f): |
I hereby claim:
To claim this, I am signing this object:
➜ /Users/ageorges/nixpkgs git:(master) $ nix-store --gc --print-live | grep ghc | |
finding garbage collector roots... | |
determining live/dead paths... | |
/nix/store/0c0x6ikdd91xnv8ad5qg1cnjllcya6l1-ghc-7.4.2-x86_64-apple-darwin.tar.bz2.drv | |
/nix/store/0w52i4qmn9h3n9nh4az5qld25pfq80mg-ghc-7.8.4-src.tar.xz.drv | |
/nix/store/37d4r09fx6ipgp3kla9kpjr8krvqpnp6-ghc-7.10.1 | |
/nix/store/3z09cx6hi7m0xpnjmm5c7pz35r1j3a29-ghc-7.8.4.drv | |
/nix/store/57w4xa43g7ilkdjd7mplrn8l3pvmyklf-ghc-paths-nix.patch | |
/nix/store/6bpp1dda46rv107j5zszhlv03gdbp90c-ghc-paths-0.1.0.9.tar.gz.drv | |
/nix/store/8qqqq11g317x8nc6js7vl72r320irchb-haskell-ghc-paths-0.1.0.9 |
extern crate rand; | |
use rand::Rng; | |
use std::cmp::Ordering; | |
use std::io; | |
fn main() { | |
let secret_number = rand::thread_rng().gen_range(1,101); |