Skip to content

Instantly share code, notes, and snippets.

View kjanjua26's full-sized avatar
😍
Learning

Kamran Janjua kjanjua26

😍
Learning
View GitHub Profile
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
<head>
{% include _head.html %}
</head>
<body class="home">
import common
import tensorflow as tf
from tensorflow.python.ops import rnn_cell
from tensorflow.python.ops.rnn import bidirectional_rnn
import time
import matplotlib.pyplot as plt
import numpy as np
sequence_length = tf.placeholder(tf.int32, [None])
conv_concat = []
max_pool_size = 4
import common
import tensorflow as tf
from tensorflow.python.ops import rnn_cell
from tensorflow.python.ops.rnn import bidirectional_rnn
import time
# Utility functions
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.4)
return tf.Variable(initial)
#Handling the imports
import sklearn
from sklearn.model_selection import train_test_split
import pandas
import seaborn as sb
import matplotlib as plt
import numpy as np
from sklearn.preprocessing import StandardScaler
import cv2
from PIL import Image
@kjanjua26
kjanjua26 / kml.py
Created September 22, 2016 11:48
This program takes data of longtitude and latitude from the csv file and plots the points on google earth.
#This program takes data of longtitude and latitude from the csv file and plots the points on google earth.
import simplekml #the library used to map longitudes and latitudes on google earth
import pandas #used to read spreadsheet data
import tkinter #the library used to generate gui stuff in python
from tkinter.filedialog import askopenfilename
def browse():
global infile #used so that only infile information is fetched instead of executing it directly.
infile = askopenfilename()
@kjanjua26
kjanjua26 / Python_GUI.py
Last active August 30, 2016 21:11
A simple python program to create a gui box which has a widget to get your name displayed, change the background color of the box and also an area where you can input random stuff.
import tkinter as tk
from tkinter import ttk
from tkinter import scrolledtext
from tkinter import Menu
root = tk.Tk()
def _quit():
root.quit()
root.destroy()
@kjanjua26
kjanjua26 / health_potion.py
Created August 30, 2016 01:10
A simple game which takes a random number from the random module and adds it to the health of the player and if the difficulty level is increased the lesser the health player gets.
import random
import tkinter
from tkinter import messagebox
health = 50
difficulty = input("Please input difficulty level: ")
difficulty = int(difficulty)
health_potion = random.randint(25, 50)
health = health + health_potion