spellcast - a game of duelling wizards
spellcast remotedisplay [ remotedisplay ... ]
One game window will appear on the default display (determined by the contents of the DISPLAY environment variable.) The second will appear on
#include <mpi.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#define SIZE 4 | |
int main(int argc, char *argv[]) | |
{ | |
int rank, size; // for storing this process' rank, and the number of processes |
ply | |
format ascii 1.0 | |
element vertex 36 | |
property float x | |
property float y | |
property float z | |
property float nx | |
property float ny | |
property float nz | |
property float intensity |
$ curl https://nixos.org/nix/install | sh
{-# Language FlexibleContexts, Rank2Types, ScopedTypeVariables #-} | |
import Control.Monad (liftM) | |
import Control.Monad.Trans (MonadTrans (..)) | |
newtype Trampoline m r = Trampoline { | |
bounce :: m (Either (Trampoline m r) r) | |
} | |
instance Monad m => Monad (Trampoline m) where |
I hereby claim:
To claim this, I am signing this object:
-- code based on https://www.youtube.com/watch?v=umiUJNcvPl0 | |
data Command : Type -> Type where | |
PutStr : String -> Command () | |
GetStr : Command String | |
data InfIO : Type where | |
Do : Command a -> (a -> Inf InfIO) -> InfIO | |
(>>=) : Command a -> (a -> Inf InfIO) -> InfIO |
compiler: ghc-8.2.0.20170507 | |
compiler-check: match-exact | |
resolver: lts-8.13 | |
setup-info: | |
ghc: | |
linux64: | |
8.2.0.20170507: | |
url: https://downloads.haskell.org/~ghc/8.2.1-rc2/ghc-8.2.0.20170507-x86_64-deb8-linux.tar.xz | |
content-length: 141011788 | |
sha1: ff886437c1d2ddfa5686d6c9efb0819a957c3dde |
" Highlight Function names. From | |
" http://stackoverflow.com/questions/736701/class-function-names-highlighting-in-vim/773392#773392 | |
syn match cCustomParen "(" contains=cParen contains=cCppParen | |
syn match cCustomFunc "\w\+\s*(" contains=cCustomParen | |
hi def link cCustomFunc Function | |
hi Function term=bold gui=bold |
{-# LANGUAGE DataKinds, PolyKinds, TypeOperators #-} | |
{-# LANGUAGE TypeFamilies, FlexibleInstances, ScopedTypeVariables #-} | |
{-# LANGUAGE InstanceSigs #-} | |
module TinyServant where | |
import Control.Applicative | |
import GHC.TypeLits | |
import Text.Read | |
import Data.Time |