Skip to content

Instantly share code, notes, and snippets.

@hosseinhayati128
hosseinhayati128 / cx_oracle.md
Created March 5, 2020 12:10 — forked from kimus/cx_oracle.md
Installing python cx_oracle on Ubuntu

First of all, it just seems like doing anything with Oracle is obnoxiously painful for no good reason. It's the nature of the beast I suppose. cx_oracle is a python module that allows you to connect to an Oracle Database and issue queries, inserts, updates..usual jazz.

Linux

Step 1:

sudo apt-get install build-essential unzip python-dev libaio-dev

Step 2. Click here to download the appropriate zip files required for this. You'll need:

@hosseinhayati128
hosseinhayati128 / TensorFlow_setup.md
Last active February 25, 2020 23:46
How to install TensorFlow-GPU ubuntu

How to install TensorFlow-GPU ubuntu

  • assume you are working with Ubuntu 19.10

  • if you have previous keras , tensorflow , tensorflow-gpu , cuda on your system do step 0 to delete it :

step 0 :

$ sudo pip3 uninstall keras
$ sudo pip3 show tensorflow
$ sudo pip3 uninstall tensorflow
# This file is useful for reading the contents of the ops generated by ruby.
# You can read any graph defination in pb/pbtxt format generated by ruby
# or by python and then convert it back and forth from human readable to binary format.
import tensorflow as tf
from google.protobuf import text_format
from tensorflow.python.platform import gfile
def pbtxt_to_graphdef(filename):
with open(filename, 'r') as f:
@hosseinhayati128
hosseinhayati128 / kivy_cv.py
Last active September 13, 2018 19:17 — forked from ExpandOcean/kivy_cv.py
kivy and opencv work together demo
# coding:utf-8
from kivy.app import App
from kivy.uix.image import Image
from kivy.clock import Clock
from kivy.graphics.texture import Texture
import cv2
class KivyCamera(Image):
def __init__(self, capture, fps, **kwargs):