- In Google Docs, click the Extensions > Apps Scripts menu item.
- Rename the project "Validate External Links"
- Replace content of
code.gs
with the code in this Gist. - Save the script.
- Reload the Google Doc.
- Activate by clicking the Extensions > Validate External URLs > Highlight Broken URLs menu item.
- Accept the permissions.
- Re-run the extension.
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
# Copied from a tweet by @drbunsen | |
# https://twitter.com/drbunsen | |
extract () { | |
if [ -f $1 ] | |
then | |
case $1 in | |
(*.tar.bz2) tar xjf $1 ;; | |
(*.tar.gz) tar xzf $1 ;; | |
(*.bz2) bunzip2 $1 ;; | |
(*.rar) unrar x $1 ;; |
I hereby claim:
- I am achabotl on github.
- I am chabot (https://keybase.io/chabot) on keybase.
- I have a public key ASBFew0EDGBo-CHHeYerUn6t1Em3v5jEODnYwIDT0gF3PAo
To claim this, I am signing this object:
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
#!/bin/sh | |
if [[ "${1}" == "http"* ]] ; then | |
doi="${1}" | |
else | |
doi="http://dx.doi.org/${1}" | |
fi | |
# Stopped working around 2015-10-04. | |
# curl -sLH "Accept: text/bibliography; style=bibtex" "${doi}" | sed 's/^ *//' |
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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US"> | |
<info> | |
<title>The Journal of the Acoustical Society of America</title> | |
<id>http://www.zotero.org/styles/the-journal-of-the-acoustical-society-of-america</id> | |
<link href="http://www.zotero.org/styles/the-journal-of-the-acoustical-society-of-america" rel="self"/> | |
<link href="http://scitation.aip.org/journals/doc/ASALIB-home/corp/pdf/jasa/author_contrib.pdf" rel="documentation"/> | |
<link href="http://www.zotero.org/styles/apa" rel="template"/> | |
<author> | |
<name>Etienne Gaudrain</name> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.