Created
August 20, 2013 15:40
-
-
Save IanHopkinson/6283151 to your computer and use it in GitHub Desktop.
A little bit of JavaScript that helps setup a box on ScraperWiki for tools inside that box
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
function save_api_stub(){ | |
scraperwiki.exec('echo "' + scraperwiki.readSettings().target.url + '" > ~/tool/dataset_url.txt; ') | |
} | |
function run_once_install_packages(){ | |
scraperwiki.exec('run-one tool/runonce.R &> tool/log.txt &') | |
} | |
$(function(){ | |
save_api_stub(); | |
run_once_install_packages(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment