Skip to content

Instantly share code, notes, and snippets.

View Dj0ulo's full-sized avatar

Julien Launois (jula) Dj0ulo

View GitHub Profile
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