Skip to content

Instantly share code, notes, and snippets.

View DaveChambers's full-sized avatar
☃️

Dave Chambers DaveChambers

☃️
View GitHub Profile
@DaveChambers
DaveChambers / AudioLoading.cpp
Created September 27, 2023 15:15 — forked from jatinchowdhury18/AudioLoading.cpp
Loading audio files from BinaryData (JUCE/C++)
// loading audio file "guitar.wav"
AudioFormatManager formatManager;
formatManager.registerBasicFormats();
// normal way
File audioFile ("/path/to/guitar.wav");
FileInputStream* input = audioFile.createInputStream();
AudioFormatReader* reader = formatManager.createReaderFor (input);
// from the reader we can load into an audio buffer, etc...
@DaveChambers
DaveChambers / README.MD
Created July 12, 2022 21:53 — forked from AstralJohn/Reset Udemy Progress.md
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 02/11/2022

Step 1. Go to Udemy course in browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave

@DaveChambers
DaveChambers / add_debug_entitlement.sh
Created August 2, 2021 17:55 — forked from talaviram/add_debug_entitlement.sh
Simple Utility Script for allowing debug of hardened macOS apps.
#! /bin/bash
# Simple Utility Script for allowing debug of hardened macOS apps.
# This is useful mostly for plug-in developer that would like keep developing without turning SIP off.
# Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg
app_path=$1
if [ -z "$app_path" ];
then
echo "You need to specify app to re-codesign!"
exit 0
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->