Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/swift
import Foundation
var baseLanguage = "fr"
var managedLanguages = ["fr": "🇫🇷"]
let languageFolderPath = "AppFrameworks/Localization/Localization/Resources"
guard CommandLine.arguments.count > 2 else {
print("❌ - No argument received, please put the Lokalise [1:Project ID] and your [2:API Token] as args")
exit(1)
@tcldr
tcldr / TimingFunction.swift
Last active April 5, 2025 06:46
For when you need the progress along an Apple Animation curve outside of CoreAnimation in a Swift 4.2 interface. Given a cubic Bezier timing curve defined by two control points, (or UIKit's `UICubicTimingParameters`), returns the progress along the curve at any given time. Includes a port of the WebKit implementation of UnitBezier which hopefull…
//
// TimingFunction.swift
//
// Created by tcldr on 04/11/2018.
// https://github.com/tcldr
// Copyright © 2018 tcldr.
//
// Permission is hereby granted, free of charge,
// to any person obtaining a copy of this software and
// associated documentation files (the "Software"), to
@xthezealot
xthezealot / README.md
Last active March 4, 2025 19:55
Normalize unicode file names (converts UTF-8 NFD to NFC). Required by macOS clients through AFP/NFS/SMB. Tested on Synology DSM 6.2 with built-in Python 2.7.12.

NFCFN.py

Normalize unicode file names (converts UTF-8 NFD to NFC).
Required by macOS clients through AFP/NFS/SMB.

Tested on Synology DSM 6.2 with built-in Python 2.7.12.

Usage