https://stackoverflow.com/questions/6547969/reload-current-activity-in-android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Utility micro library "LocalStorj" | |
const LocalStorj = { | |
get: (key, defaultValue = null) => { | |
const result = localStorage.getItem(key) | |
if (result === null) { | |
return defaultValue; | |
} | |
return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
exemplo de uso: python app.py artigo.txt | |
lembre de instalar esses módulos: | |
asyncio | |
edge_tts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tinytag | |
import glob | |
import sys | |
def get_mp3_duration(filename): | |
"""Function to get the duration of an MP3 file using TinyTag""" | |
tag = tinytag.TinyTag.get(filename) | |
return tag.duration | |
def format_duration_in_minutes_seconds(seconds): |
- Install termux
https://f-droid.org/pt_BR/packages/com.termux/
- Install Andronix
https://play.google.com/store/apps/details?id=studio.com.techriz.andronix
- Install Avnc (faster than Rvnc and doesn't need registration)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
log_file="/home/$USER/Projects/log.txt" | |
export LC_ALL="en_US.UTF-8" | |
exec > >(tee -a "$log_file") 2>&1 | |
function create-python-app() { | |
echo "Creating and entering folder..." | |
mkdir $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import time | |
class Debugger: | |
debug = True | |
def __init__(self, message): | |
self.message = message | |
self.t1 = time.time() | |
def __enter__(self): |
https://sourceforge.net/projects/gladewin32/
pacman -S mingw-w64-x86_64-glade
pacman -S mingw-w64-x86_64-gobject-introspection
pacman -S mingw-w64-x86_64-gtk3
pacman -S mingw-w64-x86_64-gtksourceview3
NewerOlder