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- / insert_civicrm_county.sql
Created March 27, 2020 10:01
CiviCRM South Africa District and Municipality as County field values
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Frances Baard District');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Dikgatlong Local');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Magareng Local');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Phokwane Local');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Sol Plaatje Local');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'John Taolo Gaetsewe District');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Ga-Segonyana Local');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Gamagara Local');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Joe Morolong Local');
INSERT INTO `civicrm_county` (`state_province_id`, `name`) VALUES ('5139', 'Namakwa District');
@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.
@nickl-
nickl- / gist:11198678
Created April 23, 2014 00:11
keybase.md
### Keybase proof
I hereby claim:
* I am nickl- on github.
* I am nickl (https://keybase.io/nickl) on keybase.
* I have a public key whose fingerprint is 6D00 65D1 995A 0CCE B5EB 899F AA73 BC57 DE7A B31E
To claim this, I am signing this object:
#!/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- / gist:5432541
Created April 22, 2013 05:02
New look Respect/Foundation as a result of menu rendering refactor.
# Respect/Foundation: 0.1.13
General Utilities
=================
project-info:.............Shows project configuration
project-init:.............Initialize current folder and create boilerplate project structure
gitignore:................(Re)create .gitignore file
Source Cleaning
@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- / compounded.php
Created February 6, 2013 17:04
$ time php compounded.php real 5m18.547s user 0m51.590s sys 0m0.490s
<?php
function foo() { return true; }
function bar() { return true; }
function baz() { return false; }
function bat() { return true; }
function lorem() { return true; }
function ipsum() { return true; }
function dolor() { return false; }
function sit() { return false; }
function amet() { return true; }
@nickl-
nickl- / deep-heart.php
Created February 6, 2013 17:03
$ time php deep-heart.php real 4m37.395s user 0m46.954s sys 0m0.434s
<?php
function foo() { return true; }
function bar() { return true; }
function baz() { return false; }
function bat() { return true; }
function lorem() { return true; }
function ipsum() { return true; }
function dolor() { return false; }
function sit() { return false; }
function amet() { return true; }