Skip to content

Instantly share code, notes, and snippets.

View zhiyangyou's full-sized avatar
😀
旦 旦 而 学 之 , 久 而 不 怠 焉

youzhiyang zhiyangyou

😀
旦 旦 而 学 之 , 久 而 不 怠 焉
View GitHub Profile
@zhiyangyou
zhiyangyou / README.md
Created January 26, 2024 14:24 — forked from jose-mdz/README.md
Orthogonal Diagram Connector

Orthogonal Connectors

This algorithm returns the points that form an orthogonal path between two rectangles.

How to Use

// Define shapes
const shapeA = {left: 50,  top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};
@zhiyangyou
zhiyangyou / erc20-token-sample.sol
Created January 4, 2022 09:43 — forked from jcmartinezdev/erc20-token-sample.sol
Necessary code to generate an ERC20 Token
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : LCST
// Name : LCS Token
// Total supply : 100000
// Decimals : 2
// Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe