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
# Purpose: | |
# This makefile is designed to compile applications and bootloaders with various toolchains. | |
# | |
# Features: | |
# - Supports compiling applications and bootloaders separately or together. | |
# - Allows specifying different compilers for applications and bootloaders within the same configuration. | |
# - Supports skipping compilation for specific applications or bootloaders using the "none" keyword. | |
# | |
# Configuration Format: | |
# Configurations are specified in the format: |
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
/* | |
Static memory allocator for embedded systems in C with auto fragmentation where malloc is unwanted | |
Author : Eray Ozturk | [email protected] | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
struct BlockHeader { | |
size_t size; |
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
/* | |
Static memory allocator for embedded systems in C++ with auto fragmentation where malloc/new is unwanted | |
Author : Eray Ozturk | [email protected] | |
*/ | |
#include <iostream> | |
#include <cstddef> | |
class StaticMemoryAllocator { | |
public: | |
StaticMemoryAllocator(char* buffer, size_t bufferSize) : buffer_(buffer), bufferSize_(bufferSize), head_(nullptr) { |
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 <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <map> | |
#include <nlohmann/json.hpp> | |
#include <tinyxml2.h> | |
enum class FileFormat { | |
PlainText, | |
CSV, |
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
/* | |
Fractal tree generation/drawing excercise in C++ on Linux X11 with native bitmap format support | |
Author : Eray Ozturk | [email protected] | |
*/ | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <string> | |
#include <iostream> | |
#include <cstring> | |
#include <cmath> |
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
/* | |
This program uses the binance crate in Rust to interact with the Binance API. It fetches the 1-day klines (candlestick data) for the BTCUSDT pair and calculates the RSI (Relative Strength Index) using the compute_rsi function. Finally, it prints the calculated RSI for BTCUSDT on Binance. | |
Note that you'll need to add the binance crate to your Cargo.toml file to use the Binance API in Rust: | |
[dependencies] | |
binance = "0.16.0" | |
Make sure to replace "your_api_key" and "your_secret_key" with your actual Binance API key and secret key. | |
*/ |