Skip to content

Instantly share code, notes, and snippets.

@wolfgangasdf
wolfgangasdf / cztw.m
Created August 16, 2021 09:51
chirp-z transform with matlab
function X = cztw(y,x0,dx,f0,df,M)
% calculates CZT == FFT without sampling restrictions
% computes czt for each *row* in y!
% wolfgang.loeffler@gmail.com
% Based on routine from J. Selva
%(http://www.dsprelated.com/showcode/229.php)
% y: signal at x0,x0+dx,...
% for output fourier field:
@wolfgangasdf
wolfgangasdf / snippet.kt
Created June 7, 2020 09:17
disable App transport security ATS dynamically
// this is in kotlin, very easy to translate to java
val ats = org.eclipse.swt.internal.cocoa.NSDictionary.dictionaryWithObject(
org.eclipse.swt.internal.cocoa.NSNumber.numberWithBool(true),
org.eclipse.swt.internal.cocoa.NSString.stringWith("NSAllowsArbitraryLoads"))
org.eclipse.swt.internal.cocoa.NSBundle.mainBundle().infoDictionary().setValue(
ats, org.eclipse.swt.internal.cocoa.NSString.stringWith("NSAppTransportSecurity"))
@wolfgangasdf
wolfgangasdf / chirpztransform.ipynb
Created January 2, 2019 20:29
Chirp z transform (zoom FFT) with numpy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.