Skip to content

Instantly share code, notes, and snippets.

View k3yavi's full-sized avatar
:octocat:
Single Cell Biology

Avi Srivastava k3yavi

:octocat:
Single Cell Biology
View GitHub Profile
# 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),]
@k3yavi
k3yavi / upload_to_zenodo.py
Created October 30, 2019 23:25 — forked from rob-p/upload_to_zenodo.py
Upload a local file to a zenodo deposition
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})
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,...
@k3yavi
k3yavi / spacemacs-cheatsheet.txt
Last active February 28, 2024 01:15 — forked from davoclavo/spacemacs-cheatsheet.md
Spacemacs cheatsheet
//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