Skip to content

Instantly share code, notes, and snippets.

Avatar
🕹️

Rosario VeganPower

🕹️
View GitHub Profile
@VeganPower
VeganPower / c++Course.md
Created Aug 30, 2020
Low level programming in C++
View c++Course.md

Reference CPU: Multicore AVX 2 capable

Lets' start:

  • Compiler / compile units / linker.
    • Setup makefile
  • Imperative algorithm
  • Understand our processor
    • bit/byte/word/dword/qword
@VeganPower
VeganPower / filter.hpp
Last active May 5, 2018
operator = inheritance
View filter.hpp
#pragma once
#include <type_traits>
#include <functional>
#include "function_traits.hpp"
template<typename T>
struct ViewTraits
{
typedef decltype(std::declval<T>().read()) ViewValue_t;
@VeganPower
VeganPower / Lamp.cpp
Created Jul 24, 2017
reply to /u/TheGoodPlaceJanet
View Lamp.cpp
class UsbLampManager : public LampManager
{
bool switch_lamp(bool turn_on) override;
};
class BluetoothLampManager : public LampManager
{
bool switch_lamp(bool turn_on) override;
};
You can’t perform that action at this time.