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 Utils where | |
import Data.Map (Map) | |
import qualified Data.Map as M | |
data Heap a = Heap | |
{ hNumObjs :: Int | |
, hUnused :: [Addr] | |
, hMap :: Map Addr a | |
} |
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
{ | |
{-# OPTIONS -w #-} | |
module CoreLexer | |
( Alex(..) | |
, AlexPosn(..) | |
, Token(..) | |
, alexMonadScan | |
, runAlex | |
, alexGetInput | |
) 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
import Prelude hiding (log) | |
import Control.Monad ( (<$>) ) | |
import Control.Monad.Trans ( liftIO, when, baz, Bar(..) ) -- some made up names | |
{- | Our very important FOO compilation option -} | |
#ifdef FOO | |
foo = 1 | |
#endif | |
{- {- Nested comments aren't quite right -} nope... -} |
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
<script> | |
jsMath.Process(document); | |
</SCRIPT> |
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
<script SRC="../plugins/noImageFonts.js"></SCRIPT> | |
<script SRC="../jsMath.js"></SCRIPT> |
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 | |
if test "$SSH_AUTH_SOCK" ; then | |
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock | |
fi |
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
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY" | |
set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock |
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
dagit@flux:~/tmp$ cabal-dev install accelerate-cuda | |
Resolving dependencies... | |
Configuring accelerate-cuda-0.12.1.1... | |
configure: WARNING: unrecognized options: --with-compiler, --with-gcc | |
checking for nvcc... nvcc | |
checking whether the C++ compiler works... yes | |
checking for C++ compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... configure: error: in `/private/var/folders/wb/kzn7x2tj6db_g9qhwy3w1ss00000gp/T/accelerate-cuda-0.12.1.1-85898/accelerate-cuda-0.12.1.1': | |
configure: error: cannot run C++ compiled programs. |
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 #-} | |
import Data.String | |
newtype BadString = BS String deriving Show | |
instance IsString BadString where fromString = error | |
main = print ("Hello, World!" :: BadString) | |
{- |
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 | |
IGNORED=(. .. .git .gitignore .ssh) | |
DOTFILES=(.* .ssh/rc) | |
function containsElement () { | |
for e in "${@:2}" | |
do | |
[[ "$e" == "$1" ]] && echo 1 && return |
OlderNewer