Skip to content

Instantly share code, notes, and snippets.

View timon-schelling's full-sized avatar

Timon timon-schelling

  • Aachen, Germany
  • 22:23 (UTC +01:00)
View GitHub Profile
{"network_interface":{"network":{"exports":[{"Node":{"node_id":498212907654667144,"output_index":0}}],"nodes":[[11428600169266382646,{"inputs":[{"Node":{"node_id":8649059104327018473,"output_index":0}},{"Value":{"tagged_value":{"DVec2":[0.0,0.0]},"exposed":false}},{"Node":{"node_id":6367129683669719042,"output_index":0}},{"Value":{"tagged_value":{"DVec2":[1.0,1.0]},"exposed":false}},{"Value":{"tagged_value":{"DVec2":[0.0,0.0]},"exposed":false}},{"Value":{"tagged_value":{"DVec2":[0.0,0.0]},"exposed":false}},{"Value":{"tagged_value":{"Bool":true},"exposed":false}}],"call_argument":{"Concrete":{"name":"core::option::Option<alloc::sync::Arc<graphene_core::context::OwnedContextImpl>>","alias":null}},"implementation":{"Network":{"exports":[{"Node":{"node_id":1,"output_index":0}}],"nodes":[[0,{"inputs":[{"Import":{"import_type":{"Generic":"T"},"import_index":0}}],"call_argument":{"Generic":"T"},"implementation":{"ProtoNode":{"name":"graphene_core::memo::MonitorNode"}},"visible":true,"skip_deduplication":true,"contex
@timon-schelling
timon-schelling / manual_dft.m
Created January 15, 2025 17:20
Diskrete Fourier-Transformation
fs = 400; % Sampling frequency (Hz)
T = 1/fs; % Sampling period (s)
L = fs*2; % Length of signal
t = (0:L-1)*T; % Time vector
frequs = randi([0, fs/2], 1, 50);
frequs = sort(frequs);
signal = 0*t;
@timon-schelling
timon-schelling / unicode_encoding_decoding.m
Created December 19, 2024 21:01
unicode encoding decoding
msg = 'hello 🚀';
% --- Encoding Steps ---
byteValues = unicode2native(msg, 'UTF-8');
bitMatrix = dec2bin(byteValues, 8);
allBits = reshape(bitMatrix.', 1, []);
twoBitMatrix = reshape(allBits, 2, []).';
@timon-schelling
timon-schelling / analog_clock.m
Created December 12, 2024 23:34
matlab analog clock
function analog_clock()
fig = figure('Name','Analog Clock (Imag) - Mirrored','NumberTitle','off','Color',[1 1 1]);
ax = axes('Parent',fig);
axis(ax,'equal');
axis(ax,[-1.2 1.2 -1.2 1.2]);
axis off
hold on
th = linspace(0,2*pi,1000);
z_circle = exp(1j*th);