Skip to content

Instantly share code, notes, and snippets.

@eyaler
eyaler / notebook.ipynb
Last active Apr 15, 2021
siren_video.ipynb
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eyaler
eyaler / image.html
Created Aug 26, 2020
A complete solution to the window fitting image scaling display problem in HTML
View image.html
<!DOCTYPE html>
<html>
<body style="overflow:hidden; margin:0; text-align:center;">
<img src="https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg" style="height:100vh; max-width:100%; object-fit: contain;">
</body>
</html>
@eyaler
eyaler / junkie.ipynb
Last active Sep 26, 2020
junkie.ipynb
View junkie.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eyaler
eyaler / timestributed_dropout_error
Created Oct 25, 2016
timedistributed(dropout) error when batch_size is specified and using theano
View timestributed_dropout_error
import numpy
from keras.models import Model
from keras.layers import Input, Dropout, TimeDistributed
batch_size = 10
timesteps = 5
nb_features = 7
dropout = 0.5
input = Input(batch_shape=(batch_size, timesteps, nb_features))
@eyaler
eyaler / graph.json
Last active Oct 17, 2020
Force-Directed Graph with Drag/Zoom/Pan/Center/Resize/Labels/Shapes/Filter/Highlight
View graph.json
{
"graph": [],
"links": [
{"source": 0, "target": 1},
{"source": 0, "target": 2},
{"source": 0, "target": 3},
{"source": 0, "target": 4},
{"source": 0, "target": 5},
{"source": 0, "target": 6},
{"source": 1, "target": 3},