Skip to content

Instantly share code, notes, and snippets.

View olivier5741's full-sized avatar

Olivier Wouters olivier5741

View GitHub Profile
{
"input": {
"placeholder": "a placeholder"
},
"nav": {
"home": "Home",
"page1": "Page One",
"page2": "Page Two"
}
}
@olivier5741
olivier5741 / FluentValidationAlternative.cs
Last active February 22, 2024 14:31
An alternative library API to FluentValidation
namespace Validation.Tests
{
using System;
using System.Collections.Generic;
using Xunit;
public class User
{
public string Name { get; set; }
public int Age { get; set; }
@olivier5741
olivier5741 / social-based-infection-alert.readme.md
Last active May 13, 2020 12:29
Social based infection alert

Context

Regarding current Covid-19 issue, this is a proposition for a smartphone infection alert system based on social interaction.

Humans are social creatures :

  • They have family and friends they care about
  • They like to gather : meetings, parties, strikes, ...
  • They are always on the move and cross many social places : a bus, a bench in a park, a shop, ...
@olivier5741
olivier5741 / product.json
Last active October 25, 2021 06:14
GS1 product new schema
{
"_id": {
"$oid": "6172b6be68707a71104595f4"
},
"isTradeItemAnOrderableUnit": true,
"allergenInformation": {"isAllergenRelevantDataProvided": true},
"isTradeItemABaseUnit": true,
"unitDescriptorCode": "BASE_UNIT_OR_EACH",
"dutyFeeTaxInformation": {"targetMarketTaxInformations": [{
"taxInformations":[
@olivier5741
olivier5741 / readme.md
Created January 13, 2022 08:36
Short distribution channel product schema through graphQL.

Short distribution channel product schema through graphQL

How to query a product based on its

  • contributors (or main contributors based on their role: Producer, Transformer)
  • categories (a category is part of a classification : GPC, OFN instance classification)
  • ingredients

The proposed graphQL solution :

@olivier5741
olivier5741 / ofn_hook_v0_24_0_beta (2).json
Last active September 15, 2022 11:01
OFN hook v0.18.0 beta
{
"name": "ofn hook v0.24.0 beta",
"nodes": [
{
"parameters": {},
"id": "a9f63be4-fd47-4585-a180-9e8c8047b58d",
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
@olivier5741
olivier5741 / consolidation-context.json
Created September 12, 2022 17:15
Consolidation logCiCa
{
"codes": [
{
"ids": ["ofn_be/country/29"],
"name": "Belgium",
"list": {
"ids": ["iso/country"]
}
}
],
@olivier5741
olivier5741 / off-product-context-before-consolidation.json
Last active November 8, 2022 15:01
Open food facts - context before consolidation in logCiCa
{
"allergens": [
{
"ids": ["off/allergens/en:milk"],
"translations": {
"en": {
"name": "Milk"
},
"fr": {
"name": "Lait"
@olivier5741
olivier5741 / schema.d2
Last active July 19, 2023 15:05
logCiCa 2.0 schema
# Logistics Management System LMS
#
# use classes, the same as interface ... ?
# contact, a party could reference multilple contacts (or one ?)
classes: {
transactionnal: {
style: {
stroke-width: 0
@olivier5741
olivier5741 / diagram.d2
Last active August 23, 2023 09:34
logcica 2.0 activity hierarchy diagram
classes: {
embedded: {
shape: package
}
party: {
shape: image
icon: https://icons.terrastruct.com/essentials%2F365-user.svg
}
subject: {
shape: image