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 python | |
import sys | |
import os | |
import shutil | |
import urllib.parse | |
import base64 | |
import numpy as np | |
import csv | |
from PIL import Image | |
import time |
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
;; improved from https://emacs.stackexchange.com/a/70360 | |
(defvar lisp2latex-functions '(sin cos tan)) | |
(defvar lisp2latex-maybe-enclose? nil) | |
(defun lisp2latex-maybe-enclose (form) | |
(let* ((lisp2latex-maybe-enclose? nil) | |
(latex (lisp2latex form))) | |
(if lisp2latex-maybe-enclose? | |
(format "(%s)" latex) | |
latex))) |
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
(require 'asdf) | |
(let ((*trace-output* (make-string-output-stream))) | |
(asdf:load-systems :alexandria :serapeum :iolib/os)) | |
(defpackage #:rclone-filter | |
(:use #:cl) | |
(:local-nicknames (#:a #:alexandria) | |
(#:s #:serapeum))) |
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 python | |
import os | |
import subprocess | |
def append_parentpath(path, ignore_string): | |
return [path + '/' + line for line in ignore_string.splitlines()] | |
def traverse_and_generate(path, printpath=""): | |
dirs = os.listdir(path) | |
if '.git' in dirs: |