Skip to content

Instantly share code, notes, and snippets.

View JanosGit's full-sized avatar

JanosGit

View GitHub Profile
#include "AsyncSdtinListener.h"
namespace ntlab
{
AsyncStdinListener::AsyncStdinListener ()
{
startTimer (100);
}
void AsyncStdinListener::timerCallback ()
#pragma once
#include <juce_events/juce_events.h>
namespace ntlab
{
/**
* A simple helper class that polls stdin for available characters and calls a callback function if there
* is a new line available from stdin. Make sure to only implement one instance of this in your application.
*/
<code_scheme name="Default" version="173">
<Objective-C>
<option name="NAMESPACE_BRACE_PLACEMENT" value="2" />
<option name="METHOD_BRACE_PLACEMENT" value="2" />
<option name="FUNCTION_BRACE_PLACEMENT" value="2" />
<option name="BLOCK_BRACE_PLACEMENT" value="2" />
<option name="SPACE_BEFORE_POINTER_IN_DECLARATION" value="false" />
<option name="SPACE_AFTER_POINTER_IN_DECLARATION" value="true" />
<option name="SPACE_BEFORE_REFERENCE_IN_DECLARATION" value="false" />
<option name="SPACE_AFTER_REFERENCE_IN_DECLARATION" value="true" />
(kicad_pcb (version 20171130) (host pcbnew "(5.0.0-3-g5ebb6b6)")
(general
(thickness 1.6)
(drawings 21)
(tracks 583)
(zones 0)
(modules 38)
(nets 39)
)
@JanosGit
JanosGit / LogComponent.h
Last active November 20, 2018 07:56
A JUCE component displaying the stdout and stderr on unix systems
// !!!!!!!! Find the final Version here:
https://git.fh-muenster.de/NTLab/CodeReUse/LogComponent4JUCE.git
// Leaving this old first approach here as I posted a link to this to a forum...
/*
==============================================================================
logComponent.h
Created: 18 Dec 2017 3:53:56pm
@JanosGit
JanosGit / SimpleUSRPMultichannelReceiver.cpp
Last active October 17, 2017 12:20
After still having troubles receiving multi channels, I set up a very basic command line tool to record 4 channels simultaniously to 4 bin files. I'm using 2 X300 devices, that are externally clocked & synced.
/*
==============================================================================
This file was auto-generated!
It contains the basic startup code for a Juce application.
==============================================================================
*/