Skip to content

Instantly share code, notes, and snippets.

View Enan456's full-sized avatar
Can we make this the new social network?

Enan Srivastava Enan456

Can we make this the new social network?
View GitHub Profile
@Enan456
Enan456 / bellman.py
Created December 17, 2017 00:38 — forked from joninvski/bellman.py
Bellman ford python implementation
import pdb
"""
The Bellman-Ford algorithm
Graph API:
iter(graph) gives all nodes
iter(graph[u]) gives neighbours of u
graph[u][v] gives weight of edge (u, v)
"""
@Enan456
Enan456 / setup_android_studio.sh
Created October 28, 2017 16:24 — forked from bmc08gt/setup_android_studio.sh
Android Studio bash installation script
#!/bin/bash
# only works atm if only one jdk package in downloads
DOWNLOADS=$HOME/Downloads
CURRENT_VERSION=$(java -version 2>&1)
JDK=` ls $DOWNLOADS | grep "jdk"`
STUDIO_URL=http://dl.google.com/android/studio/install/0.3.2/android-studio-bundle-132.893413-linux.tgz
if [ "uname -m" == "i386" -o "uname -m" == "i686" ]; then
ARCH=32
else