Skip to content
View mrchaofan's full-sized avatar
😀
😀
  • Beijing
  • 20:45 (UTC +08:00)

Block or report mrchaofan

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. spring.ts spring.ts
    1
    export interface IStepOptions {
    2
      secondsPerFrame?: number;
    3
      v: number;
    4
      x: number;
    5
      destX: number;
  2. pull-to-refresh.tsx pull-to-refresh.tsx
    1
    // https://codesandbox.io/s/pull-to-refresh-ljetin
    2
    
                  
    3
    import React from "react";
    4
    import ReactDOM from "react-dom";
    5
    import { Motion, spring, presets } from "react-motion";
  3. simple-diff-algorithms.ts simple-diff-algorithms.ts
    1
    function getSiblingHost(cCs: Array<Component>, index = 0): Node | void {
    2
      for (let j = index + 1; j < cCs.length; j++) {
    3
        const dom = cCs[j].hostElement;
    4
        if (dom) {
    5
          return dom;
  4. cubic-bezier.ts cubic-bezier.ts
    1
    function calcBezier(t: number, p1: number, p2: number): number {
    2
      return (((1 + 3 * p1 - 3 * p2) * t + (-6 * p1 + 3 * p2)) * t + 3 * p1) * t;
    3
    }
    4
    
                  
    5
    const PRECISION = 0.0000001;
  5. shared pointer implementation for ed... shared pointer implementation for education purpose.
    1
    #include <iostream>
    2
    
                  
    3
    template <typename T>
    4
    class shared_ptr
    5
    {