Skip to content

Instantly share code, notes, and snippets.

View an-dr's full-sized avatar
🦖
___🌵_____🌵_🌵_____🌵_

Andrei Gramakov an-dr

🦖
___🌵_____🌵_🌵_____🌵_
View GitHub Profile
#include <Arduino.h>
int getChar(FILE *fp) {
while (!(Serial.available()))
;
return (Serial.read());
}
int putChar(char c, FILE *fp) {
if (c == '\n') {
@an-dr
an-dr / 7-zip-default-extract.reg
Created February 20, 2020 07:03 — forked from zabbarob/7-zip-default-extract.reg
Make 7-Zip extract to folder when double-clicking archives. (based on http://superuser.com/a/447791)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\7-Zip.001\shell]
@="extract"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract]
@="Extract to Folder"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract\command]
@="\"C:\\Program Files\\7-Zip\\7zG.exe\" x \"%1\" -o*"
[HKEY_CLASSES_ROOT\7-Zip.7z\shell]
@an-dr
an-dr / Makefile
Created November 18, 2020 19:24 — forked from superjax/Makefile
Makefile Template for compiling C/C++ for use with STM32 Microcontrollers
# Copyright (c) 2016, James Jackson
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation