Skip to content

Instantly share code, notes, and snippets.

@mebinum
mebinum / CQRS.md
Created April 22, 2026 05:24 — forked from meigwilym/CQRS.md
CQRS, Task Based UIs, Event Sourcing agh!

CQRS, Task Based UIs, Event Sourcing agh!

Posted by gregyoung on February 16, 2010

Many people have been getting confused over what CQRS is. They look at CQRS as being an architecture; it is not. CQRS is a very simple pattern that enables many opportunities for architecture that may otherwise not exist. CQRS is not eventual consistency, it is not eventing, it is not messaging, it is not having separated models for reading and writing, nor is it using event sourcing. I want to take a few paragraphs to describe first exactly what CQRS is and then how it relates to other patterns.

CQRS Command and Query Responsibility Segregation

Starting with CQRS, CQRS is simply the creation of two objects where there was previously only one. The separation occurs based upon whether the methods are a command or a query (the same definition that is used by Meyer in Command and Query Separation, a command is any method that mutates state and a query is any method that returns a value).

@mebinum
mebinum / GEMINI.md
Created September 10, 2025 06:18 — forked from ksprashu/GEMINI.md
Personal GEMINI.md as on 29-07-2025

Gemini Agent: Core Directives and Operating Protocols

@mebinum
mebinum / GDPR.md
Last active June 24, 2021 04:06
Understanding GDPR

#GDPR

GDPR - General Data Protection Regulation

EU's legislation to strengthen data protection regulations.

What is covered

  • Describe the scope of GDPR
  • Key GDPR personal data protection terms
  • Principles governing personal data protection
@mebinum
mebinum / introrx.md
Created February 17, 2021 05:40 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).immutabilityHelper=e()}}(function(){return function(){return function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=n[a]={exports:{}};t[a][0].call(s.exports,function(e){return o(t[a][1][e]||e)},s,s.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}}()({1:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,
@mebinum
mebinum / keybase.md
Created January 5, 2018 03:51
Keybase id

Keybase proof

I hereby claim:

  • I am mebinum on github.
  • I am oyemike (https://keybase.io/oyemike) on keybase.
  • I have a public key ASBuNXemBpZnI9jUHg6S6aY6p61g8KtA4jFX1DP0AIiX-Qo

To claim this, I am signing this object:

@mebinum
mebinum / gist:96e5893487653a4b34f016c6d365a413
Last active January 4, 2018 04:26
Custom styles for embedded gist in webflow
<style type="text/css">
/**Styles for github gists*/
@media (max-width: 479px) {
blockquote {
max-width: 394px;
overflow: auto;
}
.gist-p {max-width:394px; overflow:auto}
.gist .file-data {max-height: 500px;max-width: 394px;}
}
@mebinum
mebinum / embedgist.js
Last active July 5, 2022 04:21
Code to show to to embed a gist url into Webflow
<script>
// define the load gist function
var loadGist = function(elem) {
var gistUrl = $(elem).text().match(/\bhttps?:\/\/\S+(.js)/gi);
if (typeof gistUrl === 'undefined' || gistUrl === null || gistUrl.length == 0)
return;
//load gist
$(elem).show();
$(elem).empty();
postscribe(elem, '<script src=' + gistUrl+ '><\/script>');
//import the component into your project
import {AzureInstance, AzureLoginView} from 'react-native-azure-ad-2'
//create an AzureInstance object with your Microsoft Azure credentials
var credentials = {
client_id: 'xxxxxxxx',
client_secret: 'xxxxxx',
scope: 'User.ReadBasic.All Mail.Read offline_access' //access scope for login - see http://bit.ly/2gtQe9W for more info
};

Building Wearables Session at CampJS

Programming ESP8266 with EspruinoJS

Getting set up

The boards are flashed with Espruino. Install the CP2102 driver and Espruino IDE from the Chrome extensions store. See Anna's blog for more details.

Use the GPIO pin numbers in the code e.g. pin 4 not D2.