Skip to content

Instantly share code, notes, and snippets.

@aleksas
aleksas / CMakeLists.txt
Last active November 12, 2020 22:30 — forked from sehe/Makefile
Boost shared memory lockfree circular buffer queue
cmake_minimum_required(VERSION 3.0.0)
project(circular-buffer-queue VERSION 0.1.0)
set(Boost_USE_MULTITHREADED OFF)
add_definitions(-DBOOST_ALL_NO_LIB)
find_package( Boost 1.54 COMPONENTS system thread REQUIRED )
include_directories(${Boost_INCLUDE_DIRS})
set(LINK_LIBRARIES
@aleksas
aleksas / arduino-due_high-speed-ADC.ino
Last active March 12, 2021 09:40 — forked from pklaus/arduino-due_high-speed-ADC.ino
Arduino Due: ADC → DMA → USB @ 1MSPS
#undef HID_ENABLED
// Arduino Due ADC->DMA->USB 1MSPS
// by stimmer
// from http://forum.arduino.cc/index.php?topic=137635.msg1136315#msg1136315
// Input: Analog in A0
// Output: Raw stream of uint16_t in range 0-4095 on Native USB Serial/ACM
// on linux, to stop the OS cooking your data:
// stty -F /dev/ttyACM0 raw -iexten -echo -echoe -echok -echoctl -echoke -onlcr
@aleksas
aleksas / tapino_būdas.ipynb
Last active October 8, 2016 09:35 — forked from sirex/tapino_būdas.ipynb
2016 metų Seimo rinkimų kandidatų analizė
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.