This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 8ed9bc5..ce7842f 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -14,7 +14,7 @@ project ("clither" | |
############################################################################### | |
include (CMakeDependentOption) | |
-option (CLITHER_BENCHMARKS "Compile benchmarks (requires C++)" ON) | |
+option (CLITHER_BENCHMARKS "Compile benchmarks (requires C++)" OFF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.10) | |
set(CMAKE_CXX_STANDARD 20) | |
set(CMAKE_CXX_STANDARD_REQUIRED True) | |
# Set the project name and version | |
project(webrtcvad VERSION 2.0.14) | |
# Define the source files (excluding pywebrtcvad.c) | |
file(GLOB VAD_SOURCES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// clang++ -o x x.cpp -framework CoreAudio -framework AudioToolbox | |
#include <iostream> | |
#include <cmath> | |
#include <fstream> | |
#include <AudioToolbox/AudioToolbox.h> | |
constexpr float kSineFrequency = 440.0f; // 440Hz sinewave | |
constexpr float kSampleRate = 48000.0f; // Sample rate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MainComponent.h" | |
#include <AudioToolbox/AudioToolbox.h> | |
#include <CoreAudio/CoreAudio.h> | |
#include <AudioUnit/AudioUnit.h> | |
#include <cmath> | |
// SineWaveGenerator methods | |
SineWaveGenerator::SineWaveGenerator() : currentAngle(0.0), angleDelta(0.0) {} | |
void SineWaveGenerator::setFrequency(float frequency, double sampleRate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.venv) | |
pi@πlocal ~/code/2024/kit/kit/Gin master | |
> git diff | |
diff --git a/modules/gin_network/network/gin_asyncwebsocket.cpp b/modules/gin_network/network/gin_asyncwebsocket.cpp | |
index 15be54251e..f3a8f057ac 100644 | |
--- a/modules/gin_network/network/gin_asyncwebsocket.cpp | |
+++ b/modules/gin_network/network/gin_asyncwebsocket.cpp | |
@@ -6,8 +6,8 @@ | |
==============================================================================*/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from io import StringIO | |
from ruamel.yaml import YAML # pip install ruamel.yaml | |
def my_string_representer(dumper, data): | |
# '' generates `my_multiline: |-` and works perfectly | |
# '\n' generates `my_multiline: |` but load(save(J)) != J due to trailing | |
FIX = '' | |
is_multiline = '\n' in data | |
return dumper.represent_scalar( | |
'tag:yaml.org,2002:str', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
train: | |
- input: |- | |
🔵 🔴 🟢 ⚫️ ⚫️ ⚫️ ⚫️ | |
🔴 🟢 ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ | |
🟢 ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ | |
⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ | |
⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ | |
⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ | |
⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ ⚫️ | |
output: |- |
NewerOlder