Skip to content

Instantly share code, notes, and snippets.

@Perlence
Perlence / uslt.py
Last active June 17, 2016 21:26
Set USLT tag from stdin
import argparse
import sys
from mutagen.id3 import USLT
from mutagen.mp3 import MP3
def main():
parser = argparse.ArgumentParser()
parser.add_argument('MP3FILE')
@yadimon
yadimon / VBA Unescape UTF-8
Last active February 11, 2023 08:05
Function to unescape UTF-8 escaped content for VBA
'modified from http://needtec.sakura.ne.jp/codeviewer/index.php?id=2
Public Function UnescapeUTF8(ByVal StringToDecode As String) As String
Dim i As Long
Dim acode As Integer, sTmp As String
On Error Resume Next
If InStr(1, StringToDecode, "\") = 0 And InStr(1, StringToDecode, "%") = 0 Then
UnescapeUTF8 = StringToDecode