Skip to content

Instantly share code, notes, and snippets.

View motiur's full-sized avatar

Motiur Rahman motiur

  • 20:05 (UTC -12:00)
View GitHub Profile
@motiur
motiur / pytorch_keras_gcloud.txt
Last active June 20, 2018 09:04
Keras and Pytorch in Google Cloud VM
# This script is designed to work with ubuntu 16.04 LTS
# with keras 1.2.2 and the latest Pytorch with CUDA 8 support
##########################################################################
#This is used to install CUDA 8 driver for Tesla K80
##########################################################################
#!/bin/bash
echo "Checking for CUDA and installing."
# Check for CUDA and try to install.
if ! dpkg-query -W cuda-8-0; then
@motiur
motiur / algo.txt
Last active February 11, 2018 03:55
Algorithms for fun
print("hello")
A = [-1,1,10,0,-10,3.5]
def insertion_sort(A):
len_A = len(A)
for i in range(1,len_A):
j = i
while(j >0 and A[j-1] > A[j]):
A[j-1],A[j] = A[j], A[j-1]
j = j-1