This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Francis Laclé | |
# 13/01/2022 | |
# Extract images from Powerpoint presentation files. | |
# We assume PPT(X)'s are in subdirectories and we scan one level deep. | |
# In case more depth is required, change the recursive flag to True on line 25. | |
# Objective: | |
# From the root directory, scan for PPT(X) files in sub directories (1-level) | |
# Then, for each PPT(X) open it, extract the images and save them on the disk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Manim Gradient Descent Video Intuition | |
# Author: Francis Laclé | |
# Video: https://www.youtube.com/watch?v=1cCS6uK_NH8 | |
# Github: https://github.com/flacle | |
# Date: 29 Oct, 2020 | |
from manim import * | |
import math | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* # 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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
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". |