Skip to content

Instantly share code, notes, and snippets.

View nickl-'s full-sized avatar

Nick Lombard nickl-

View GitHub Profile
@nickl-
nickl- / Comparison Espressif ESP MCUs.md
Last active December 24, 2023 15:38 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

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
@nickl-
nickl- / Comparison Espressif ESP MCUs.md
Created May 9, 2022 21:55 — forked from sekcompsci/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

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
@nickl-
nickl- / UUID.php
Last active February 6, 2024 00:24 — forked from dahnielson/UUID.php
Pure PHP UUID generator
<?php
/**
* UUID class
*
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
*
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.
#!/bin/bash
# You will need to make this file executable (chmod +x) and run it with sudo
# Optionally supply the version number you want to build
[[ $1 ]] && VERSION=$1 || VERSION=R16B03-1
apt-get update
apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
mkdir -p /src/erlang
cd /src/erlang
wget -c http://www.erlang.org/download/otp_src_${VERSION}.tar.gz
tar zxvf otp_src_${VERSION}.tar.gz
@nickl-
nickl- / FluentCache.php
Last active December 13, 2015 23:59 — forked from alganet/FluentCache.php
The SimpleCache interface which enables cache invalidate and exposes a single method seen to manage get, save, saveAll, and delete. Simplicity is one goal but this enables us to easily extend your Cache implementation with SimpleCacheApc, SimpleCacheMemcached, SimpleCacheRedis, SimpleCacheElasticSearch, etc. of the same SimpleCache interface.
<?php
interface SimpleCache {
function seen($key, $value=false);
function invalidate($key=false, DateTime $expire=null);
}
class FluentCache extends \ArrayObject implements SimpleCache
{
private $cache,
@nickl-
nickl- / router.php
Created July 13, 2012 13:46 — forked from alganet/router.php
Another approach to multiple paths
<?php
$paths = array(
'/users',
'/users/*',
'/users/*/lists',
'/users/*/lists/*',
);
// Multiple paths handled by single callback
$r3->any($paths, function ($userId=null,$listId=null) {/***/}