Skip to content

Instantly share code, notes, and snippets.

@IanHopkinson
Created August 20, 2013 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanHopkinson/6283151 to your computer and use it in GitHub Desktop.
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
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