Skip to content

Instantly share code, notes, and snippets.

View ChandanShakya's full-sized avatar
💤
Sleeping

Chandan Shakya ChandanShakya

💤
Sleeping
View GitHub Profile
@ChandanShakya
ChandanShakya / practicalSheet.py
Created September 14, 2024 12:44
Python script to create a excel sheet for practical of Data Analysis and Visualization
import pandas as pd
from openpyxl import Workbook
from openpyxl.styles import Alignment
# Create a workbook and get the active worksheet
wb = Workbook()
ws = wb.active
# Define the data for each practical
practicals = {
@ChandanShakya
ChandanShakya / Microsoft.PowerShell_profile.ps1
Created September 14, 2024 12:46
Powershell alias for conversion using ffmpeg
function ConvertVideoWithCV {
param (
[string]$inputFile,
[string]$outputFile
)
if ([string]::IsNullOrEmpty($inputFile) -or [string]::IsNullOrEmpty($outputFile)) {
Write-Host "Invalid input. Please provide both input and output file paths."
return
}
@ChandanShakya
ChandanShakya / generate_splashes.sh
Created April 21, 2025 19:30
SVG to App Icons & Splash Screens Generator (Inkscape + ImageMagick)
#!/bin/bash
INPUT="app-icon.svg"
OUTPUT_DIR="./images/icons"
TEMP_ICON="icon.png"
TEMP_ICON_SIZE=1024
mkdir -p "$OUTPUT_DIR"
declare -A icon_sizes=(