Skip to content

Commit 34ea568

Browse files
committed
add readme plus cosmetics
1 parent 6ed1467 commit 34ea568

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#Parse a binary and display it with this little meteor app
2+
3+
Did this for experimenting with trees, since I had some trouble understand ALV trees without visualisation of my data.
4+
5+
Screenshot: `http://cl.ly/image/0f012y1u1E1Q`

treeder.coffee

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
@tree = new Meteor.Collection("tree")
2-
@trees = new Meteor.Collection("trees")
3-
@levels = new Meteor.Collection("levels")
1+
@levels = new Meteor.Collection("levelss")
42
@levelHeight = 80
53
@nodeSize = 50
64

75
if Meteor.isClient
86
Meteor.startup ->
97
@levels.remove()
108
@container = $('#node-container')
11-
this.parse()
9+
@parse()
1210

1311
Template.main.events "click #connect": (event) ->
1412
connectAll()
1513

1614
Template.main.events "click #parse": ->
1715
@levels.remove()
18-
this.parse()
16+
@parse()
1917

2018

2119
log2 = (val) ->
@@ -29,7 +27,6 @@ if Meteor.isClient
2927

3028

3129
parse = ->
32-
console.log "parsing"
3330
# template data, if any, is available in 'this'
3431
testData = [ {'data': 2}, {'data': 1}, {'data': 5}, {'data': null}, {'data': null}, {'data': 3}, {'data': 6}, {'data': null}, {'data': null}, {'data':null}, {'data': null}, {'data': null}, {'data': 4}, {'data': null}, {'data': null}]
3532
treeJson = testData

0 commit comments

Comments
 (0)