Skip to content

Instantly share code, notes, and snippets.

View balp's full-sized avatar

Anders Arnholm balp

View GitHub Profile
@balp
balp / example.cpp
Created January 5, 2023 06:13
Arudion Sweden Code Example
#include "Arduino.h"
#include "Timer.h"
cpnst int PIN = 15;
const int LED = 2;
Timer timerHandler;
class RelayReset : public Timer::CallbackInterface {
public:
virtual ~RelayReset() {}
@balp
balp / gist:6bcba56014b39c44d26e22379739859f
Created December 9, 2021 04:44
C++ Arduino Variables:
void loop()
{
static const int WINDOW_SIZE = 32;
double new_value = analog_read(Sensor);
double sliding_window[WINDOW_SIZE] = {0};
}
@balp
balp / CMakeLists.txt
Last active November 11, 2018 09:31
SOLID
cmake_minimum_required(VERSION 3.5.1)
project(solid)
enable_testing()
add_library(single-responsibility
single.cpp
open-closed.cpp
liskov.cpp
)
set_property(TARGET single-responsibility PROPERTY CXX_STANDARD 14)
@balp
balp / bumpme
Last active May 19, 2018 07:49
Sat May 19 07:49:26 UTC 2018

Keybase proof

I hereby claim:

  • I am balp on github.
  • I am balp (https://keybase.io/balp) on keybase.
  • I have a public key ASBicu566de_iKg5p4a_LsEU4ntopZPDrkWNeOiEWvr40Qo

To claim this, I am signing this object:

//
// BowlingGame.swift
// BowlingSwift-07
//
// Created by Anders Arnholm on 2015-03-25.
// Copyright (c) 2015 HiQ. All rights reserved.
//
import Foundation