Skip to content

Instantly share code, notes, and snippets.

View vmilea's full-sized avatar

Valentin Milea vmilea

  • Cluj-Napoca, Romania
View GitHub Profile
#include <vk_util.h>
namespace app {
static constexpr uint32_t IMAGE_WIDTH = 256;
static constexpr uint32_t IMAGE_HEIGHT = 64;
static constexpr uint32_t IMAGE_DATA_SIZE = 4 * IMAGE_WIDTH * IMAGE_HEIGHT;
static constexpr VkFormat IMAGE_DATA_FORMAT = VK_FORMAT_R8G8B8A8_UNORM;
VkContext vkContext;
/*
* Copyright (c) 2022 Valentin Milea <[email protected]>
*
* SPDX-License-Identifier: MIT
*/
#include <i2c_fifo.h>
#include <i2c_slave.h>
#include <pico/multicore.h> // add pico_multicore to target_link_libraries
#include <pico/stdlib.h>
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@vmilea
vmilea / gist:5815777
Created June 19, 2013 16:38
how to wrap noncopyable functors as std::function
#include "meta/FunctionTraits.h"
#include <utility>
#include <stdexcept>
#include <functional>
#include <string>
#include <cassert>
template <typename F>
class MoveOnCopyAdapter
{