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
<!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
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
{-# 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
{-# 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
### Keybase proof | |
I hereby claim: | |
* I am nc6 on github. | |
* I am nclarke (https://keybase.io/nclarke) on keybase. | |
* I have a public key whose fingerprint is 2D84 857B 3ECB A75B 2CCE 0205 8EE7 C3E6 6B79 6305 | |
To claim this, I am signing this object: |
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.Applicative | |
import Control.Distributed.Process | |
import Control.Distributed.Process.Node | |
import qualified Network.Transport.TCP as TCP |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Indent rules</string> | |
<key>scope</key> | |
<string>source.ocaml</string> | |
<key>settings</key> | |
<dict> |
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
#!/bin/bash | |
# CVMFS doesn't allow multiple hard-links to the same file unless they sit in the same directory. | |
# We do something to try to patch them up! | |
REPO_ROOT=$1 | |
#List of files | |
FILES=$(find $1 -type f -printf "%i\t%h\t%f\n" | sort) |
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] { |
OlderNewer