Skip to content

Instantly share code, notes, and snippets.

View cocoyen1995's full-sized avatar

Coco Yen cocoyen1995

  • Taipei, Taiwan
View GitHub Profile
@henull
henull / style.css
Last active June 28, 2022 15:40
Darker theme for dangrossman's bootstrap-daterangepicker. (github.com/dangrossman/bootstrap-daterangepicker)
/* Darker Daterange Picker */
.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {
background-color: transparent;
color: rgba(200,200,200,0.5);
}
.daterangepicker {
background-color: inherit;
color: #ebf4f0;
}
@aplz
aplz / draw_text_with_background_opencv.py
Last active September 3, 2023 22:56
draw text with background // opencv
import cv2 # opencv
import numpy as np
font_scale = 1.5
font = cv2.FONT_HERSHEY_PLAIN
# set the rectangle background to white
rectangle_bgr = (255, 255, 255)
# make a black image
img = np.zeros((500, 500))