Skip to content

Instantly share code, notes, and snippets.

@nikhgarg
nikhgarg / bib-titlecase.py
Last active June 4, 2020 06:48 — forked from garrettdashnelson/bib-titlecase.py
Convert titles in bibtex citation library to title case
# Original by Daniel L. Greenwald
# http://dlgreenwald.weebly.com/blog/capitalizing-titles-in-bibtex
# Modified by Garrett Dash Nelson
import re
from titlecase import titlecase
# Input and output files
path='/mnt/c/Users/Nikhil/OneDrive/CurrentDocuments/Stanford/Research/PhDDissertation/'
my_file = path + 'bib.bib'
import numpy as np
from math import pi, log
import pylab
from scipy import fft, ifft
from scipy.optimize import curve_fit
i = 10000
x = np.linspace(0, 3.5 * pi, i)
y = (0.3*np.sin(x) + np.sin(1.3 * x) + 0.9 * np.sin(4.2 * x) + 0.06 *
np.random.randn(i))