Skip to content

Instantly share code, notes, and snippets.

@evalstate
evalstate / mcp-install.ps1
Created December 12, 2024 10:22
Powershell Script to install a Node packaged MCP Server for Claude Desktop
param(
[Parameter(Mandatory=$true)]
[string]$PackageName
)
Write-Host "Starting installation process for $PackageName..."
# Check Claude Desktop folder
Write-Host "Checking Claude Desktop installation..."
$claudeFolder = Join-Path $env:APPDATA "Claude"
@MarkyJD
MarkyJD / color-theme-provider.tsx
Last active December 8, 2025 21:29
Color themes with Next.js and Shadcn UI.
// ! The ColorTehemeProvider must be wrapped with <ThemeProvider /> using next-themes to be able to work with light and dark themes
"use client";
import { createContext, useContext, useEffect, useMemo, useState } from "react";
// To add more themes:
// add css variables to app/globals.css. With the format '.className.light' and '.className.dark'.
// Then add the className to this THEMES array
const THEMES = [
@bhandarisaurav
bhandarisaurav / Merge Multiple PPT VBA
Created September 6, 2018 07:08
Simple VBA Script to merge or combine all the powerpoint files in a folder into a new one! Steps: Open a new presentation file and save it to the folder all the files you want to combine are in (you can move it later) Paste the code into the VBA window Run the InsertAllSlides macro and it will combine them.
Sub InsertAllSlides()
' Insert all slides from all presentations in the same folder as this one
' INTO this one; do not attempt to insert THIS file into itself, though.
Dim vArray() As String
Dim x As Long
' Change "*.PPT" to "*.PPTX" or whatever if necessary:
EnumerateFiles ActivePresentation.Path & "\", "*.PPTX", vArray
@tiwo
tiwo / README.md
Last active October 5, 2025 13:36
ppt2jpeg.vbs: Convert Powerpoint slides to JPEG images

ppt2vbs

export a Powerpoint presentation to JPEG images, one per slide. Used as a workaround to the broken JPEG export in Powerpoint itself, which yields only low quality images.

Usage

You can adjust the image resolution by varying the numerical argument in line 46, in the call to ExportSlides.

Just drag and drop one or more PPT or PPTX files onto the vbs script. The script will process each, showing a short message, and