A sunburst (radial partition layout) built with D3, featuring interactive distortion based on InterRing: when you click on a node, it expands to fill 80% of the parent arc. Clicking on the root node resets all distortions.
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# init a dict | |
d = dict() | |
d = {} | |
d = {'Name': 'Zara', 'Age': 7, 'Class': 'First'} # like js object | |
# get | |
d['Name'] # 'Zara' | |
d['Gender'] # KeyError # Don't use this | |
# dict.get(key, default=None) |