Skip to content

Instantly share code, notes, and snippets.

Avatar

Motiur Rahman motiur

View GitHub Profile
@motiur
motiur / algo.txt
Last active Feb 11, 2018
Algorithms for fun
View algo.txt
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
@motiur
motiur / pytorch_keras_gcloud.txt
Last active Jun 20, 2018
Keras and Pytorch in Google Cloud VM
View pytorch_keras_gcloud.txt
# 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
You can’t perform that action at this time.