Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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 / 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 ).