Write a function that returns true
or false
if exactly one of its parameter is true
.
const a = true;
const b = false;
const c = false;
...
onlyOne(a, b, b); // true
onlyOne(a, b, b, b); // true
// basics | |
type TSimpleType = { | |
// prefer to name flow types with 'T*' syntax | |
stringProp: string, | |
nullableStringProp: ?string, | |
optionalStringProp?: string, | |
optionalAndNullableStringProp?: ?string, | |
type: 'a' | 'b' | 'c', | |
}; |
Stanford Class: Crypto I
x1
, x2
, ..., xn
to some Authority
object, which then outputs the result f(x1, x2, ..., xn)
, the inputs themselves can talk to each other and output the same result f(x1, x2, ..., xn)
E[result]
of an encrypted query E[query]
without every knowing the contents of query
itself.create-react-app testapp
cd testapp
// dev flow
yarn start
// build flow
yarn build
cd build
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).
//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: |
![image-inflation][]
Explores inflation by visualizing relative prices in two different years.
Mouseover to view details on relative CPI and prices. Click on a tile to freeze details. 2015 years are highlighted in gold.
The project is created using D3.js.
A specification for designing unified search APIs and UIs.