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
import imp | |
def rmarkdown_page(page_id, **kwargs): | |
page = Page.objects.get(id=page_id) | |
if not RPY2_INSTALLED: | |
logger.info("rpy2 not found. I won't convert the raw text.") | |
return page.body | |
with open("/var/tmp/tmp.Rmd", "w") as f: | |
f.write(page.body) | |
ro.r("library('knitr');" |
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
Verifying that +daigo is my openname (Bitcoin username). https://onename.io/daigo |
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
-- See http://www.daigolab.org/instapaper-to-evernote-mac/ for instruction | |
-- Basic settings | |
set myNotebook to "Instapaper" | |
set delayInSeconds to 1 | |
set giveUpAfter to 30 | |
set oldToNewOrder to true | |
-- Function to make sure Evernote is up | |
to makeSureEvernoteIsUp(giveUpAfter) | |
tell application "Evernote" to activate |
NewerOlder