# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
//HOW to Use: Just paste the below function definition on developer console while you are on Koinex.in | |
// Then call this function on console with Crypto Name like for Bitcoin: showInTitle('BCH') | |
var showInTitle = (function showInTitle() { | |
console.log('Now you can call this function like: showInTitle("BTC");'); | |
var CryptoArray = ['BTC', 'ETH', 'XRP', 'LTC', 'BCH', 'GNT', 'MIOTA', 'OMG']; | |
console.log('Available Cryptos are: ', CryptoArray.join(', ')) | |
return function (cryptoName) { | |
var cryptoIndex = CryptoArray.indexOf(cryptoName); |
# Stream Video with OpenCV from an Android running IP Webcam (https://play.google.com/store/apps/details?id=com.pas.webcam) | |
# Code Adopted from http://stackoverflow.com/questions/21702477/how-to-parse-mjpeg-http-stream-from-ip-camera | |
import cv2 | |
import urllib2 | |
import numpy as np | |
import sys | |
host = "192.168.0.220:8080" | |
if len(sys.argv)>1: |
def adj(g): | |
""" | |
Convert a directed graph to an adjacency matrix. | |
Note: The distance from a node to itself is 0 and distance from a node to | |
an unconnected node is defined to be infinite. | |
>>> g = {1: {2: 3, 3: 8, 5: -4}, |