Skip to content

Instantly share code, notes, and snippets.

View uzl's full-sized avatar

Uzzal Podder uzl

View GitHub Profile
@uzl
uzl / Binary_search.ipynb
Last active September 20, 2016 16:57
Documents/research/Algorithm/Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / RSA-notebook.ipynb
Created November 5, 2016 10:09
Documents/research/cryptography/Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / create_current_logdir.py
Last active February 21, 2019 03:27
Runtime Directory Creation for Log
out_dir = 'out'
if not os.path.isdir(out_dir):
os.mkdir(out_dir)
current_out_dir = os.path.join( out_dir, strftime("%Y-%m-%d__%H_%M_%S", gmtime()) )
os.mkdir(current_out_dir)
print('Output will be saved in', current_out_dir)
@uzl
uzl / keras_generator_for_multi_input.ipynb
Last active February 22, 2019 06:30
Keras Generator for Multi-input (pair wise) input
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / directory_scanning.ipynb
Created March 15, 2019 01:13
scanning directory and sub directory
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / docker_tf.md
Last active March 15, 2019 08:26
Docker run command for tensorflow
docker run --runtime=nvidia -it \
  -v /home/uzzal/tmp_data:/tmp \
  -v /share/personal/uzzal:/home  \
  -w /tmp \
  -p 8998:8888 \
  -p 5008:5000   \
  tensorflow/tensorflow:latest-gpu-py3 bash
@uzl
uzl / label_box_coordinate_rotation.ipynb
Last active March 15, 2019 10:01
rotate 4 points(x,y) of a polygon with respect to a center coordinate
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / installing_aravis.txt
Created April 9, 2019 09:36
Compiling and Installing Aravis with USB support
# download source from http://ftp.gnome.org/pub/GNOME/sources/aravis.
# Note: I found problem for USB support in github source
./configure --enable-viewer --enable-usb --enable-gst-plugin --enable-introspection=yes
make
sudo make install
@uzl
uzl / jai_usb3.py
Created April 11, 2019 07:52
Capturing Usb Industrial Camera
from harvesters.core import Harvester
import numpy as np
import matplotlib.pyplot as plt
import cv2
import time
from harvesters.util.pfnc import mono_location_formats, \
rgb_formats, bgr_formats, bayer_location_formats, \
rgba_formats, bgra_formats
@uzl
uzl / my_git.md
Last active April 26, 2019 07:23
Useful git CLI

Upload a new local repository to gitlab

This will create a new project on Gitlab without creating it manually on the server

git push --set-upstream address/your-project.git

Changing/Switching remote URLs