Skip to content

Instantly share code, notes, and snippets.

View calebklc's full-sized avatar
🤯
I may be slow to respond.

KwanLam Chan calebklc

🤯
I may be slow to respond.
  • Hong Kong
  • 22:41 (UTC +08:00)
View GitHub Profile
@calebklc
calebklc / README-Template.md
Created April 15, 2019 06:04 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>data</title>
</head>
<body>
<iframe
@calebklc
calebklc / AntdInput.js
Last active February 24, 2020 16:27
Question about dynamic fields in ArrayField
import React from 'react';
import { asField } from 'informed';
import { Form, Input } from 'antd';
const AntdInput = asField(({ fieldState, fieldApi, ...props }) => {
const { value } = fieldState;
const { setValue, setTouched } = fieldApi;
const {
onChange,
onBlur,
@calebklc
calebklc / README.md
Created March 19, 2020 15:23 — forked from nicejade/README.md
Generate a good README

Generate a good README

Generate a good README use `npx` commmd.

```language
Object.flatten = function(obj){
var result = {};
function recurse(src, prop) {
var toString = Object.prototype.toString;
if (toString.call(src) == '[object Object]') {
var isEmpty = true;
for (var p in src) {
isEmpty = false;