Skip to content

Instantly share code, notes, and snippets.

@afonari
afonari / gram_schmidt.py
Created October 17, 2017 18:36 — forked from iizukak/gram_schmidt.py
Gram-Schmidt Orthogonization using Numpy
import numpy as np
def gs_cofficient(v1, v2):
return np.dot(v2, v1) / np.dot(v1, v1)
def multiply(cofficient, v):
return map((lambda x : x * cofficient), v)
def proj(v1, v2):
return multiply(gs_cofficient(v1, v2) , v1)
@afonari
afonari / greek_alphabet.py
Created November 4, 2015 14:16 — forked from beniwohli/greek_alphabet.py
A Python dictionary mapping the Unicode codes of the greek alphabet to their names
greek_alphabet = {
u'\u0391': 'Alpha',
u'\u0392': 'Beta',
u'\u0393': 'Gamma',
u'\u0394': 'Delta',
u'\u0395': 'Epsilon',
u'\u0396': 'Zeta',
u'\u0397': 'Eta',
u'\u0398': 'Theta',
u'\u0399': 'Iota',

Using SSH tunnel to set-up secured connection (utorrent) in Windows XP under VMWare fusion (MacOS host)

Soft/web-ware needed

  1. tunnelr.com account or any other SSH tunnel provider.
  2. VMWare fusion.
  3. Windows XP.
  4. utorrent.

How to

  1. Start tunneling from MacOS Terminal: