Skip to content

Instantly share code, notes, and snippets.

View volodink's full-sized avatar
🏠
Working from home

Konstantin Volodin volodink

🏠
Working from home
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@volodink
volodink / forEach.cpp
Created October 9, 2022 11:19 — forked from victorholt/forEach.cpp
C++ ForEach Example
#include <iostream>
#include <string>
#include <functional>
#include <vector>
template<class ArrayType, class ValueType>
void forEach(const ArrayType& arr, std::function<void(const ValueType&)> callback) {
for (auto entry : arr) {
callback(entry);
}
@volodink
volodink / open-in-gitpod.md
Created March 22, 2022 10:54 — forked from tianhaoz95/open-in-gitpod.md
Code to add a open in Gitpod badge

Here is your awesome Open in Gitpod badge

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])

Open in Gitpod

@volodink
volodink / MSP_ATTITUDE.ino
Created March 5, 2021 09:01 — forked from Xorgon/MSP_ATTITUDE.ino
An Arduino sketch for getting attitude data from a flight controller using MSP.
#include <SoftwareSerial.h>
#define MSP_ATTITUDE 108
SoftwareSerial mspSerial(11, 12); // RX TX
void setup() {
mspSerial.begin(9600);
Serial.begin(9600);
}