Example usage:
$ python arith.py 1 + 1
2
$ python arith.py 3 x 4
12
$ python arith.py 5 + 4 x 3
17
$ python arith.py 4 / 2
Example usage:
$ python arith.py 1 + 1
2
$ python arith.py 3 x 4
12
$ python arith.py 5 + 4 x 3
17
$ python arith.py 4 / 2
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name MathJax on Slack | |
// @namespace https://github.com/fsavje/math-with-slack | |
// @description Renders math on Slack using MathJax. Based on github:fsavje/math-with-slack. | |
// @include https://*.slack.com/messages/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// See: https://github.com/fsavje/math-with-slack |
This shows how to create a sunburst chart that has some padding between the inner ring segments that extends outwards, while the outer rings do not have inner padding. This was previously possible already, but then the shape of the padding would be triangular, because the padding would be x
radians. This example has straight edge padding, thanks to an extension of the svg.arc.padAngle
function, that now also accepts an array as argument. The first element of that array would then be the left angle padding, while the right angle padding can be given separately as the second element of that array. This gives more flexibility, which is demonstrated in this example.
The color schemes in this example are taken from ColorBrewer.