Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Kaushal Shah Kaushal28

🎯
Focusing
  • Crest Data Systems
  • Ahmedabad
View GitHub Profile
View transition_matrix.py
import numpy as np
T = np.load('datasets/T.npy')
for i in range(12):
for j in range(4):
print (T[i,:,j])
'''
[0.9 0.1 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. ] for starting state (1,1) and action Down
[0.9 0. 0. 0. 0.1 0. 0. 0. 0. 0. 0. 0. ] for starting state (1,1) and action Left
[0.1 0.1 0. 0. 0.8 0. 0. 0. 0. 0. 0. 0. ] for starting state (1,1) and action Up
@Momoumar
Momoumar / JupyterNotebookDownloader.sh
Last active Dec 31, 2020
Download all programming assignments Notebook. #Coursera #DeepLearning.ai #Jupyter #Python
View JupyterNotebookDownloader.sh
#To download all your programming assignments including all files and notebooks, follow these steps:
#1 - Go to the root tree folder for instance: https://hub.coursera-notebooks.org/user/${user_token}/tree/
#2- Open the terminal by clicking the + button on the right-hand corner
#3 - Enter the following command in the terminal:
tar cvfz allassignments.tar.gz *
#4 - The previous command will create a zip named allassignments containing all your programmings assignment
#5 - Select allassignments.tar.gz and download
#6 - Enjoy, don't forget to delete it afterward ;-)
@cyhsutw
cyhsutw / MathJax.ipynb
Last active Jul 8, 2021
Grabbed from https://github.com/odewahn/ipynb-examples, converted to v3 for GitHub to render.
View MathJax.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Kaushal28
Kaushal28 / Main2Activity.java
Last active Aug 30, 2016
This is my activity from where the place picker activity is called on button click. (Main2Activity)
View Main2Activity.java
package com.example.kaushal28.locationbasedreminder;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v7.app.AppCompatActivity;