Skip to content

Instantly share code, notes, and snippets.

View sfreytag's full-sized avatar

Simon Freytag sfreytag

View GitHub Profile
@sfreytag
sfreytag / vite.config.js
Created January 29, 2025 14:45
Vite build time white labelling
// vite.config.js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { viteStaticCopy } from 'vite-plugin-static-copy'
import { loadEnv } from 'vite'
import { join } from 'path'
export default () => {
// Load the env
@sfreytag
sfreytag / Yuml.me generator for Python class inheritance
Created November 2, 2011 14:15
Generate a http://yuml.me definition of Django's class-based views to get a nice class diagram of those views.
"""
Generate a http://yuml.me definition of Django's class-based views to get a
nice class diagram of those views.
"""
# This runs as a script, but in my Django project root, so import the settings
import settings
import inspect
import django.views.generic.list as list_views