Homebrew installs the LLVM version of GHDL. Unfortunately, currently, there is an issue with Apple's LLVM and GHDL. Hence, we will use the mcode version of GHDL.
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Author: Etienne Collin | |
# Date: 2022/09/15 | |
# Copyright: Copyright 2022, Etienne Collin | |
# Email: collin.etienne.contact@gmail.com | |
# License: GPL-3.0 | |
# Version: 1.3.0 |
Here, two different methods are presented to analyse memory leaks in C code.
The first method is cross-platform. It uses a small Docker image to both run Valgrind on the code and execute the code with the AddressSanitizer.
The second method is exclusive to macOS. It runs leaks
on the code and is a bit simpler than the first method in that it does not use Docker. leaks
should be as performant as Valgrind (although Valgrind has more features and could potentially catch memory leaks that leaks
cannot catch).
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
# !/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Author: Etienne Collin | |
# Date: 2023/12/09 | |
# Email: collin.etienne.contact@gmail.com | |
""" | |
This script provides a function to compute the Cooley-Tukey Radix-2 Decimation in Time (DIT) | |
Fast Fourier Transform (FFT) on a given input vector. Additionally, the script may be run |
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
#!/usr/bin/env bash | |
# -*- coding: utf-8 -*- | |
# Author: Etienne Collin | |
# Date: 2023/05/20 | |
# Updated: 2024/02/07 | |
# Email: collin.etienne.contact@gmail.com | |
############################################################################### | |
# This is a script to convert Office files to PDF using LibreOffice. |
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
# By Etienne Collin | |
# https://gist.github.com/etiennecollin/198f7520c4c58d545368a196e08f83ed | |
# Dependencies (on macOS, install via Homebrew (https://brew.sh/)): | |
# ghdl: | |
# Source: https://github.com/ghdl/ghdl/ | |
# gtkwave: | |
# Source: https://gtkwave.sourceforge.net/ | |
#### INPUT REQUIRED #### | |
ENTITIES = entityName1 entityName2 |
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
function rcd { | |
# Check that number of arguments is 1 | |
if [ $# -ne 1 ]; then | |
echo "Please input the path to a directory as the argument." | |
return 0 | |
fi | |
# Store the given path as a variable | |
dirpath=$1 |
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
# !/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Author: Etienne Collin | |
# Date: 2023/12/20 | |
# Email: collin.etienne.contact@gmail.com | |
################################################################################ | |
# The File System Formatter script is a Python program that automates the process of formatting file and | |
# directory names within a file system. It applies a set of rules to ensure consistent naming conventions and |
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
# !/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Author: Etienne Collin | |
# Date: 2022/11/25 | |
# Email: collin.etienne.contact@gmail.com | |
import os | |
githubFolderPath = os.path.expanduser("~/github") |