Skip to content

Instantly share code, notes, and snippets.

View thynson's full-sized avatar

Xingcan LAN thynson

  • Li Auto
  • Beijing, China
View GitHub Profile
@fp64
fp64 / u32noise.h
Last active March 27, 2023 08:48
// Public Domain under http://unlicense.org, see link for details.
// Several stateless PRNGs.
// Emphatically NOT cryptographically secure.
#ifndef U32NOISE_H
#define U32NOISE_H
#include <stdint.h>
@kamikat
kamikat / ProgressCircle.java
Created July 28, 2014 06:18
Implement circle progress indicator view on android.
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
public class ProgressCircle extends View {