Based on http://gettingthingsdone.com/wp-content/uploads/2014/10/Mind_Sweep_Trigger_List.pdf
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #!/usr/bin/env Rscript | |
| json_in <- file('stdin', 'r') | |
| lat_newp <- '{"t":"RawBlock","c":["latex","\\\\newpage"]}' | |
| doc_newp <- '{"t":"RawBlock","c":["openxml","<w:p><w:r><w:br w:type=\\"page\\"/></w:r></w:p>"]}' | |
| ast <- paste(readLines(json_in, warn=FALSE), collapse="\n") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| brew link postgresql |
This file contains hidden or 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
| #!/usr/bin/osascript | |
| --Script to Export Bookends Notes to OPML file v1.18 | |
| --Written by Dave Glogowski (modified by iandol) | |
| --07 August 2017 | |
| -- | |
| --This script converts Bookends references and associated notes into an OPML structured file which can then be imported into Scrivener's research folder. | |
| --Each reference is a top level card which contains the Title, Author, Date, Type, Publisher, Abstract, and Bookends citation key | |
| --If there are notes associated with a reference, each note creates its own subordinate note card with the Page number (if any), note header, quotes, | |
| --comments, and keywords (tags). This allows you to individually review each comment and change its status (label) within Scrivener. | |
| -- |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Converts from *Omnifocus* *taskpaper* export to *org-mode*. | |
| Examples | |
| -------- | |
| > python taskpaper2org.py omnifocus.txt > omnifocus.org | |
| Notes |
This file contains hidden or 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
| ## For the user with a new installation of R. | |
| # They get a USB stick with a directory containing an .RProj file, | |
| # the workshop files, and the local_CRAN directory. They open | |
| # the .RProj, which sets the working directory for RStudio, and then | |
| # they open this file and run it, which installs pkgs from | |
| # the local_CRAN directory on the USB stick. | |
| # Specify list of packages to install | |
| pkgs <- c('ggplot2', 'rmarkdown', 'knitr') |
This file contains hidden or 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
| # https://www.r-graph-gallery.com/283-the-hourly-heatmap.html | |
| library(ggplot2) | |
| library(dplyr) # easier data wrangling | |
| library(viridis) # colour blind friendly palette, works in B&W also | |
| library(Interpol.T) # will generate a large dataset on initial load | |
| library(lubridate) # for easy date manipulation | |
| library(ggExtra) # because remembering ggplot theme options is beyond me | |
| library(tidyr) |
This file contains hidden or 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
| # WMF only: | |
| if (file.exists("/etc/wikimedia-cluster")) { | |
| message('Detected that this script is being run on a WMF machine ("', Sys.info()["nodename"], '"). Setting proxies...') | |
| Sys.setenv("http_proxy" = "http://webproxy.eqiad.wmnet:8080") | |
| Sys.setenv("https_proxy" = "http://webproxy.eqiad.wmnet:8080") | |
| } | |
| # General use: | |
| message("Checking for a personal library...") | |
| if (!dir.exists(Sys.getenv("R_LIBS_USER"))) { |