Skip to content

Instantly share code, notes, and snippets.

View hellvesper's full-sized avatar

Vitaly hellvesper

View GitHub Profile
@glegrain
glegrain / uart.c
Last active December 22, 2025 19:12
STM32 printf retarget to UART
/*# 1- Identify the UART interface, GPIO pins and Alternate Function #########*/
/* For example:
* B-L475E-IOT01A:
* PB6 ------> USART1_TX
* PB7 ------> USART1_RX
*
* NUCLEO-L476RG:
* PA2 ------> USART2_TX
* PA3 ------> USART2_RX
*
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active May 17, 2026 03:47 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@hlorand
hlorand / vidstab_ffmpeg.md
Last active April 4, 2026 18:21
Video stabilization using VidStab and FFMPEG

Video stabilization using VidStab and FFMPEG

** Step 1 **

Install ffmpeg with the vidstab plugin.

@Edudjr
Edudjr / Drink.swift
Created August 9, 2019 11:27
Codable/Decodable example for parsing JSON with optional parameters
class Drink: Codable {
var name: String
var color: String?
private enum CodingKeys: String, CodingKey {
case name, color
}
required init(from decoder: Decoder) throws {
let values = try decoder.container(keyedBy: CodingKeys.self)