Skip to content

Instantly share code, notes, and snippets.

View CrushedPixel's full-sized avatar

Marius Metzger CrushedPixel

View GitHub Profile
@CrushedPixel
CrushedPixel / LICENSE
Created December 10, 2024 21:06
Essential Installer CLA
Essential Installer™
Use and Contribution License Agreement
Last Updated: 28th November 2024
This Use and Contribution License Agreement allows you to modify,
create, fork, and use new versions of our Essential Installer mod in
accordance with the GPL-3 License. However, if you submit a pull
request with changes or additions to the main Essential Installer
repository, subject to the terms of this license, you transfer the
@CrushedPixel
CrushedPixel / CMakeLists.txt
Created October 9, 2024 20:18
Demonstrates how to use clap-wrapper to build an AUv2 plugin from a CLAP plugin.
cmake_minimum_required(VERSION 3.15)
project(gain) # <-- change me
# this CMakeLists.txt has a "gain_auv2" target that
# converts the "gain.clap" file into AUv2 plugin "gain.component".
# assumes the "gain.clap" file is located next to this CMakeLists.txt
set(CLAP_PLUGIN_PATH "${CMAKE_CURRENT_SOURCE_DIR}/gain.clap") # <-- change me
# the following lines are required to build AU SDK on macOS
@CrushedPixel
CrushedPixel / audio_dsl.swift
Created September 27, 2024 12:24
How I would like to define audio plugins
// first, let's define some types.
// many of these would be built into a framework
// and the user can just use them
type PoleType : EnumDefinition {
LowPass = 0
LowShelf = 1
HighPass = 2
HighShelf = 3
Peak = 4
Essential Loader™
Use and Contribution License Agreement
4th April 2024
ModCore Inc., doing business as Essential (“Essential”), owns,
publishes, and make available for download and use its Essential
Loader™ modification to the Minecraft® game (collectively with all of
its features and content and all updates thereto and versions thereof,
the “Mod”), including its underlying source code (collectively with
all updates thereto and versions thereof, the “Mod Code”), subject to
scene = new THREE.Scene()
camera = new THREE.PerspectiveCamera(70, window.innerWidth/window.innerHeight, 0.1, 1000)
renderer = new THREE.WebGLRenderer()
renderer.setSize(window.innerWidth, window.innerHeight)
renderer.setClearColorHex(0x000000, 1)
$('div.viewport').append(renderer.domElement)
$(window).resize ->
camera = new THREE.PerspectiveCamera(70, window.innerWidth/window.innerHeight, 0.1, 1000)
@CrushedPixel
CrushedPixel / AppleScript: set theme of JetBrains IDEs (CLion, IntelliJ)
Last active September 27, 2018 16:19
AppleScript code to set the theme of a JetBrains IDE, in my case CLion. I use this with an Automator Action to change to Dark/Light Mode in macOS Mojave and change the CLion theme at the same time. The code in action: https://streamable.com/0wrvn
on run {input, parameters}
tell application "System Events" to set frontmost of process "CLion" to true
tell application "System Events"
tell process "CLion"
-- close the preferences window if it's open
key code 53 -- esc
delay 0.5