Skip to content

Instantly share code, notes, and snippets.

View ssp3nc3r's full-sized avatar

Scott Spencer ssp3nc3r

View GitHub Profile
@daeh
daeh / Papers3_to_Zotero.py
Last active April 12, 2024 19:44
Import Papers 3 library into Zotero
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Script to facilitate the import of a Readcube Papers 3 library into Zotero
__Purpose of this script__
If you export your Readcube (Mekentosj) Papers3 library as a BibTeX file, the file paths to the PDFs are not formatted
correctly for Zotero to import them.
@leoluyi
leoluyi / tor.R
Created March 22, 2017 03:34
Using TOR in R
# Installing TOR on mac: brew install tor
# Run TOR on custom port: tor --SOCKSPort 9050
# Check the 'origin' field in the response to verify TOR is working.
library(httr)
GET("https://httpbin.org/get", use_proxy("socks5://localhost:9050"))
# Set proxy in curl
library(curl)
h <- new_handle(proxy = "socks5://localhost:9050")