Skip to content

Instantly share code, notes, and snippets.

View VincentChalnot's full-sized avatar
🛠️
Open to work

Vincent Chalnot VincentChalnot

🛠️
Open to work
View GitHub Profile
@VincentChalnot
VincentChalnot / theoretical_foundations.md
Created July 9, 2026 19:55
Theoretical Foundations of a Conversation-Derived Knowledge Graph

Theoretical Foundations of a Conversation-Derived Knowledge Graph

Why This Architecture Is Well-Grounded — and What Is Still Open


1. The Episodic / Semantic Distinction Is the Core Architectural Decision

The most important theoretical anchor for this project comes from Tulving's 1972 distinction between episodic memory and semantic memory — a framework that remains central in cognitive neuroscience and has been directly applied to

@VincentChalnot
VincentChalnot / dungeon.md
Last active August 25, 2023 14:29
Partie de Donjon & Dragon entre ChatGPT et lui-même

Player:

Commençons l'aventure !

Dungeon Master:

Tu te trouves dans une petite ville appelée Brisevent, située au pied des montagnes. La ville est entourée de vastes forêts denses et de rivières sinueuses. Les maisons en bois sont dispersées le long des rues pavées, et une taverne animée se dresse au centre de la place principale. Les habitants vaquent à leurs occupations quotidiennes, certains travaillent dans les champs, d'autres vendent leurs marchandises sur les étals du marché.

Alors que tu te promènes dans la ville, tu remarques une affiche clouée à un poteau. Elle annonce que le seigneur local recherche des aventuriers pour une mission périlleuse. Il offre une récompense généreuse à ceux qui réussiront à récupérer un artefact mystérieux dans les profondeurs d'une ancienne mine abandonnée, située à quelques kilomètres de la ville.

@VincentChalnot
VincentChalnot / CsvFile.php
Created June 28, 2018 15:34
Forcing enclosure on Csv file writer
<?php
namespace Filesystem;
/**
* Extends the native class to add a few features such as 'force_enclosure'
*/
class CsvFile extends \CleverAge\ProcessBundle\Filesystem\CsvFile
{
/** @var bool */
@VincentChalnot
VincentChalnot / screely.html
Created May 22, 2018 16:43
Screely html challenge in 5min
<html>
<style>
body {
background-color: #8feada;
}
.container {
margin: 100px auto;
width: 50%;
border-radius: 8px;
#!/bin/bash
set -e
ROOT=$(dirname $0) # The directory of the script
cd $ROOT/.. # Cd to proper directory
export LC_ALL=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LANGUAGE=fr_FR
@VincentChalnot
VincentChalnot / User.php
Created July 20, 2016 11:54
User class example for Sidus/EncryptionBundle with FOS/UserBundle
<?php
namespace MyNameSpace\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser;
use Sidus\EncryptionBundle\Entity\UserEncryptionProviderInterface;
/**
* @ORM\Entity(repositoryClass="MyNameSpace\UserBundle\Entity\UserRepository")
<?php
namespace Sidus\BatchIteratorBundle\Command;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\Query;
use Doctrine\ORM\QueryBuilder;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\OutputInterface;
main() {
var subtest = new SomeSubClass();
doSomething(subtest);
}
void doSomething(dynamic object) {
if (object is SomeClass) {
print((object as SomeClass).test());
}
}
@VincentChalnot
VincentChalnot / AlloResto Bookmarklet
Created March 2, 2015 20:47
Bookmarklet pour supprimer les choix contenant des oignons sur AlloResto
javascript:$('.infos > p:not([class])').each(function(){var h=$(this).html();if(h.indexOf('Oignon')>=0||h.indexOf('oignon')>=0){$(this).parents('li').first().hide();}});
# My /etc/hosts file to block most ads domains (and optionnally the facebook api)
## Ads and phishing blocking
#127.0.0.2 static.ak.facebook.com connect.facebook.net s-static.ak.facebook.com
127.0.0.2 ct1.addthis.com q3.webtrekk.net s7.addthis.com
127.0.0.2 101com.com 101order.com 103bees.com 123found.com 123pagerank.com 180hits.de 180searchassistant.com 180solutions.com 1x1rank.com 207.net 247media.com 24log.com 24log.de 24pm-affiliation.com 2log.com 2o7.net 360yield.com 4affiliate.net 4d5.net 50websads.com 518ad.com 51yes.com 600z.com 777partner.com 777seo.com 77tracking.com 7adpower.com 7bpeople.com 7search.com 99count.com a-ads.com a-counter.kiev.ua a.0day.kiev.ua a.collective-media.net a.consumer.net a.gismeteo.ru a.mktw.net a.sakh.com a.softpedia.com a.ucoz.net a.ucoz.ru a.wowinterface.com a.xanga.com a1.dealfindcdn.com a32.g.a.yimg.com aaddzz.com abacho.net abc-ads.com abz.com ac.rnm.ca accounts.pkr.com acsseo.com actionsplash.com actualdeals.com ad-flow.com ad-images.suntimes.com ad-pay.de ad-rotator