Skip to content

Instantly share code, notes, and snippets.

@idavydov
idavydov / PACKAGES
Last active November 4, 2025 10:14
reproducing r-lib/pak#804
Package: cmdstanr
Version: 0.8.1
Depends: R (>= 3.5.0)
Imports: checkmate, data.table, jsonlite (>= 1.2.0), posterior (>= 1.4.1), processx (>= 3.5.0), R6 (>= 2.4.0), withr (>= 2.5.0), rlang (>= 0.4.7)
Suggests: bayesplot, ggplot2, knitr (>= 1.37), loo (>= 2.0.0), rmarkdown, testthat (>= 2.1.0), Rcpp
NeedsCompilation: no
License: BSD_3_clause + file LICENSE
SystemRequirements: CmdStan
(https://mc-stan.org/users/interfaces/cmdstan)
@idavydov
idavydov / README
Last active July 4, 2022 19:52
backup google photos, google drive, dropbox locally
To make this work you have to
a) install rclone https://rclone.org/
b) configure remote google photos (my_gphotos here). to do this: rclone config, new remote, etc: https://rclone.org/googlephotos/
c) same for my_gdrive, my_dropbox if needed
d) optionally, configure outgoing mail, to receive email reports: https://raspberry-projects.com/pi/software_utilities/email/ssmtp-to-send-emails
e) test that it works from command-line
f) add this script to cron, `crontab -e` (see the crontab file)
A few things to note:
1. It recommended to create your own client id (see here: https://rclone.org/drive/#making-your-own-client-id ).
@idavydov
idavydov / README.txt
Last active November 8, 2023 19:18 — forked from QuentinAndre/README.txt
A Jupyter NBConvert HTML template adding a toggle to hide/show each code cell.
# You need to put index.html.j2 & conf.json into a directory called, e.g., mytmpl/.
# Typical usage: The --no-prompt is important (layout is all messed up otherwise).
jupyter nbconvert MySuperNotebook.ipynb --to html --no-prompt --template mytmpl/
# By default, all cells are hidden. You can override this behavior for some cells by giving them a 'code_shown' tag.
@idavydov
idavydov / lstm_test_eager.py
Last active March 15, 2018 22:25
LSTM benchmark: tensorflow, eager, pytorch
#!/usr/bin/env python
import tensorflow as tf
import tensorflow.contrib.eager as tfe
# use 1 CPU
conf=tf.ConfigProto(
intra_op_parallelism_threads=1,
inter_op_parallelism_threads=1)
tfe.enable_eager_execution(conf)
@idavydov
idavydov / matr
Last active April 8, 2016 11:37
sample code for gonum/matrix bug #313
61 61
-1.0538868194077929e-226
4.00427173344036e-228
1.4137280056857302e-227
1.6438697740531745e-227
2.944946906701128e-228
0
0
0
1.402160033201652e-227