Skip to content

Instantly share code, notes, and snippets.

View alanmugiwara's full-sized avatar

Álan Cruz alanmugiwara

View GitHub Profile
@madkoding
madkoding / removeroms.md
Created May 21, 2024 23:04
Python Script for Removing Duplicate Files (roms) Based on Levenshtein Distance

Python Script for Removing Duplicate Files (roms) Based on Levenshtein Distance

This Python script identifies and removes duplicate files in a specified directory based on the Levenshtein distance between their names. Only the first file in each group of similar files is kept, and the rest are deleted. The script excludes directories and only processes files.

Requirements

  • Python 3.x
  • colorama library for colored console output

Installation

@andreberg
andreberg / python.json
Last active December 22, 2024 21:48
[VSCode: Python Snippets] Python snippet collection. #vscode #python #snippets #template #json
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",