Skip to content

Instantly share code, notes, and snippets.

View algra4's full-sized avatar

Alexis Gramaglia algra4

  • HMS EWON
  • Nivelles, Belgium
View GitHub Profile
@SidShetye
SidShetye / ExportAlbumAsFolder.applescript
Last active February 1, 2021 14:24
Scan through all albums and export media items (movies, images etc) into a suitable folder. There is custom logic to pick the appropriate destination folder.
------------------------------------------------
-- Settings Start: Change these as needed
global gDest
set gDest to "/Volumes/MacPhotos/Pictures/ExportAlbums/" as POSIX file as text -- the destination folder (use a valid path)
global gLogFile
set gLogFile to gDest & "ExportAlbumToFolders.log"
global gKeywordOnSuccess
set gKeywordOnSuccess to "exported"
@rponte
rponte / StringUtils.java
Last active September 12, 2024 16:18
Removing accents and special characters in Java: StringUtils.java and StringUtilsTest.java
package br.com.triadworks.rponte.util;
import java.text.Normalizer;
public class StringUtils {
/**
* Remove toda a acentuação da string substituindo por caracteres simples sem acento.
*/
public static String unaccent(String src) {