Skip to content

Instantly share code, notes, and snippets.

View erobic's full-sized avatar
🏠
Working from home

Robik Shrestha erobic

🏠
Working from home
View GitHub Profile
@erobic
erobic / load_jpeg_with_tensorflow.py
Created October 2, 2016 15:16 — forked from eerwitt/load_jpeg_with_tensorflow.py
Example loading multiple JPEG files with TensorFlow and make them available as Tensors with the shape [[R, G, B], ... ].
# Typical setup to include TensorFlow.
import tensorflow as tf
# Make a queue of file names including all the JPEG images files in the relative
# image directory.
filename_queue = tf.train.string_input_producer(
tf.train.match_filenames_once("./images/*.jpg"))
# Read an entire image file which is required since they're JPEGs, if the images
# are too large they could be split in advance to smaller files or use the Fixed
@erobic
erobic / README.md
Created November 14, 2020 13:57 — forked from steveharoz/README.md
Interactive tool for creating directed graphs using d3.js.

directed-graph-creator

Interactive tool for creating directed graphs, created using d3.js.

Operation:

  • drag/scroll to translate/zoom the graph
  • shift-click on graph to create a node
  • shift-click on a node and then drag to another node to connect them with a directed edge