This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> // Not required for successful compilation, but required for PlatformIO/VS Code indexer to see symbols from this header | |
#include <math.h> | |
double benchmark ( void ); | |
double cpu_time ( void ); | |
void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ); | |
double ddot ( int n, double dx[], int incx, double dy[], int incy ); | |
int dgefa ( double a[], int lda, int n, int ipvt[] ); | |
void dgesl ( double a[], int lda, int n, int ipvt[], double b[], int job ); | |
void dscal ( int n, double sa, double x[], int incx ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
const int I2C_ADDR = 0x50; | |
void dumpEEPROM(bool dumpAsCode = false) | |
{ | |
for (int i = 0; i < 256; i++) { | |
const byte eepromByte = readByte(I2C_ADDR, i); | |
if (dumpAsCode) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(CMakeForceCompiler) | |
# this one is important | |
set(CMAKE_SYSTEM_NAME Generic) | |
# specify the cross compiler | |
SET(CMAKE_C_COMPILER "D:/Downloads/djgpp/bin/i586-pc-msdosdjgpp-gcc.exe") | |
SET(CMAKE_CXX_COMPILER "D:/Downloads/djgpp/bin/i586-pc-msdosdjgpp-g++.exe") | |
# where is the target environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TARGET_DIR=~/Downloads/repos/third-parties | |
TORTOISEHG_VERSION=${5:-stable} | |
prepare() { | |
sudo apt-get -y update | |
sudo apt-get -y install \ | |
curl \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <assert.h> | |
#include <cstdint> | |
#include <memory> | |
class main_window; | |
template <class WndT, class ParamsTuple> | |
LRESULT CALLBACK main_window_proc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { | |
if (message == WM_CREATE) { |