Skip to content

Instantly share code, notes, and snippets.

View Wohlstand's full-sized avatar
🦊

Vitaly Novichkov Wohlstand

🦊
View GitHub Profile
#include "osc.h"
#include "utility/arithmetic.h"
#include <math.h>
#pragma message("TODO implement OSC")
namespace cws80 {
// resolution per interval of a semitone
static constexpr uint osc_phi_oversample = 8;
@djhaskin987
djhaskin987 / get_exe_version.c
Created January 27, 2016 19:08
Get version from EXE file on linux
/* Distributed under the CC-wiki license.
* user contributions licensed under cc by-sa 3.0 with attribution required: https://creativecommons.org/licenses/by-sa/3.0/
* Originally taken from the answer by @rodrigo, found here: http://stackoverflow.com/a/12486703/850326
*/
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include <stdint.h>
#include <sys/stat.h>
@aspyct
aspyct / common.h
Created July 15, 2012 22:00
Unix semaphore with the C programming language, tested under Debian
#ifndef _COMMON_H_
#define _COMMON_H_
#define SEM_KEY_FILE ("sem.key")
#endif /* _COMMON_H_ */