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
# get the data as per https://www.cedricscherer.com/2019/05/17/the-evolution-of-a-ggplot-ep.-1/#code | |
library(tidyverse) | |
devtools::source_gist("https://gist.github.com/Z3tt/301bb0c7e3565111770121af2bd60c11") | |
# convert to data.frame, attach and sort region | |
df <- as.data.frame(df_ratios) | |
attach(df) | |
# get rid of NAs | |
df <- df[ ! is.na(student_ratio),] |
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 requests | |
import argparse | |
import pprint | |
import os | |
def do_upload(args): | |
ACCESS_TOKEN = args.token | |
depid = args.deposition_id | |
url = 'https://zenodo.org/api/deposit/depositions/{}'.format(depid) | |
r = requests.get(url, params={'access_token': ACCESS_TOKEN}) |
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
https://www.youtube.com/watch?v=F0sRpgnFyMY | |
## Evil mode | |
/ Start search in current buffer | |
n find next | |
N find previous | |
SPC s c clear the searches | |
:s/text/newtext/gc Search and replace | |
SPC s h Symbol highlight + options for search, multiple edit,... |
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
//from http://www.saltycrane.com/blog/2015/12/switching-emacs-vim-actually-spacemacs/ | |
Useful Spacemacs commands | |
SPC q q - quit | |
SPC w / - split window vertically | |
SPC w - - split window horizontally | |
SPC 1 - switch to window 1 | |
SPC 2 - switch to window 2 | |
SPC w c - delete current window |