A minimal table to compare the Espressif's MCU families.
ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | |
---|---|---|---|---|---|---|
Announcement Date | 2014, August | 2016, September | 2019, September | 2020, December |
In this article we compared different behavior of static
, inline
and static inline
free functions in compiled binary.
All the following test was done under g++ 7.1.1 on Linux amd64, ELF64.
#pragma once
inline int only_inline() { return 42; }
static int only_static() { return 42; }
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme id="darcula" _name="Darcula" version="1.0"> | |
<author>Sash0k</author> | |
<_description>Dark color scheme using IntelliJ IDEA colors</_description> | |
<!-- Scribe Theme Generator 1.3 --> | |
<!-- COLORS --> | |
<color name="comment_color" value="#629755"/> |
QTabWidget::pane { | |
border: 1px solid black; | |
background: white; | |
} | |
QTabWidget::tab-bar:top { | |
top: 1px; | |
} | |
QTabWidget::tab-bar:bottom { |
// g++ -std=c++14 -o gtkmm-example gtkmm-example.cpp `pkg-config --cflags --libs gtkmm-3.0` | |
#include <memory> | |
#include <gtkmm.h> | |
class MainWindow : public Gtk::ApplicationWindow { | |
public: | |
MainWindow(BaseObjectType* obj, Glib::RefPtr<Gtk::Builder> const& builder) | |
: Gtk::ApplicationWindow(obj) | |
, builder{builder} |
Swappiness controls the tendancy the kernel wishes to swap.
Even with free memory the kernel may swap.
100 means aggressively swap 0 means wait until the last minute to swap
To check current swappiness
cat /proc/sys/vm/swappiness
To remove a submodule you need to:
pacman -S wget # needed for debootstrap | |
curl -o /tmp/db.deb http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.60~bpo70+1_all.deb | |
mkdir /opt/debootstrap | |
cd /opt/debootstrap | |
ar x /tmp/db.deb | |
tar xf data.tar.gz | |
mkdir /opt/debian |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
// Copyright (c) 2014, Jan Winkler <winkler@cs.uni-bremen.de> | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// | |
// * Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer. | |
// * Redistributions in binary form must reproduce the above copyright | |
// notice, this list of conditions and the following disclaimer in the |