mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 02:35:22 +08:00
Construct TexTemplate class to convert tex to svg
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from functools import lru_cache
|
||||
import hashlib
|
||||
import inspect
|
||||
import math
|
||||
|
||||
@ -76,3 +77,9 @@ def binary_search(function,
|
||||
else:
|
||||
return None
|
||||
return mh
|
||||
|
||||
|
||||
def hash_string(string):
|
||||
# Truncating at 16 bytes for cleanliness
|
||||
hasher = hashlib.sha256(string.encode())
|
||||
return hasher.hexdigest()[:16]
|
||||
|
Reference in New Issue
Block a user