Skip to content

Instantly share code, notes, and snippets.

View BradKML's full-sized avatar

Brad BradKML

View GitHub Profile
@ruvnet
ruvnet / Readme.md
Last active August 21, 2025 01:20
Dual-Version Code Generator. This tool creates two versions of a function: a standard implementation and an AI-optimized version

README.md - Dual-Version Function Generator

Introduction

Welcome to the Dual-Version Function Generator, a specialized prompt designed for ChatGPT's GPT system. This tool is crafted to empower users, especially developers and programming enthusiasts, to generate two distinct versions of a function based on their input. It's an innovative approach to visualizing and understanding different coding methodologies within the GPT framework.

About the Prompt

The Dual-Version Function Generator serves as a versatile tool within the ChatGPT environment. It creates:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zentralwerkstatt
zentralwerkstatt / instructions.md
Last active October 3, 2022 08:58
Run Streamlit apps from within Google Colab
!pip install streamlit
!npm install localtunnel
!streamlit run http://app.py &>/dev/null&
!npx localtunnel --port 8501
@coleww
coleww / onek
Created August 31, 2014 17:11
1,000 lines of A Thousand Plateaus
and the sequence of nucleic units, with binary relations between units of the same type and biunivocal relationships between units of different types. Thus there are always two articulations, two segmentarities, two kinds of multiplicity, each of which brings into play both forms and substances. But the distribution of these two articulations is not constant, even within the same stratum.
"before" the State, and of the State "after" the primitive peoples—as if the two waves that seem to us to exclude or succeed each other unfolded simultaneously in an "archaeological," micropo-litical, micrological, molecular field.
(segmentometers), and conversions into lines of death (deleometers). Thus there is a whole process of selection of assemblages
A becoming is not a correspondence between relations. But neither is it a resemblance, an imitation, or, at the limit, an identification. The whole
a continuous variation for a discontinuous variable ... A variable can be continuous over a portion of its trajectory,
@endolith
endolith / readme.md
Last active October 29, 2025 09:03
Sethares dissmeasure function in Python

Adaptation of Sethares' dissonance measurement function to Python

Example is meant to match the curve in Figure 3:

Figure 3

Original model used products of the two amplitudes a1⋅a2, but this was changed to minimum of the two amplitudes min(a1, a2), as explained in G: Analysis of the Time Domain Model appendix of Tuning, Timbre, Spectrum, Scale.

This weighting is incorporated into the dissonance model (E.2) by assuming that the roughness is proportional to the loudness of the beating. ... Thus, the amplitude of the beating is given by the minimum of the two amplitudes.