Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcus Müller marcusmueller

View GitHub Profile
View line.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.css" type="text/css" />
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.js"></script>
View polysine.py
#!/usr/bin/env python3
# Copyright 2022 Marcus Müller
# SPDX-License-Identifier: LGPL-3.0-or-later
import numpy
from scipy import optimize
from numpy import typing as np_t
def poly_approx(coeff_vec: np_t.ArrayLike,
View audio_detector.grc
options:
parameters:
author: "Marcus M\xFCller"
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: '2022'
description: ''
gen_cmake: 'On'
View sawtoothy.grc
options:
parameters:
author: "Marcus M\xFCller"
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
View sawtoothe_env.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: GPL-3.0
#
# GNU Radio Python Flow Graph
# Title: Sawtooth Enveloper
# Author: Marcus Müller
# GNU Radio version: 3.10.0.0-rc2
View test.cc
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#include <memory>
#ifdef DONT
#define LVL trace
#else
#define LVL warn
#endif
void test_log(std::shared_ptr<spdlog::logger> logger, unsigned int number_of_spiders)
View pi_newton.cc
// Copyright Marcus Müller
// SPDX-License-Identifier: LGPL-3.0-or-later
#include <fmt/format.h>
constexpr unsigned N_SUMMANDS = 9;
constexpr unsigned N_ITER = N_SUMMANDS - 2;
constexpr unsigned long long faculty(unsigned long long n)
{
View newton.cc
#include <fmt/format.h>
constexpr unsigned N_SUMMANDS = 9;
constexpr unsigned N_ITER = N_SUMMANDS - 2;
constexpr unsigned long long faculty(unsigned long long n)
{
return n > 1 ? n * faculty(n - 1) : 1;
}
View Test_grc.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: GPL-3.0
#
# GNU Radio Python Flow Graph
# Title: Test_grc
# Author: oln-ant
# GNU Radio version: 3.8.3.1
View batarang.grc
options:
parameters:
author: "Marcus M\xFCller"
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: "2021 Marcus M\xFCller"
description: ''
gen_cmake: 'On'