Skip to content

Instantly share code, notes, and snippets.


Francis Laclé flacle

View GitHub Profile
flacle /
Last active Dec 10, 2020
Manim Gradient Descent Intuition (in Papiamento)
# Manim Gradient Descent Video Intuition
# Author: Francis Laclé
# Video:
# Github:
# Date: 29 Oct, 2020
from manim import *
import math
flacle / matchHistogram.js
Last active Nov 25, 2020
Histogram match - Google Earth Engine
View matchHistogram.js
* # Histogram matching
* # Google Earth Engine with S1 SAR
* # A very small experiment :D
* # Author: Francis Laclé
* # Year: 2019
* Function that returns a normalized image using unitScale()
flacle / Default (OSX).sublime-keymap
Last active Aug 17, 2019
Quick and Dirty Python 2.7 in Sublime Text 3
View Default (OSX).sublime-keymap
{"keys": ["shift+ctrl+alt+b"], "command": "repl_open",
"caption": "Python2 - RUN current file",
"id": "repl_python2_run",
"mnemonic": "R",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["/Users/your-name-here/anaconda/envs/python2/bin/python", "-u", "$file_basename"],
"cwd": "$file_path",
flacle /
Last active Feb 28, 2016
Algorithm to sort edge list of simple polygon for 2D and 3D (used in Blender, coded in Python)
Script to sort edge list of a simple polygon with 1 face in Blender with Python.
Something like this:
/ \
4/ \2
\ /
becomes sorted as {[4,5],[5,1],...,[0,4]}.
Tested with Blender v2.67.
flacle / addAccentMarksForItalian.php
Last active Feb 13, 2016
Replaces end quotes with the appropriate accent (Italian)
View addAccentMarksForItalian.php
* The MIT License (MIT)
* Copyright (c) 2016 Francis Laclé
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
flacle / sortRecipientsAlphabeticallyV1.scpt
Last active Feb 13, 2016
Apple Script for the Mail App to sort email recipients alphabetically in the To, Cc, and Bcc fields. For when you don't wan't to give subliminal preference to coworkers ;)
View sortRecipientsAlphabeticallyV1.scpt
Author: Francis Laclé
Version: 1.0
Date: January 4 2016
Description: The purpose of this script is to sort email recipients alphabetically in the To, Cc, and Bcc fields.
Motivation: For cases when you don't want to give subliminal preference to coworkers in your organization ;)
Requirements: Apple Mail, OSX El Capitan
Installation and usage:
1) Use "Run AppleScript" as a new Service in Automator.
2) Choose "Service receives no input in".