Skip to content

Instantly share code, notes, and snippets.

View sharadcodes's full-sized avatar
✔️
Verified Serial Programmer

Sharad Raj sharadcodes

✔️
Verified Serial Programmer
View GitHub Profile
@sharadcodes
sharadcodes / augment.py
Created September 8, 2023 10:22
CV2 AUGMENTATION - SOBEL, CANNY, GRAY
import cv2
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path
data_dir = Path('E:\DSVV\MCA\SEM_3\ML\project\experimental\yolov8\dataset\original')
aug_dir = Path('E:\\DSVV\\MCA\\SEM_3\\ML\\project\\experimental\\yolov8\\dataset\\augmented')
data_dir
@sharadcodes
sharadcodes / pyramid_line_pyramid_pattern.cpp
Last active November 26, 2022 02:55
Random question of pattern
/*
Enter num: 1
*
Enter num: 3
*
* * *
*
let data = []
document.querySelectorAll("#ctl00_bps_homeCPH_dluniversity > tbody td").forEach(td=>{
const entry = {
name: td.querySelectorAll('.SERO-box')[1]?.querySelector('h5')?.parentNode?.parentNode?.parentNode?.querySelector('b').innerText.trim(),
address: td.querySelectorAll('.SERO-box')[1]?.querySelector('h5')?.parentNode?.parentNode?.parentNode?.querySelector('div.box200').innerText.trim(),
designation: td.querySelectorAll('.SERO-box')[1]?.querySelector('h5').innerText.trim(),
person_name: td.querySelectorAll('.SERO-box')[1]?.querySelector('blockquote:nth-child(2)')?.querySelector('.fa-user').parentNode.innerText.trim(),
email: td.querySelectorAll('.SERO-box')[1]?.querySelector('blockquote:nth-child(2)')?.querySelector('.fa-envelope').parentNode.innerText.trim(),
phone: td.querySelectorAll('.SERO-box')[1]?.querySelector('blockquote:nth-child(2)')?.querySelector('.fa-phone').parentNode.innerText.trim(),
}
@sharadcodes
sharadcodes / syntax.css
Created December 21, 2018 13:02 — forked from wdullaer/syntax.css
Monokai Syntax CSS theme
/* Adjusted to give override background and text colour */
.highlight pre, pre, .highlight .hll {
background-color: #49483E;
border: 1px solid #ccc;
padding: 6px 10px;
border-radius: 3px;
color: #FFFFFF;
}
.gist pre {