I hereby claim:
- I am jonypawks on github.
- I am jprintz (https://keybase.io/jprintz) on keybase.
- I have a public key ASBsioH8tDpr93NcUh2slME9LscqRuVEKFr_mGy8M4eiWgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
_random = | |
if crypto?.getRandomValues | |
-> crypto.getRandomValues(new Uint32Array(1))[0] / Math.pow(2, 32) | |
else | |
Math.random | |
uuid4 = -> | |
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace /[xy]/g, (c) -> | |
u = _random() * 16 | 0 | |
u = u & 0x3 | 0x8 if c is 'y' |
This example demonstrates brush transitions, a new feature in D3 3.3.
Try dragging the brush or selecting a new region. When you mouseup, the brush transitions smoothly back to its original position. The transition is initiated simply by applying the brush to a transition (rather than a selection), similar to automatic axis transitions. Note that interacting with the brush interrupts the current transition!
document.getElementById("tabVendor").onTabClick = function() { InitVendor() } |
from timeit import timeit | |
zipmethod = """dict(zip(sample[::2], sample[1::2]))""" | |
formethod = """\ | |
d = dict() | |
for i in range(1, len(sample) - 1, 2): | |
d[sample[i]] = sample[i+1] | |
""" | |
if __name__ == '__main__': |