Skip to content

Instantly share code, notes, and snippets.

View Dj0ulo's full-sized avatar

Julien Launois (jula) Dj0ulo

View GitHub Profile
@Dj0ulo
Dj0ulo / 2072a1c875ff04957296cec83ddd37c746ebf30e..b519215b7afb8ff1cf50c78c05286fe1d7e7f30d.diff
Created October 29, 2025 10:19
2072a1c875ff04957296cec83ddd37c746ebf30e..b519215b7afb8ff1cf50c78c05286fe1d7e7f30d
diff --git a/addons/website/models/website_menu.py b/addons/website/models/website_menu.py
index 31cb3346ef01..f4d117724a9f 100644
--- a/addons/website/models/website_menu.py
+++ b/addons/website/models/website_menu.py
@@ -231,6 +231,9 @@ class Menu(models.Model):
menu_url = url_parse(menu_url)
if unslug_url(menu_url.path) == unslug_url(request_url.path):
+ # By default we compare the unslug version of the current URL
+ # with the menu URL but if the menu is linked to a page we don't
if (window.matchMedia("(max-width: 768px)").matches) {
const originalCreateElement = document.createElement;
document.createElement = function(tagName) {
const element = originalCreateElement.call(document, tagName);
if (tagName.toLowerCase() === 'script') {
Object.defineProperty(element, 'src', {
set(value) {
element.setAttribute('data-cmp-src', value);

Privacy Policy - GPX from Strava & Komoot

Effective Date: 2024-04-14

This privacy policy ("Policy") describes how GPX from Strava & Komoot ("App") handles your personal data.

We Collect No Data

The App does not collect any personal data from you. It functions solely as a tool to assist you in extracting GPX data from your existing Strava and Komoot accounts.

<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxdata="http://www.cluetrust.com/XML/GPXDATA/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.cluetrust.com/XML/GPXDATA/1/0 http://www.cluetrust.com/Schemas/gpxdata10.xsd" version="1.1" creator="http://ridewithgps.com/">
<metadata>
<name>Arel Gravel 2024 - 43 KM</name>
<link href="https://ridewithgps.com/routes/45607085">
<text>Arel Gravel 2024 - 43 KM</text>
</link>
<time>2024-02-16T05:25:45Z</time>
</metadata>
<trk>

Space Falling Ball - Privacy Policy

Effective Date: 2024-04-13

Introduction

Welcome to "Space Falling Ball"! This privacy policy ("Policy") explains how we ("we," "us," or "our") collect, use, and disclose information from and about users ("you" or "your") of our Android game "Space Falling Ball" (the "App").

Information We Collect

@Dj0ulo
Dj0ulo / engines.json
Last active November 13, 2023 10:21
OptiSearch queries
{
"Google": {
"link": "https://www.google.com",
"icon": "https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png",
"rightColumn": "#rhs",
"centerColumn": "#center_col",
"resultRow": "#rso > div:not(.optisearchbox)",
"searchBox": "input.gLFyf.gsfi, input.gLFyf, textarea.gLFyf",
"active": true,
"regex": "^www\\.google\\.",
@Dj0ulo
Dj0ulo / pdb_print_color.py
Last active July 5, 2023 14:27
pdb print in color
def _pc(dictionary=locals(), ignore=['__builtins__'], indent=0):
try:
keys = dictionary._fields
except:
try:
keys = dictionary.keys()
except:
keys = dictionary.__dict__.keys()
for key in keys:
if key in ignore:
function observeShadowRoots(handle, element, config) {
setObserver((mutations) => {
mutations
.filter(m => !!m.addedNodes.length)
.forEach(m =>
[...m.addedNodes]
.filter(node => node.shadowRoot)
.forEach(node => observeShadowRoots(handle, node.shadowRoot, config))
);
handle(mutations);
@Dj0ulo
Dj0ulo / diff-rpc.diff
Last active January 23, 2023 10:29
Bug rpc odoo
diff --git a/odoo/addons/base/controllers/rpc.py b/odoo/addons/base/controllers/rpc.py
index e18b8acc4210..099b9ef03d8f 100644
--- a/odoo/addons/base/controllers/rpc.py
+++ b/odoo/addons/base/controllers/rpc.py
@@ -6,6 +6,7 @@ from datetime import date, datetime
from markupsafe import Markup
from werkzeug.wrappers import Response
+from collections import defaultdict