Skip to content

Instantly share code, notes, and snippets.

@Rahul-Sagore
Rahul-Sagore / changeKoinexTitleBar.js
Last active December 31, 2017 01:18
Change the Koinex.in title Bar to display Current Value of Cryptocurrencies.
//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);
@shihyuan
shihyuan / ipcam.py
Last active November 25, 2022 18:54
Stream Video with OpenCV in Python from an Android running IP Webcam
# 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:
@georgeredinger
georgeredinger / setup.md
Created June 23, 2012 23:14 — forked from leesmith/setup.md
Ruby on Rails development setup on Ubuntu 12.04 (vim, git, rbenv)

Ruby on Rails development setup on Ubuntu 12.04

System update

# change mirror to ubuntu.osuosl.org first
sudo apt-get update

Install common libraries

sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev

@Ceasar
Ceasar / floydwarshall.py
Created April 23, 2012 23:34
Simple implementation of floyd-warhsall algorithm in Python.
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},
@galulex
galulex / install.md
Last active February 28, 2021 14:15
Ruby On Rails Ubuntu 18.04 install

Developer libs

mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...

sudo apt-get install libxslt1-dev libxml2-dev build-essential patch libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs rar

Ruby

sudo apt-add-repository ppa:brightbox/ruby-ng

sudo apt-get update