Skip to content

Instantly share code, notes, and snippets.

@mondwan
mondwan / React-basic-digest.md
Last active March 19, 2017 16:41
Knowledge digested from react-basic
A = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
B = [2, 4, 6, 8, 10]
setA = set(A)
setB = set(B)
# C = A ^ B
@mondwan
mondwan / cp_scp_tar_symbolic_link.sh
Created July 23, 2017 13:41
cp and scp and tar and symbolic links
@mondwan
mondwan / my_page_size.py
Last active June 24, 2018 06:09
page size resolution
from reportlab.lib.pagesizes import A5, landscape
# A5 = (210*mm,148*mm)
LANDSCAPE_A5 = landscape(A5)
PAGE_WIDTH = LANDSCAPE_A5[0]
PAGE_HEIGHT = LANDSCAPE_A5[1]
HORIZONTAL_MARGIN = PAGE_WIDTH / 32
VERTICAL_MARGIN = PAGE_HEIGHT / 16