Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Francis Laclé flacle

🎯
Focusing
Block or report user

Report or block flacle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@flacle
flacle / matchHistogram.js
Last active Jan 10, 2020
Histogram matching in Google Earth Engine
View matchHistogram.js
/**
*
* Histogram matching in Google Earth Engine with S1 SAR images
* A very small experiment :D
*
* Author: Francis Laclé
* Year: 2019
*
*/
@flacle
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
flacle / sortEdgeList.py
Last active Feb 28, 2016
Algorithm to sort edge list of simple polygon for 2D and 3D (used in Blender, coded in Python)
View sortEdgeList.py
"""
Script to sort edge list of a simple polygon with 1 face in Blender with Python.
Something like this:
0_________3
/ \
4/ \2
\ /
5\_________/1
becomes sorted as {[4,5],[5,1],...,[0,4]}.
Tested with Blender v2.67.
@flacle
flacle / addAccentMarksForItalian.php
Last active Feb 13, 2016
Replaces end quotes with the appropriate accent (Italian)
View addAccentMarksForItalian.php
<?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
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 Mail.app".
You can’t perform that action at this time.