Skip to content

Instantly share code, notes, and snippets.

View michelp's full-sized avatar

Michel Pelletier michelp

  • Portland, OR
View GitHub Profile
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph as pg
import scipy.ndimage as ndi
import numpy as np
from scipy import signal
import bladeRF
device = bladeRF.Device()
device.rx.config(bladeRF.FORMAT_SC16_Q12, 64, 16384, 16, 3500)
device.rx.enabled = True
@mhaberler
mhaberler / zsigfd.c
Last active January 3, 2016 06:59
example for synchronous signal processing with czmq/zloop using signalfd(2)
// example for synchronous signal processing with czmq/zloop using signalfd(2)
// Michael Haberler 1/2014
#include <czmq.h>
#include <sys/signalfd.h>
int signo;
static int s_handle_signal(zloop_t *loop, zmq_pollitem_t *poller, void *arg)
{
@codeslinger
codeslinger / black-scholes.c
Created July 12, 2010 02:50 — forked from ecounysis/LICENSE.txt
Black-Scholes Option Pricing Model in C
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
double Normal(double);
double N(double, double, double, double, double);
double delta(double, double, double, double, double);
double delta2(double, double, double);
double ND2(double, double, double);