Skip to content

Instantly share code, notes, and snippets.

View Anenth's full-sized avatar
🎯
Busy building apps people love ❤️

Anenth Anenth

🎯
Busy building apps people love ❤️
View GitHub Profile
@Anenth
Anenth / select option styles.css
Created March 27, 2021 06:06
Style browser <select/> <option/>
select {
display: block;
font-size: 12px;
font-family: sans-serif;
font-weight: 600;
color: #4d6178;
line-height: 14px;
padding: 8px 12px 8px 8px;
width: 100%;
max-width: 100%;
@Anenth
Anenth / UserLocationUtils.ts
Created November 10, 2021 04:51
Get IP and Location from the browser js
function getCloudflareJSON(data): Promise<{
fl: string
h: string
ip: string
ts: number
visit_scheme: string
uag: string
colo: string
http: string
loc: string
@Anenth
Anenth / downloadAllImages.js
Last active January 19, 2024 15:44
Download all the image in HTML document
function downloadAllImages(container) {
const imageElements = container.querySelectorAll('img');
if (!imageElements.length) {
console.error('No images found in the container.');
return;
}
for (const imageElement of imageElements) {
const imageUrl = imageElement.src;
@Anenth
Anenth / convertSvgToPng.fish
Created January 19, 2024 16:12
Convert all the svg to png
# Install ImageMagick if not already present
if not command -sq magick
echo "Installing ImageMagick..."
brew install imagemagick
end
# Set the path to the folder containing SVG files
set svg_folder ~/Downloads/path