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
# -*- coding: utf-8 -*- | |
import pycurl | |
import StringIO | |
from pybtex import auxfile | |
from pybtex.database.input import bibtex as bibtexin | |
from pybtex.database.output import bibtex as bibtexout | |
import pybtex.database | |
def doi2bib(doi): | |
""" |
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 plasTeX.TeX import TeX | |
# The following can be a problem if you are using revtex. | |
doc = TeX(file="filename.tex").parse() | |
refs = doc.getElementByTagName("cite") | |
cites = [] | |
for ref in refs: |
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 requests | |
def doi2bib(doi): | |
""" | |
Return a bibTeX string of metadata for a given DOI. | |
""" | |
url = "http://dx.doi.org/" + doi | |
headers = {"accept": "application/x-bibtex"} |
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
position | |
positive | |
negative | |
temperature | |
potential | |
calculate | |
point | |
permittivity | |
boltzmann | |
mass |
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
wtf -- list specified command options of a bash command | |
EXAMPLE | |
------- | |
$ wtf rsync -rvcl src/ dest/ | |
-r, --recursive recurse into directories | |
-v, --verbose increase verbosity | |
-c, --checksum skip based on checksum, not mod-time & size |
NewerOlder