Skip to content

Instantly share code, notes, and snippets.

View oychao's full-sized avatar
🏸
Badminton

ouyang-chao oychao

🏸
Badminton
View GitHub Profile
@oychao
oychao / react.demo.html
Created February 3, 2020 02:49
React Demo HTML Doc
<!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>React Demo</title>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
@oychao
oychao / visitor.ts
Created January 24, 2020 07:11
Visitor Pattern
enum Category {
PlusType = 'Plus',
MinusType = 'Minus',
MultiplyType = 'Multiply',
DivideType = 'Divide',
}
interface AbsNode {
cate: Category;
value: number;
@oychao
oychao / index.js
Created February 20, 2019 07:12
keyed list diff algorithm created by charlesouyang - https://repl.it/@charlesouyang/keyed-list-diff-algorithm
// actions constants
const REMOVE = 'REMOVE';
const INSERT = 'INSERT';
const MOVE = 'MOVE';
/**
* calculate LIS (positive numbers only)
* @param arr array of number
*/
const calcLis = function (arr) {
@oychao
oychao / _tamper monkey scripts.md
Last active December 11, 2018 04:35
tamper monkey scripts

temper monkey scripts

@oychao
oychao / _doker commands.md
Last active January 18, 2023 06:40
docker commands

docker commands

@oychao
oychao / _nginx configuration demos.md
Last active February 1, 2019 07:42
nginx configuration

nginx configuration demos

@oychao
oychao / _ubuntu shells and normal configurations.md
Last active July 18, 2019 10:04
some ubuntu commands and normal configurations after system installed

Ubuntu/Mac shells and normal configurations

@oychao
oychao / _learn react and vue.md
Last active December 11, 2018 04:40
learn react and vue

learn react and vue

@oychao
oychao / _front end scripts.md
Last active December 11, 2018 04:39
frontend html5 demos

frontend html5 demos