Chris Zhou, 2022-10-14
- Code
- Coder
Main resource: https://basarat.gitbook.io/typescript/
tsconfig.json
..js
to .ts
. Suppress errors using any
.any
.A specification for designing unified search APIs and UIs.
function useResponsiveCanvas<T>( | |
initialSize?: MinMaxPair, | |
): State { | |
const canvasRef = useRef<HTMLCanvasElement>(); | |
const mountRef = useRef<HTMLDivElement>(); | |
const [size, setSize] = useState<MinMaxPair>([0, 0]); | |
// set initial svg and size | |
useEffect(() => { | |
const canvas = document.createElement('canvas'); |
//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
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.