Skip to content

Instantly share code, notes, and snippets.

View Vendicated's full-sized avatar
🏳️‍🌈
read if cute

V Vendicated

🏳️‍🌈
read if cute
View GitHub Profile
@indivisible
indivisible / to_simple_id3v24.py
Created March 27, 2019 21:30
ID3 fixer for android
#!/usr/bin/env python3
'''Simplify MP3 ID3 tags for android compatibility
Converts tags to 2.4, utf8, and strips extended headers
'''
from eyed3.id3 import Tag, ID3_V2_4
https://youtu.be/-C-JoyNuQJs?t=39m45s
When I put the reference implementation onto the website I needed to
put a software license on it.
And I looked at all the licenses that were available, and there were a lot
of them. And I decided that the one I liked the best was the MIT License,
which was a notice that you would put on your source and it would say,
"you're allowed to use this for any purpose you want, just leave the
notice in the source and don't sue me."
@davidfowl
davidfowl / dotnetlayout.md
Last active May 3, 2024 08:40
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
public class Dexter {
private static String optimizedDirectory = "optimized";
private static String workDirectory = "working";
public static void loadFromAssets(Context context, String fileName) throws Exception {
File optimized = new File(optimizedDirectory);
optimized = context.getDir(optimized.toString(), Context.MODE_PRIVATE);
optimized = new File(optimized, fileName);