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
for file in *.MOV; do | |
date=$(ffprobe -v quiet -show_entries format_tags=creation_time -of default=nw=1:nk=1 "$file" | cut -d'T' -f1) | |
count=1 | |
while [ -e "$date.MOV" ]; do | |
date="$date"_"$count" | |
count=$((count+1)) | |
done | |
mv "$file" "$date.MOV" | |
done |
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
from pydantic import BaseModel, ConfigDict | |
class MyVlass(BaseModel): | |
# make class immutable | |
model_config = ConfigDict(frozen=True) |
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
\begin{figure}[htbp] | |
\centering | |
\includegraphics[width=0.9\linewidth]{filename.png} | |
\caption{Image Caption} | |
\label{fig:label123} | |
\end{figure} |
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
\documentclass{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage[a5paper, margin=0mm]{geometry} | |
\usepackage{tikz} | |
\begin{document} | |
\thispagestyle{empty} |
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
% Barree | |
%% da capo al fine | |
dcaf = { | |
\once \override Score.RehearsalMark #'break-visibility = #end-of-line-visible | |
\once \override Score.RehearsalMark #'self-alignment-X = #RIGHT | |
\mark "D.C. al Fine" | |
} | |
%% C with slash ------------------------------- |
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/python | |
import sys | |
import os, shutil | |
import subprocess | |
import os.path | |
from datetime import datetime | |
######################## Functions ######################### |
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
\documentclass[tikz]{standalone} | |
\usepackage{tikz} | |
\begin{document} | |
\begin{tikzpicture} | |
\end{tikzpicture} | |
\end{document} |
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 subprocess | |
# If arg3 is not a string, convert it to sringe before passing: arg3 = str(arg3) | |
subprocess.check_call(['/my/file/path/programname.sh', 'arg1', 'arg2', arg3]) |