A collection of small snippets that I learn day to day across a variety of tasks I am involved in. Often, they are curious and useful insights that I wish to share with everyone but are too short for a full blog post.
Browse them here til.raivivek.in. Count: 67
- R-lang
- Algorithms
- Biology
- Computing
- Zen lessons
- Statistics | Methods | Math
- Miscellaneous
- Productivity
- Python (lang)
- GNU Unix | Command line
- Writing
- Evaluating string as an expression
- Save the "current" figure
- knitr: Put code as appendix
- Large datasets in
R
- Restarting your R Studio server session
stack
andunstack
- ggplot tricks
- Bin-or-discretize numeric data (ggplot)
- Using conditionals (
if
-else
) in data pipes - Using Microsoft R Open 3.5.X
- Modifying
ggplot2
objects after creation
- Editing remote files
- Snakemake wildcard rules
- Snakemake on HPC
- GitHub actions
- Automount + SSHFS on macOS
- Database comparison
- Mount remote server locally on macOS
- SOAP-vs-REST stack
pkg-config
for managing compilation
- Banzhaf Power Index
- Using
cookiecutter
to generate project skeleton - Setting up hostname in macOS
- Pizza Effect
- Email forwarding for your domain
- HMMER
- COVID-19 and groceries
- Using Zotero with WebDAV for file storage
- Choosing right Wifi channel
- Fix Firefox auto DPI scaling
- Batch import into Zotero
- Keeping notes for long time
- Using Asana for project management
- Getting Research Idea I
- Using Hammerspoon on macOS for quick tasks
- Quickly organizing ideas
pandas.get_dummies
: Vectorize category variablesmultiprocessing
module in Python- Itertools module
- Check if
STDIN
istty
- Writing Conda Recipes
- pymust.watch
- Records: SQL for Humans
- Super considered super!
- Don't use
f.readlines()
- Care with
string.split()
contextlib
module- ORMs and Database migration
- Writing unbuffered output
- Watch LaTeX file and autocompile
- OOM Killer
- Fork a command to background
- GNU sort has a '-u' option to output only unique values for the columns used for sorting
- Fetch random lines from file
- Run a command for some time
- Changing priority of running programs
- Concatenate files with same header
© 2015-2020 Vivek Rai