Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd about info and use spaces for indentation - adamsgaard.dk - my academic we…
git clone git://src.adamsgaard.dk/adamsgaard.dk
Log
Files
Refs
README
LICENSE
---
commit 9e30b6c67b3b7d0d419d427abbc808a43939861a
parent c9dbd1b41fd147a44a290fcdb10398d65274bc2d
Author: Anders Damsgaard <[email protected]>
Date: Mon, 24 Feb 2020 16:04:43 +0100
Add about info and use spaces for indentation
Diffstat:
M pages/002-scholarref.txt | 128 ++++++++++++++++-------------…
M templates/index.gph/header.gph | 7 +++++++
2 files changed, 71 insertions(+), 64 deletions(-)
---
diff --git a/pages/002-scholarref.txt b/pages/002-scholarref.txt
t@@ -21,18 +21,18 @@ to 100% someday.
The "scholarref" design goals are the following:
- - Written as POSIX shell scripts with minimal external
- dependencies: Ensures maximum flexibility and portability.
+ - Written as POSIX shell scripts with minimal external
+ dependencies: Ensures maximum flexibility and portability.
- - Aim for simplicity:
- Fewer lines of code make the programs easier to understand,
- maintain, and debug.
+ - Aim for simplicity:
+ Fewer lines of code make the programs easier to understand,
+ maintain, and debug.
- - Each tool should do one thing, and do it well:
- Let the users piece the components together to fit their
- workflow.
+ - Each tool should do one thing, and do it well:
+ Let the users piece the components together to fit their
+ workflow.
- - Return references in BibTeX format.
+ - Return references in BibTeX format.
DISCLAIMER: The functionality provided by these programs depends
on communication with third party webpages, which may or may not
t@@ -43,9 +43,9 @@ tools is entirely your own responsibility.
-- Installation --
- $ git clone git://src.adamsgaard.dk/scholarref
- $ cd scholarref
- # make install
+ $ git clone git://src.adamsgaard.dk/scholarref
+ $ cd scholarref
+ # make install
The `make install` command may require superuser priviledges to
install the tools to /usr/local. Prefix with doas(1) or sudo(1),
t@@ -71,10 +71,10 @@ the CrossRef API[1] is used to find the DOI of the closest…
match. You can supply author names, parts of the title, ORCID,
journal name, etc. Examples:
- $ getdoi damsgaard2018.pdf
- 10.1029/2018ms001299
- $ getdoi 'damsgaard sergienko adcroft advances modeling earth systems'
- 10.1029/2018ms001299
+ $ getdoi damsgaard2018.pdf
+ 10.1029/2018ms001299
+ $ getdoi 'damsgaard sergienko adcroft advances modeling earth systems'
+ 10.1029/2018ms001299
The -o option will open the resultant DOI in the system web browser.
t@@ -88,33 +88,33 @@ is incomplete, and is expanded on a per-need basis. If de…
the abbreviation functionality can be disabled. See `getref -h`
for details.
- $ getref 10.1029/2018ms001299
- @article{Damsgaard2018,
- doi = {10.1029/2018ms001299},
- year = 2018,
- publisher = {American Geophysical Union ({AGU})},
- volume = {10},
- number = {9},
- pages = {2228--2244},
- author = {A. Damsgaard and A. Adcroft and O. Sergienko},
- title = {Application of Discrete Element Methods to Approximat…
- journal = {J. Adv. Mod. Earth Sys.}
- }
+ $ getref 10.1029/2018ms001299
+ @article{Damsgaard2018,
+ doi = {10.1029/2018ms001299},
+ year = 2018,
+ publisher = {American Geophysical Union ({AGU})},
+ volume = {10},
+ number = {9},
+ pages = {2228--2244},
+ author = {A. Damsgaard and A. Adcroft and O. Sergienko},
+ title = {Application of Discrete Element Methods to Approximate Se…
+ journal = {J. Adv. Mod. Earth Sys.}
+ }
Do not abbreviate journal title with -j option:
- $ getref -j 10.1029/2018ms001299
- @article{Damsgaard2018,
- doi = {10.1029/2018ms001299},
- year = 2018,
- publisher = {American Geophysical Union ({AGU})},
- volume = {10},
- number = {9},
- pages = {2228--2244},
- author = {A. Damsgaard and A. Adcroft and O. Sergienko},
- title = {Application of Discrete Element Methods to Approximat…
- journal = {Journal of Advances in Modeling Earth Systems}
- }
+ $ getref -j 10.1029/2018ms001299
+ @article{Damsgaard2018,
+ doi = {10.1029/2018ms001299},
+ year = 2018,
+ publisher = {American Geophysical Union ({AGU})},
+ volume = {10},
+ number = {9},
+ pages = {2228--2244},
+ author = {A. Damsgaard and A. Adcroft and O. Sergienko},
+ title = {Application of Discrete Element Methods to Approximate Se…
+ journal = {Journal of Advances in Modeling Earth Systems}
+ }
- shdl -
t@@ -133,18 +133,18 @@ The scholarref tools are meant to be chained together. …
if you want a BibTeX reference a search query, simply use UNIX pipes
to send the getdoi output as input to getref:
- $ getdoi 'damsgaard egholm ice flow dynamics' | getref
- @article{Damsgaard2016,
- doi = {10.1002/2016gl071579},
- year = 2016,
- publisher = {American Geophysical Union ({AGU})},
- volume = {43},
- number = {23},
- pages = {12,165--12,173},
- author = {A. Damsgaard and D. L. Egholm and L. H. Beem and S. …
- title = {Ice flow dynamics forced by water pressure variations…
- journal = {Geophys. Res. Lett.}
- }
+ $ getdoi 'damsgaard egholm ice flow dynamics' | getref
+ @article{Damsgaard2016,
+ doi = {10.1002/2016gl071579},
+ year = 2016,
+ publisher = {American Geophysical Union ({AGU})},
+ volume = {43},
+ number = {23},
+ pages = {12,165--12,173},
+ author = {A. Damsgaard and D. L. Egholm and L. H. Beem and S. Tula…
+ title = {Ice flow dynamics forced by water pressure variations in …
+ journal = {Geophys. Res. Lett.}
+ }
The scholarref program itself is an aggregation of the getdoi and
getref commands. If called with the -a option, the reference is
t@@ -152,10 +152,10 @@ directly inserted into the system bibliography. The ful…
the bibliography file (.bib) is assumed to be set in the $BIB
environment variable, for instance defined in the user ~/.profile.
- $ echo $BIB
- /home/ad/articles/own/BIBnew.bib
- $ scholarref -a 'damsgaard egholm ice flow dynamics'
- Citation Damsgaard2016 added to /home/ad/articles/own/BIBnew.bib
+ $ echo $BIB
+ /home/ad/articles/own/BIBnew.bib
+ $ scholarref -a 'damsgaard egholm ice flow dynamics'
+ Citation Damsgaard2016 added to /home/ad/articles/own/BIBnew.bib
-- Integrating into your favorite $EDITOR --
t@@ -168,7 +168,7 @@ in various editors to provide scholarref functionality.
My editor of choice is the plain, old, and simple (n)vi(1). I have
the following binding in my ~/.exrc, including a trailing space:
- map qr :r !scholarref
+ map qr :r !scholarref
The rest of my editor configuration can be found under my dotfiles
source code repository[4].
t@@ -177,17 +177,17 @@ source code repository[4].
You can add the following bindings to ~/.vimrc or ~/.vim/vimrc in
order to get scholarref functionality within vim(1):
- " insert reference into current buffer
- nnoremap <leader>r :r !scholarref<space>
- " append reference into $BIB file
- nnoremap <leader>R :r !scholarref --add<space>
+ " insert reference into current buffer
+ nnoremap <leader>r :r !scholarref<space>
+ " append reference into $BIB file
+ nnoremap <leader>R :r !scholarref --add<space>
- vis -
The vis(1) editor[5] is an interesting combination of modal editing
and structural regular expressions from the plan9 editor sam(1)[6].
Add the following binding to ~/.config/vis/visrc.lua:
- vis:map(vis.modes.NORMAL, leader..'r', '< scholarref ')
+ vis:map(vis.modes.NORMAL, leader..'r', '< scholarref ')
- emacs -
Don't know, figure it out yourself.
t@@ -202,8 +202,8 @@ Ctrl-i. The resultant DOI is copied to the clipboard. Si…
Ctrl-s tries to extract the DOI in the same manner, but fetches the
accompanying reference and adds it directly to the bibliography.
- map <C-i> feedkeys ":exec getdoi --notify --clip '$FILE'<Return>"
- map <C-s> feedkeys ":exec scholarref --add '$FILE'<Return>"
+ map <C-i> feedkeys ":exec getdoi --notify --clip '$FILE'<Return>"
+ map <C-s> feedkeys ":exec scholarref --add '$FILE'<Return>"
My full zathura configuration is available here: [8]
diff --git a/templates/index.gph/header.gph b/templates/index.gph/header.gph
t@@ -10,4 +10,11 @@ Welcome to...
[h|Photography|URL:https://andersdamsgaard.com|andersdamsgaard.com|70]
[h|WWW mirror|URL:${siteurl}|${siteurl}|70]
+--- About ---
+I'm a researcher working on climate processes such as glacier
+sliding, sediment mechanics, and sea-ice deformation. I typically
+do numerical modeling and the odd laboratory experiment. I appreciate
+well-written, minimal software, and have learnt to strive to these
+goals when developing my own modeling tools.
+
--- Posts ---
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.