Skip to content

Instantly share code, notes, and snippets.

Ross Mounce rossmounce

Block or report user

Report or block rossmounce

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4553c47e1b26dbe6130f1d7736f148d9
Title Subtitle Authors JSTOR Discipline 1
Tracking Rural Change "Community, Policy and Technology in Australia, New Zealand and Europe" Socio
View dropbox_youtube_dl.sh
#!/bin/bash
### Original script by Geoffeg, modified by Roblight and later by me (alias me='alias Danog='Daniil Gentili'')
### How to install this script:
### wget https://gist.github.com/danog/a3963463892f7f7df74a/raw/dropbox_youtube_dl.sh -O ~/dropbox_youtube_dl.sh && chmod 755 ~/dropbox_youtube_dl.sh && ~/dropbox_youtube_dl.sh --install
###
### IFTTT Recipe URL: https://ifttt.com/recipes/277403-download-every-youtube-video-you-add-to-your-watch-later-playlist-automatically
if [ "$1" = "--install" ]; then
if [ -f /usr/local/bin/youtube-dl ]; then echo "Youtube-dl already installed."; else echo "Installing youtube-dl..."; sudo curl https://yt-dl.org/downloads/2015.04.03/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+x /usr/local/bin/youtube-dl && echo "YouTube-dl installed successfully." || echo "Couldn't install YouTube-dl."; fi
@sckott
sckott / plos_solr_search.md
Created Apr 22, 2014
PLOS API solr search using solr R pkg
View plos_solr_search.md

Install from CRAN and load

install.packages("solr")
library("solr")

Define URL

@drjwbaker
drjwbaker / Mining Digital Repositories.md
Last active Aug 29, 2015
Mining Digital Repositories: Challenges and Horizons, KB, Den Haag, 10 April 2014
View Mining Digital Repositories.md

###Mining Digital Repositories: Challenges and Horizons, KB, Den Haag, 10 April 2014

Live notes, so an incomplete, partial record of what actually happened.

Tag #digrep14


####Challenges (Thursday)

Hans Jansen, KB

View cron_helper.sh
#!/bin/bash
usage() {
cat << EOF
Usage: $0 [OPTION]... COMMAND
Execute the given command in a way that works safely with cron. This should
typically be used inside of a cron job definition like so:
* * * * * $(which "$0") [OPTION]... COMMAND
Arguments:
@tzermias
tzermias / pipelines.py
Last active Jun 15, 2019
Scrapy MySQL pipeline. Just a mirror to the asynchronous MySQL pipeline. Copy-paste it directly to pipelines.py. Database credentials are stored in settings.py. Based on http://snipplr.com/view/66986/
View pipelines.py
import MySQLdb.cursors
from twisted.enterprise import adbapi
from scrapy.xlib.pydispatch import dispatcher
from scrapy import signals
from scrapy.utils.project import get_project_settings
from scrapy import log
SETTINGS = get_project_settings()
@hubgit
hubgit / publishers-dois.csv
Created Jul 12, 2013
Approximate number of "journal article" DOIs registered by each publisher for articles published in 2012. Total: 2,189,820. ISSNs + publishers from http://www.crossref.org/titleList/ DOI counts per ISSN from http://search.labs.crossref.org/dois?year=2012&type=Journal+Article&header=true&rows=0&q={ISSN}
View publishers-dois.csv
Elsevier 529633
Springer-Verlag 206527
Wiley Blackwell (John Wiley & Sons) 110387
Wiley Blackwell (Blackwell Publishing) 100235
Informa UK (Taylor & Francis) 85869
Trans Tech Publications 53310
Sage Publications 42105
Oxford University Press 40496
American Chemical Society 39543
Ovid Technologies (Wolters Kluwer) - Lippincott Williams & Wilkins 39186
View gist:5663625
Hi bwa users,
The bwa-mem manuscript has been rejected. Interestingly, the first
reviewer only raised a couple of minor concerns and then accepted the
manuscript in the second round of the review. The second reviewer made
quite a few mistakes on some basic concepts and was hostile from the
beginning. The third reviewer gave fair and good review in the first
round, all of which have been addressed, but he then tried hard to
argue one particular mapper to be the best in accuracy that on the
contrary is inferior to most others in my view. I admit that my
View PubMedTrend.r
library("RCurl")
library("XML")
library("plyr")
library("ggplot2")
library("directlabels")
########################
# Download PubMed Data #
########################
You can’t perform that action at this time.