Skip to content

Instantly share code, notes, and snippets.

View nsengupta's full-sized avatar

Nirmalya Sengupta nsengupta

View GitHub Profile
@nsengupta
nsengupta / LDiEdge-P-T
Created July 17, 2015 17:22
Setting Two-way relationship between two Nodes
IndexedSeq[LDiEdge[LobbyNode]](
setRelationWithLabel(p,t,"IsPlayingAt"),
setRelationWithLabel(t,p,"seatOccupiedBy")
)
@nsengupta
nsengupta / Example-LDiEdge
Created July 17, 2015 17:01
Example of creating a labeled, directed edge
def setRelationWithLabel(source: LobbyNode,target: LobbyNode,label: String) =
LDiEdge(source, target)(label)
@nsengupta
nsengupta / JSON-F1450.schema
Created March 30, 2015 11:00
F1450 Schma (WIP)
{
"schema": "http://json-schema.org/draft-04/schema#",
"title": "F1450FormFields",
"description": "Representation of the fields from ClaimForm F1450",
"type": "object",
"definitions": {
"IHTDetails" :{
"type": "object",
"properties":
{