Skip to content

Instantly share code, notes, and snippets.

View jstroem's full-sized avatar

Jesper Lindstrøm Nielsen jstroem

  • Uber
  • Aarhus, Denmark
View GitHub Profile
@jstroem
jstroem / Makefile
Created November 25, 2012 02:11
cse260 project shareing hole neighbors
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Makefile
Created November 30, 2012 06:48
cse260 project ghost cells
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Makefile
Created December 3, 2012 05:15
cse260 project standard
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Makefile
Created December 6, 2012 04:09
CSE260 project. ghost-cells even distribution
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Makefile
Created December 6, 2012 04:12
CSE260 project. ghost-cells and cyclic. even distribution
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Makefile
Created December 6, 2012 04:18
CSE260 project. ghost-cells NOT distribution
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Makefile
Created December 6, 2012 04:22
CSE260 project. ghost-cells and cyclic. NOT even distribution
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Makefile
Created December 7, 2012 03:49
cse260 project standard NOT distribution
HOST = $(shell hostname)
BANG = $(shell expr match `hostname` ccom-bang)
BANG-COMPUTE = $(shell expr match `hostname` compute)
LILLIPUT = $(shell expr match `hostname` lilliput)
ifneq ($(BANG), 0)
PUB = /share/class/public/cse260-fa12
include $(PUB)/Arch/arch.gnu.generic
@jstroem
jstroem / Test.hs
Last active January 21, 2016 17:44
CSE230 HW1
module Main where
import qualified Hw1 as H
import Text.Printf
main :: IO ()
main = do
putStrLn(printf "rectangle sides: %d" (H.sides (H.rectangle 2 3)))
putStrLn(printf "rtTriangle sides: %d" (H.sides (H.rtTriangle 2 3)))
putStrLn(printf "Polygon sides with 0 vertexes: %d" (H.sides (H.Polygon [])))
@jstroem
jstroem / hw2.lhs
Last active December 11, 2015 20:09
CSE230 handin 2
---
title: Homework #2, Due Sunday 2/5/13
---
This week's homework is presented as a literate Haskell file,
just like the lectures. This means that every line beginning with
`>` is interpreted as Haskell code by the compiler, while every other
line is ignored. (Think of this as the comments and code being reversed
from what they usually are.)
You can load this file into `ghci` and compile it with `ghc`