An interactive version of a Reingold–Tilford tree. Click on the nodes to expand or collapse.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This example data set (not provided) is over 100,000 records. The following code calculates 30-day moving | |
// averages (over 3 million aggregations) using Crossfilter and the Reductio helper library. It takes about | |
// 3 seconds for the initial aggregation in Chrome Canary (42.0.2291.0) on a 2.3 GHz Core i7, mid-2012 rMBP. | |
d3.csv('dataJan-29-2015.csv', function (data) { | |
//convert the iso timestamps to JS Dates | |
var parseDate = d3.time.format("%Y-%m-%dT%H:%M:%S").parse; | |
var ymd = d3.time.format("%Y-%m-%d"); | |
data.forEach(function(d) { |
This simple area chart is constructed from a TSV file storing the closing value of AAPL stock over the last few years. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.time.format - parse dates
- d3.time.scale - x-position encoding
- d3.scale.linear - y-position encoding
- d3.extent and d3.max - compute domains
- d3.svg.axis - display axes
- d3.svg.area - display area shape
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.liftweb._ | |
import http._ | |
import wizard._ | |
import common.{Empty, Box} | |
import net.liftweb.util.FieldContainer | |
import model.Thing | |
object ThingsWizard extends Wizard { | |
val emptyThings: Seq[Thing] = Seq() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FUNCTION ZTEST12345. | |
*"---------------------------------------------------------------------- | |
*"*"Local Interface: | |
*" EXPORTING | |
*" REFERENCE(E_TEST) TYPE I | |
*"---------------------------------------------------------------------- | |
e_test = e_test + 1. | |
ENDFUNCTION. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('http://pinboard.in/add?url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard',%20'toolbar=no,width=700,height=350')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val post_session = post("session", "token" -> token) | |
"API2" should { | |
"/session POST" in { | |
def withSession(a: => Any) = for(sess <- post_session) { a } | |
doAroundExpectations(withSession(_)) | |
"Attempt to log in with a valid token should succeed with a 200 response" in { | |
(sess.xml \ "session" \ "user" \ "id").text must be equalTo (theUser.id.toString) |
NewerOlder