Skip to content

Instantly share code, notes, and snippets.

View Osteri's full-sized avatar

Oskari Teeri Osteri

View GitHub Profile
{
"version": "0.2.0",
"configurations":
[
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/servoprop.elf",
"args": [],
[
{
"name": "ServoProp standalone",
"toolchainFile": "${workspaceFolder}/cmake/Toolchain-servoprop-standalone.cmake"
},
{
"name": "ServoProp with bootloader",
"toolchainFile": "${workspaceFolder}/cmake/Toolchain-servoprop.cmake"
},
{

Language server installations (Fedora)

Python

  • pip3 install pyls --user

start:pyls

Go

  • go get golang.org/x/tools/gopls@latest
  • sudo dnf install golang-x-tools-gopls
#pragma once
#include <iostream>
#include <typeinfo>
#include <mutex>
#include <chrono>
#include "date/include/date/date.h"
/* Template magic: determine if our type is printable. */
#!/bin/bash
#
# Get abbreviation description interactively.
#
# Requirements: program 1, program 2
#
# Example usage:
# ./emv-sanasto.sh abbreviations1.txt abbreviations2.txt
#
# Example output:
// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>
#include <vector>
#include <cassert>
#include <algorithm>
#include <cmath>
template<class T>
T val(uint8_t* arr, const uint8_t bit_offset, const uint8_t bit_len) {
import os
import sys
import re
sys.path.append(os.path.realpath('.'))
from pprint import pprint
import inquirer
questions = [
inquirer.List('size',
import os
import sys
import re
sys.path.append(os.path.realpath('.'))
from pprint import pprint
import inquirer
questions = [
inquirer.List('size',
import os
import sys
import re
sys.path.append(os.path.realpath('.'))
from pprint import pprint
import inquirer
questions = [
inquirer.List('size',
import os
import sys
import re
sys.path.append(os.path.realpath('.'))
from pprint import pprint
import inquirer
questions = [
inquirer.List('size',