Skip to content

Instantly share code, notes, and snippets.

View thoni56's full-sized avatar

Thomas Nilefalk thoni56

View GitHub Profile
@thoni56
thoni56 / dai.alan
Created April 5, 2021 10:20
Alan italian synonyms problem example
Synonyms
dal, dallo, dalla, 'dall''', dall, dagli, dalle = da.
la = 'the'.
al = a.
Syntax dai_a = dai (ogg) a (png).
Syntax guarda_fuori_da = guarda fuori da (ogg).
Add To Every object
/***********************************************************************\
Program to spy on a stdin/stdout pipe communication between two
processes, the caller and the target.
thoni56/Thomas Nilefalk - January 2020
Make the caller call this program instead of the real target and
ensure that the TARGET variable points to the target using a full
path.
@thoni56
thoni56 / 96.c
Last active November 15, 2016 08:44
Cgreen floating point mock test
#include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
double foobar(void) {return (double)mock();}
double test_func(void)
{
return foobar();
}
Ensure(foobar_returns_floating_point_from_literal)