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
{-# LANGUAGE ConstraintKinds, GADTs #-} | |
{-# LANGUAGE DataKinds, PolyKinds, AutoDeriveTypeable #-} | |
{-# LANGUAGE StandaloneDeriving, DeriveDataTypeable #-} | |
import Data.Proxy | |
import Data.Typeable | |
data Foo (p :: (*, *)) | |
data Dict ctx where |
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
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Control.Lens | |
import Control.Monad (when) | |
import Data.ByteString.Char8 (ByteString) | |
import qualified Data.ByteString.Char8 as BS | |
import Data.ByteString.Lazy.Char8 (toStrict) | |
import Data.Char (toLower) |
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 GHC.IO.Handle | |
import Control.Concurrent (forkIO, forkOS, threadDelay) | |
import System.Directory (createDirectoryIfMissing) | |
import System.Environment | |
import System.IO | |
main ::IO () | |
main = do | |
putStrLn "Writing to stdout" | |
mapM_ (createDirectoryIfMissing True) ["output_io", "output_os"] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Smith-Waterman Demo</title> | |
</head> | |
<body> | |
<form> | |
<label for="word1">Word 1</label> | |
<input name="word1" id="word1" value="ACACACTA" /> |
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
{-# LANGUAGE ForeignFunctionInterface #-} | |
{-# LANGUAGE EmptyDataDecls #-} | |
#include <sys/ttycom.h> | |
#include <sys/ioctl.h> | |
#c | |
typedef struct winsize winsize; | |
#endc |
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 ChattyCalculator where | |
import Prelude hiding (exponent, subtract) | |
import Control.Applicative hiding ((<|>)) | |
import Data.List (intercalate) | |
import Text.Parsec | |
import Text.Parsec.Expr |
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
{-# LANGUAGE LambdaCase #-} | |
module Main where | |
import Control.Monad (liftM) | |
import qualified Data.ByteString.Char8 as B | |
import qualified Data.ByteString.Lazy.Char8 as LB | |
import qualified Data.Map as Map | |
import Data.Maybe (fromMaybe, catMaybes) | |
import Data.Monoid (mconcat) |
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
{-# LANGUAGE LambdaCase #-} | |
module Main where | |
import Control.Monad (liftM) | |
import qualified Data.ByteString.Char8 as BS | |
import qualified Data.ByteString.Lazy.Char8 as B | |
import Data.Monoid (mconcat) | |
import Data.Ord() | |
import System.Environment (getArgs) |
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
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
module Statistics.MannWhitney where | |
import Prelude hiding (sort) | |
import Control.Monad (forM) | |
import Data.List (genericLength, intersect, intercalate, nub, sortBy, splitAt) | |
import Data.Number.Erf (normcdf) |
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
package models.dao | |
import play.api.db.slick.Config.driver.simple._ | |
/** | |
* A parameter to a role type. | |
*/ | |
private[models] case class ParameterTypeDO(id: Long, name: String, description: Option[String]) | |
private[models] class ParameterTypes extends Table[ParameterTypeDO]("PARAMETER_TYPES") with StandardQueries[ParameterTypeDO] { |