😀
- Beijing
-
11:42
(UTC +08:00)
Pinned Loading
-
spring.ts
spring.ts 1export interface IStepOptions {
2secondsPerFrame?: number;
3v: number;
4x: number;
5destX: number;
-
pull-to-refresh.tsx
pull-to-refresh.tsx 1// https://codesandbox.io/s/pull-to-refresh-ljetin
23import React from "react";
4import ReactDOM from "react-dom";
5import { Motion, spring, presets } from "react-motion";
-
simple-diff-algorithms.ts
simple-diff-algorithms.ts 1function getSiblingHost(cCs: Array<Component>, index = 0): Node | void {
2for (let j = index + 1; j < cCs.length; j++) {
3const dom = cCs[j].hostElement;
4if (dom) {
5return dom;
-
cubic-bezier.ts
cubic-bezier.ts 1function calcBezier(t: number, p1: number, p2: number): number {
2return (((1 + 3 * p1 - 3 * p2) * t + (-6 * p1 + 3 * p2)) * t + 3 * p1) * t;
3}
45const PRECISION = 0.0000001;
-
shared pointer implementation for ed...
shared pointer implementation for education purpose. 1#include <iostream>
23template <typename T>
4class shared_ptr
5{
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.