Skip to content

Instantly share code, notes, and snippets.

View jeansordes's full-sized avatar

Jean Z. SORDES jeansordes

View GitHub Profile
@jeansordes
jeansordes / template.note.periodic.weekly-hebdomadaire.md
Last active August 27, 2025 19:30
Obsidian Templater + Dataview Weekly Note

<%* let firstDay = moment(tp.file.title, '[journal.]gggg.[weeks.]ww'); let week = [ firstDay, // 0 = Lundi firstDay.clone().add(1,'d'), // 1 = M firstDay.clone().add(2,'d'), // 2 = Me firstDay.clone().add(3,'d'), // 3 = J firstDay.clone().add(4,'d'), // 4 = V firstDay.clone().add(5,'d'), // 5 = S firstDay.clone().add(6,'d'), // 6 = D

@jeansordes
jeansordes / colors.css
Last active February 7, 2025 01:53
TailwindCSS colors into a simple CSS file (https://uicolors.app/browse/tailwind-colors)
:root {
--slate-50: #f8fafc;
--slate-100: #f1f5f9;
--slate-200: #e2e8f0;
--slate-300: #cbd5e1;
--slate-400: #94a3b8;
--slate-500: #64748b;
--slate-600: #475569;
--slate-700: #334155;
--slate-800: #1e293b;
@jeansordes
jeansordes / install-betty.sh
Created October 21, 2024 17:12
Script to install the Betty Linter (from Holberton School)
#!/bin/bash
##########################################
##########################################
# Configuration globale du profile GITHUB
# git config --global user.name "YOUR_GITHUB_USERNAME"
# git config --global user.email "YOUR_GITHUB_EMAIL"
# Exemple de clonage d'une repo GITHUB avec le TOKEN dans le URL pour éviter la saisie des coordonnées à chaque git push
@jeansordes
jeansordes / instagram_video_ctrls.js
Last active January 1, 2023 23:45
Userscript for adding video controls on Instagram in your browser
// ==UserScript==
// @name Instagram Video Controls
// @namespace https://jzs.fr/
// @version 1.0
// @description Adds video player controls to Instagram videos
// @author JZS
// @match https://www.instagram.com/
// @match https://www.instagram.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=instagram.com
// @grant none
/*
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
if you want to view the source visit the plugins github repository
*/
'use strict';
var obsidian = require('obsidian');
/*! *****************************************************************************
{
// Place your GLOBAL snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
"bootstrap input": {
"scope": "html",
"prefix": "bootstrap_input",
{
"workbench.colorCustomizations": {
"activityBar.background": "#9a1fb2",
"editor.background": "#c82ae712",
"statusBar.background": "#c72ae7",
},
}
@jeansordes
jeansordes / .gitignore
Created August 21, 2022 17:10
My default gitignore file
**/composer.phar
**/.env
**/.DS_Store
**/.vscode/settings.json
!**/.gitkeep
**/vendor/*
**/db/scripts/seed/*
@jeansordes
jeansordes / darkmode_userscript.js
Created March 11, 2022 13:47
Toggle dark mode
// ==UserScript==
// @name Night mode
// @version 0.0.1
// @description Toggle night mode by typing ALT + N
// @match *://*/*
// @source https://gist.github.com/jeansordes
// ==/UserScript==
function nightmode() {
'use strict';
@jeansordes
jeansordes / focusmate_userscript.js
Last active February 9, 2022 10:24
Focusmate script : audio on new message + add a dashboard link in header
// ==UserScript==
// @name Focusmate : audio on new message + add a dashboard link in header
// @match https://www.focusmate.com/*
// @match https://focusmate.daily.co/*
// @source https://gist.github.com/jeansordes/2e87d589de759d5638ab3aec97e33eb0/raw
// ==/UserScript==
// you can deactivate the features you want from here
const activatedFeatures = {
'added_dashboard_btn': true,