Skip to content

Instantly share code, notes, and snippets.

View tolgap's full-sized avatar

Tolga Paksoy tolgap

View GitHub Profile
@tolgap
tolgap / DevelMain.hs
Created April 11, 2016 18:26
A file watcher and compiler for Elm written in Haskell
-- | Running your app inside GHCi.
--
-- To start up GHCi for usage with Yesod, first make sure you are in dev mode:
--
-- > cabal configure -fdev
--
-- Note that @yesod devel@ automatically sets the dev flag.
-- Now launch the repl:
--
-- > cabal repl --ghc-options="-O0 -fobject-code"
@tolgap
tolgap / Main.elm
Created February 3, 2016 09:38
Admin Page component in Elm
import Page exposing (update, view, emptyModel)
import StartApp.Simple exposing (start)
main =
start { model = emptyModel, view = view, update = update }
@tolgap
tolgap / cities.md
Created June 18, 2014 15:26
Dijkstra algorithm in Neo4j with example

Adding nodes and relationships to DB

CREATE (Rotterdam:City {title:'Rotterdam'})
CREATE (DenHaag:City {title:'Den Haag'})
CREATE (Leiden:City {title:'Leiden'})
CREATE (Delft:City {title:'Delft'})
CREATE (Amsterdam:City {title:'Amsterdam'})
CREATE (Utrecht:City {title:'Utrecht'})
CREATE (Arnhem:City {title:'Arnhem'})

CREATE (Groningen:City {title:'Groningen'})