This file contains hidden or 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 bash | |
| set -euo pipefail | |
| if [ $# -lt 1 ]; then | |
| echo "Uso: $0 ruta/al/video.mp4" | |
| exit 1 | |
| fi | |
| VIDEO_PATH="$1" | |
| if [ ! -f "$VIDEO_PATH" ]; then |
This file contains hidden or 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 | |
| """ | |
| Convert nvALT RTF notes to Markdown using textutil. | |
| - Uses textutil for clean, fast conversion | |
| - Extracts tags from filename [tag], converts to camelCase | |
| - Escapes hashtags to prevent FSNotes tag interpretation | |
| - Preserves file timestamps and original filename | |
| - Only adds front matter if there are tags | |
| """ |
This file contains hidden or 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
| class CourseResource(ModelResource): | |
| class Meta: | |
| queryset = Course.objects.all() | |
| resource_name = 'courses' | |
| # without this resource_uri is empty in the view! | |
| api_name = settings.API_VERSION |