Skip to content

Instantly share code, notes, and snippets.

View batitous's full-sized avatar

Baptiste Burles batitous

  • Orok Software
  • Lyon (France)
View GitHub Profile
@batitous
batitous / transition.gd
Created February 14, 2025 08:06 — forked from xsellier/transition.gd
Transition effect
@tool
extends CanvasLayer
const TRANSITION_ANIMATION_DURATION = 1.0
const TRANSITION_ANIMATION_FONT_DURATION = 0.66
const TRANSITION_TYPE_LIST = [{
index = 0,
trans = Tween.TRANS_QUAD
}, {
index = 1,
@batitous
batitous / contemplative-llms.txt
Created February 14, 2025 08:04 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@batitous
batitous / delete_git_submodule.md
Created April 14, 2020 11:42 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@batitous
batitous / Optionnel<Array<T>>.swift
Created June 30, 2016 09:47
Compare 2 optionnel arrays in Swift, thanks to Sysy !
// At present, Optional<Array<T>> is not possible to make equatable even though T might be.
// This fakes that that behaviour to make comparisons between optional arrays simpler.
func !=<C: Equatable>(lhs: [C]?, rhs: [C]?) -> Bool {
return !(lhs == rhs)
}
func ==<C: Equatable>(lhs: [C]?, rhs: [C]?) -> Bool {
switch (lhs, rhs) {
case (.Some(let lhs), .Some(let rhs)):