Skip to content

Instantly share code, notes, and snippets.

View inequation's full-sized avatar
🤔

Leszek Godlewski inequation

🤔
View GitHub Profile
@inequation
inequation / szpark.c
Created May 14, 2012 17:41
Lab AK - SPARC
#include <stdio.h>
#include <stdlib.h>
extern int f(int start, int end, int step);
// a(n) = n * a(n - 1) * (a(n - 2))^2
// a(1) = 3
// a(2) = 4
extern int a(int n);
@inequation
inequation / Neuron.c
Created March 5, 2012 06:13
Sample Vala intermediate C code
// Sample Vala intermediate C code, as compiled from
// https://github.com/inequation/PerceptVala/blob/master/src/Neuron.vala
/* Neuron.c generated by valac 0.12.1, the Vala compiler
* generated from Neuron.vala, do not modify */
#include <glib.h>
#include <glib-object.h>
#include <float.h>
#include "WAVframework.h"//#include "Talkthrough.h"
#include <math.h>
int sample = 0;
float t = 0.f;
int buffer[5000];
#define TARGET_FREQ 30.f