D3 Sunburst Sequence visualizes a graph of nodes by highlighting sequential progression of nodes leading up to a final value. A sunburst sequence is useful to visualize relative weights/percentages of a starting state to an end state (e.g. webpage redirects, product retention, subscription-based products, cashflows).
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
//https://codesandbox.io/s/x77p8rrnxo | |
import React from 'react'; | |
import * as THREE from 'three'; | |
import OrbitControls from 'three-orbitcontrols'; | |
export default class Scene extends React.Component { | |
static defaultProps = { | |
radius: 600, | |
textureURL: |
create-react-app testapp
cd testapp
// dev flow
yarn start
// build flow
yarn build
cd build
Stanford Class: Crypto I
- Central Theorem: Anything that can be done with a trusted authority can also be done without.
- Instead of passing inputs
x1
,x2
, ...,xn
to someAuthority
object, which then outputs the resultf(x1, x2, ..., xn)
, the inputs themselves can talk to each other and output the same resultf(x1, x2, ..., xn)
- Instead of passing inputs
- Crypto Magic
- Privately outsourcing computation: e.g. Google can compute encrypted results
E[result]
of an encrypted queryE[query]
without every knowing the contents ofquery
itself. - Zero knowledge (proof of knowledge): It is provable that you can give the solution of any puzzle to another person without giving the details of the solution itself. WTF???
- Privately outsourcing computation: e.g. Google can compute encrypted results
- Cryptography is a rigorous science with 3 key steps:
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
// basics | |
type TSimpleType = { | |
// prefer to name flow types with 'T*' syntax | |
stringProp: string, | |
nullableStringProp: ?string, | |
optionalStringProp?: string, | |
optionalAndNullableStringProp?: ?string, | |
type: 'a' | 'b' | 'c', | |
}; |
- Only style what you need. Create classes or IDs to allow targeting of specific elements.
- Use
container
to create padding and margins that center based on screen width. - Use
container-fluid
to allow for expansion to the whole screen width while keeping a natural padding.