Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created January 19, 2014 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/8510432 to your computer and use it in GitHub Desktop.
Save zeffii/8510432 to your computer and use it in GitHub Desktop.
cf_neural_average_potential_pre_spike

[ Launch: cf_neural_sum ] 8510432 by zeffii
[ Launch: coffee_templatefux ] 8493787 by zeffii
[ Launch: boomstick_motion_wcolor_coffee ] 6399870 by zeffii
[ Launch: boomstick_motion_wcolor_coffee ] 6382272 by zeffii
[ Launch: boomstick_motion_wcolor_coffee ] 6382237 by zeffii
[ Launch: boomstick_motion_wcolor_coffee ] 6379220 by zeffii
[ Launch: boomstick_motion_wcolor ] 6376715 by zeffii
[ Launch: boomstick_motion2 ] 6365156 by zeffii
[ Launch: boomstick_motion ] 6364686 by zeffii
[ Launch: boomstick ] 6364584 by zeffii
[ Launch: zeffii default ] 6364028 by zeffii
[ Launch: zeffii default ] 5033869 by zeffii

{"description":"cf_neural_average_potential_pre_spike","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"data2.csv":{"default":true,"vim":false,"emacs":false,"fontSize":12},"util.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"injet.coffee":{"default":true,"vim":false,"emacs":false,"fontSize":12},"inlet.coffee":{"default":true,"vim":false,"emacs":false,"fontSize":12},"utils.coffee":{"default":true,"vim":false,"emacs":false,"fontSize":12},"details.ssv":{"default":true,"vim":false,"emacs":false,"fontSize":12},"details.txt":{"default":true,"vim":false,"emacs":false,"fontSize":12},"details.tsv":{"default":true,"vim":false,"emacs":false,"fontSize":12},"details.csv":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/rUN41qB.png"}
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
op1
-2.1290e-001
-3.3083e-001
-2.9084e-001
-2.3076e-001
-2.4637e-001
-1.0963e-001
-3.2233e-002
-5.3667e-002
-1.8999e-002
-1.8992e-002
-8.6980e-002
-1.2392e-001
1.7321e-002
2.3242e-001
2.9631e-001
1.4848e-001
-1.6343e-001
-3.6326e-001
-2.8260e-001
-1.1191e-001
-2.1302e-002
-1.0927e-001
-1.8715e-001
-7.4171e-002
7.5990e-003
2.4167e-002
9.5828e-003
8.5066e-002
2.5436e-001
3.0199e-001
2.1289e-001
1.3428e-001
1.8229e-001
3.7724e-001
4.4580e-001
3.2084e-001
2.3952e-001
2.8931e-001
2.5225e-001
1.6736e-001
9.6830e-002
1.2620e-001
1.8560e-001
1.0894e-001
6.7557e-002
2.4375e-001
4.6676e-001
4.7717e-001
2.9671e-001
2.3532e-001
3.8961e-001
5.9874e-001
6.3610e-001
5.5856e-001
5.3017e-001
5.6925e-001
7.3173e-001
8.2225e-001
7.6161e-001
7.4513e-001
7.5644e-001
7.7179e-001
7.5689e-001
7.9606e-001
8.6495e-001
1.0274e+000
1.0848e+000
1.1408e+000
1.2328e+000
1.1698e+000
1.2604e+000
1.5530e+000
1.6947e+000
1.6083e+000
1.4937e+000
1.6030e+000
1.7408e+000
1.9180e+000
2.1488e+000
2.3003e+000
2.3532e+000
2.4315e+000
2.5691e+000
2.6052e+000
2.5563e+000
2.6035e+000
2.7133e+000
2.8415e+000
2.9971e+000
3.1310e+000
3.2179e+000
3.3400e+000
3.5603e+000
3.8210e+000
4.0406e+000
4.1744e+000
4.2371e+000
4.2363e+000
4.3431e+000
4.5545e+000
4.7193e+000
4.8919e+000
5.1896e+000
5.3937e+000
5.5414e+000
5.7054e+000
5.8584e+000
6.1275e+000
6.5816e+000
7.0366e+000
7.3086e+000
7.4932e+000
7.7023e+000
7.9874e+000
8.4344e+000
9.0279e+000
9.6371e+000
9.9946e+000
1.0357e+001
1.1054e+001
1.1880e+001
1.2684e+001
1.3557e+001
1.4422e+001
1.5374e+001
1.6507e+001
1.7775e+001
1.9046e+001
2.0244e+001
2.1395e+001
2.2640e+001
2.4009e+001
2.5516e+001
2.7038e+001
2.8412e+001
2.9457e+001
2.9473e+001
2.7276e+001
2.2446e+001
1.5986e+001
9.4169e+000
4.4401e+000
1.8049e+000
8.0849e-001
4.7878e-001
2.8708e-001
1.8529e-001
2.4322e-001
1.2873e-001
-6.1341e-002
svg = d3.select("svg")
svg.append("rect").attr({width:"100%", height:"100%", fill: '#E2E2E2'})
style_one =
fill: '#C5C5C5',
stroke: '#686868'
'stroke-width': 1
group1 = svg.append('g')
.classed('group1', true)
.attr
transform: 'translate(' + [172, 367] + ')'
data = tributary.details
# this is some sick notation. ..i don't like it.
#_".map" is the function and "data, (d)" are the arguments to it
data = _.map data,(d) ->
d.op1 = +d.op1
d
gop1 = group1.append("g").classed("op1", true)
gop1.append("path")
.attr
d: () ->
xpos = 0
path = "M"
for val in data
x_comp = " " + (xpos += 4)
y_comp = " " + (-val.op1*10)
path += x_comp + y_comp
.style
"stroke-width": 1
"fill": "none"
"stroke": "#232323"
# EOF #
.cm-s-elegant.CodeMirror { background: #1e2426; color: #696969; }
.cm-s-elegant div.CodeMirror-selected {background: #064968 !important;} /* 33322B*/
.cm-s-elegant span.cm-variable { color:#22EFFF; }
.cm-s-elegant span.cm-variable-2 { color: #FFCCB4; }
.cm-s-elegant span.cm-variable-3 { color: white; }
.cm-s-elegant span.cm-string { color: Chartreuse; }
.cm-s-elegant span.cm-string-2 {color: Chartreuse;}
.cm-s-elegant span.cm-def {color: #FFCCB4; opacity: 1.0}
.cm-s-elegant span.cm-bracket { color: #EBEFE7; }
.cm-s-elegant pre { color:#FFF; }
.cm-s-elegant span.cm-qualifier { color:#C0C0C0; }
.cm-s-elegant span.cm-comment { color: #AFB4B4;}
.cm-s-elegant span.cm-property {color: #FDA676;}
.cm-s-elegant span.cm-number { color: #FF92EE;}
.cm-s-elegant span.cm-keyword { color: #FFFF18; }
.cm-s-elegant .CodeMirror-cursor { border-left: 1px solid white !important; }
.cm-s-elegant .CodeMirror-gutters {background: #505050;}
.cm-s-elegant .CodeMirror-linenumber {color: #D3D3D3;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment