Skip to content

Instantly share code, notes, and snippets.

@zuphilip
Last active November 30, 2019 16:36
Show Gist options
  • Save zuphilip/a035db2329db7b1eb6c846c738c3e63f to your computer and use it in GitHub Desktop.
Save zuphilip/a035db2329db7b1eb6c846c738c3e63f to your computer and use it in GitHub Desktop.
Jupyter notebook for anystyle
FROM rubydata/datascience-notebook:c9ca70040856
ENV TAG=c9ca70040856
COPY . .
Rey 2008 = ANNE-LISE Rey, « La figure du leibnizianisme dans les Institutions de physique », dans ULLA KOLVING ET OLIVIER COURCELLE (éds.), Emilie du Chatelet. Eclairages et documents nouveaux, Ferney-Voltaire, Centre international d’étude du XVIII* siécle, 229-240.
Rey 2013 = ANNE-LISE Rey, « Les monades selon Samuel Formey » , Studia Leibnitiana 45/2 (2013), 135-149.
TERRALL 2002 = MAry TERRALL, The man who flattened the Earth. Maupertuis and the sciences in the Enlightenment, Chicago et Londres, The University of Chicago Press.
TONELLI 1987 = GIORGIO TONELLI, La pensée philosophique de Maupertuis. Son muilieu et ses sources, Hildesheim, Georg Olms.
VAN DEN ABBEEL 2017 = YANNICK VAN DEN ABBEEL, « The tension between the mathematical and metaphysical strands of Maupertuis’ Principle of Least Action », Noctua, 4/1-2 (2017), 56-90.
VERNIERE 1954 = PAUL VERNIERE, Spinoza et la pensée francaise avant la Révolution, Paris, Presses universitaires de France.
VOLMER 2007 = ANNETT VOLMER, « Journalismus und Aufklaérung : Jean Henri Samuel Formey und die Entwicklung der Zeitschrift zum Medium der Kritik », Jahrbuch fiir Kommunikationsgeschichte 9 (2007), 101-129.
WoLFE 2010 = CHARLES T. WOLFE, « Endowed Molecules and Emergent Organization: The Maupertuis-Diderot Debate » , Early Science and Medicine 15 (2010), 38-65.
WoLFF 1736-1737 = CHRISTIAN WOLFF, Theologia naturalis methodo scientifica pertractata, Francfort et Leipzig, in Officina libraria Rengeriana.
WoLFF 2006 = CHRISTIAN WOLFF, Discours préliminaire sur la philosophie en général, Paris, Vrin (Discursus praeliminaris de philosophia in genere, dans Philosophia Rationalis sive Logica, Francfort et Leipzig, in Officina libraria Rengeriana, 1728, 1-104).
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"Successfully installed latex-decode-0.3.1\\nSuccessfully installed bibtex-ruby-5.0.1\\nSuccessfully installed anystyle-data-1.2.0\\nBuilding native extensions. This could take a while...\\nSuccessfully installed wapiti-1.0.5\\nSuccessfully installed namae-1.0.1\\nSuccessfully installed anystyle-1.3.5\\n6 gems installed\\n\""
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%x(gem install anystyle)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"Successfully installed gli-2.19.0\\nSuccessfully installed bibtex-ruby-4.4.7\\nSuccessfully installed anystyle-1.3.3\\nSuccessfully installed anystyle-cli-1.2.0\\n4 gems installed\\n\""
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%x(gem install anystyle-cli)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"[\\n {\\n \\\"author\\\": [\\n {\\n \\\"literal\\\": \\\"Rey 2008 = ANNE-LISE Rey\\\"\\n }\\n ],\\n \\\"title\\\": \\\" La figure du leibnizianisme dans les Institutions de physique »\\\",\\n \\\"container-title\\\": \\\"dans ULLA KOLVING ET OLIVIER COURCELLE (éds.), Emilie du Chatelet. Eclairages et documents nouveaux, Ferney-Voltaire, Centre international d’étude du XVIII*\\\",\\n \\\"type\\\": \\\"chapter\\\",\\n \\\"page\\\": \\\", 229–240\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"given\\\": \\\"Rey\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= ANNE-LISE Rey, « Les monades selon Samuel Formey »\\\",\\n \\\"volume\\\": \\\"45\\\",\\n \\\"type\\\": \\\"article-journal\\\",\\n \\\"container-title\\\": \\\"Studia Leibnitiana\\\",\\n \\\"issue\\\": \\\"2\\\",\\n \\\"issued\\\": \\\"2013\\\",\\n \\\"page\\\": \\\"135–149\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"given\\\": \\\"T.E.R.R.A.L.L.\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= MAry TERRALL, The man who flattened the Earth. Maupertuis and the sciences in the Enlightenment, Chicago et Londres\\\",\\n \\\"publisher\\\": \\\"The University of Chicago Press\\\",\\n \\\"type\\\": \\\"book\\\",\\n \\\"issued\\\": \\\"2002\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"given\\\": \\\"T.O.N.E.L.L.I.\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= GIORGIO TONELLI, La pensée philosophique de Maupertuis. Son muilieu et ses sources\\\",\\n \\\"type\\\": null,\\n \\\"issued\\\": \\\"1987\\\",\\n \\\"publisher-place\\\": \\\"Hildesheim, Georg Olms\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"family\\\": \\\"ABBEEL\\\",\\n \\\"given\\\": \\\"V.A.N.D.E.N.\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= YANNICK VAN DEN ABBEEL, « The tension between the mathematical and metaphysical strands of Maupertuis’ Principle of Least Action »\\\",\\n \\\"volume\\\": \\\"4\\\",\\n \\\"type\\\": \\\"article-journal\\\",\\n \\\"container-title\\\": \\\"Noctua\\\",\\n \\\"issue\\\": \\\"1-2\\\",\\n \\\"issued\\\": \\\"2017\\\",\\n \\\"page\\\": \\\"56–90\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"given\\\": \\\"V.E.R.N.I.E.R.E.\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= PAUL VERNIERE, Spinoza et la pensée francaise avant la Révolution\\\",\\n \\\"publisher\\\": \\\"Presses universitaires de France\\\",\\n \\\"type\\\": \\\"book\\\",\\n \\\"issued\\\": \\\"1954\\\",\\n \\\"publisher-place\\\": \\\"Paris\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"given\\\": \\\"V.O.L.M.E.R.\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= ANNETT VOLMER, « Journalismus und Aufklaérung : Jean Henri Samuel Formey und die Entwicklung der Zeitschrift zum Medium der Kritik »\\\",\\n \\\"volume\\\": \\\"9\\\",\\n \\\"type\\\": \\\"article-journal\\\",\\n \\\"container-title\\\": \\\"Jahrbuch fiir Kommunikationsgeschichte\\\",\\n \\\"issued\\\": \\\"2007\\\",\\n \\\"page\\\": \\\"101–129\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"given\\\": \\\"WoLFE\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= CHARLES T. WOLFE, « Endowed Molecules and Emergent Organization: The Maupertuis-Diderot Debate »\\\",\\n \\\"volume\\\": \\\"15\\\",\\n \\\"type\\\": \\\"article-journal\\\",\\n \\\"container-title\\\": \\\"Early Science and Medicine\\\",\\n \\\"issued\\\": \\\"2010\\\",\\n \\\"page\\\": \\\"38–65\\\"\\n },\\n {\\n \\\"title\\\": \\\"WoLFF 1736-1737 = CHRISTIAN WOLFF, Theologia naturalis methodo scientifica pertractata, Francfort et Leipzig\\\",\\n \\\"container-title\\\": \\\"Officina libraria Rengeriana\\\",\\n \\\"type\\\": \\\"chapter\\\"\\n },\\n {\\n \\\"author\\\": [\\n {\\n \\\"given\\\": \\\"WoLFF\\\"\\n }\\n ],\\n \\\"title\\\": \\\"= CHRISTIAN WOLFF, Discours préliminaire sur la philosophie en général, Paris, Vrin (Discursus praeliminaris de philosophia in genere, dans Philosophia Rationalis sive Logica\\\",\\n \\\"container-title\\\": \\\"Francfort et Leipzig, in Officina libraria Rengeriana\\\",\\n \\\"type\\\": \\\"chapter\\\",\\n \\\"issued\\\": \\\"2006\\\",\\n \\\"page\\\": \\\"1–104\\\"\\n }\\n]\\n\""
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%x(anystyle -f csl parse references.txt)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"[\\n {\\n \\\"author\\\": [\\n {\\n \\\"family\\\": \\\"Derrida\\\",\\n \\\"given\\\": \\\"J.\\\"\\n }\\n ],\\n \\\"title\\\": \\\"L’écriture et la différence\\\",\\n \\\"edition\\\": \\\"1\\\",\\n \\\"publisher\\\": \\\"Éditions du Seuil\\\",\\n \\\"type\\\": \\\"book\\\",\\n \\\"issued\\\": \\\"1967\\\",\\n \\\"publisher-place\\\": \\\"Paris\\\"\\n }\\n]\\n\""
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%x(echo \"Derrida, J. (1967). L’écriture et la différence (1 éd.). Paris: Éditions du Seuil.\" > ref.txt)\n",
"%x(anystyle -f csl parse ref.txt)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Ruby 2.6.2",
"language": "ruby",
"name": "ruby"
},
"language_info": {
"file_extension": ".rb",
"mimetype": "application/x-ruby",
"name": "ruby",
"version": "2.6.2"
},
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"toc_cell": false,
"toc_position": {},
"toc_section_display": "block",
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment