Skip to content

Instantly share code, notes, and snippets.

View Yuan-Ru-Lin's full-sized avatar

Leon (Yuan-Ru) Lin Yuan-Ru-Lin

View GitHub Profile
from os import rename
from glob import glob
from urllib.parse import unquote
for fname in glob('*'):
rename(fname, unquote(fname))
@Yuan-Ru-Lin
Yuan-Ru-Lin / time_dilation_for_satellite.py
Last active December 19, 2019 15:03
畫出衛星高度對狹義相對論性時間延遲之關係
from math import *
from scipy.constants import G, c
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from matplotlib import rcParams
# 設定中文輸出與 LaTeX 數學式輸出
matplotlib.use('pgf')
preambles = [