Skip to content

Instantly share code, notes, and snippets.

View z-rui's full-sized avatar

张睿 Zhang Rui z-rui

View GitHub Profile
--- dmenu.c.orig 2015-11-09 06:42:21.000000000 +0800
+++ dmenu.c 2016-05-10 01:46:51.139220000 +0800
@@ -117,7 +117,6 @@
static void
drawmenu(void)
{
- int curpos;
struct item *item;
int x = 0, y = 0, h = bh, w;
@z-rui
z-rui / fft.c
Created December 16, 2015 02:10
Fast Fourier Transform in C99
#include <math.h>
#include "fft.h"
#ifndef M_PI
# define M_PI 3.14159265358979323846264338327950288
#endif
void fft(complex *v, int n, enum fft_direction sgn, complex *tmp)
{
int k;
@z-rui
z-rui / gtk-build.mak
Last active June 1, 2018 11:47
GTK+ Build script for Msys2
CURL=curl -L
TAR=tar
MAKEOPTS=-j2
prefix=$(shell pwd)/gtk-root
export PKG_CONFIG_PATH=$(prefix)/lib/pkgconfig
# some stupid configure scripts requires shared library
# available even if it is installed to a non-standard