Skip to content

Instantly share code, notes, and snippets.

View KevinHeaton-Money4nothin's full-sized avatar

KevinHeaton-Money4nothin

View GitHub Profile
@KevinHeaton-Money4nothin
KevinHeaton-Money4nothin / multiple_ssh_setting.md
Created September 22, 2016 03:54
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@KevinHeaton-Money4nothin
KevinHeaton-Money4nothin / Boo
Last active September 22, 2016 03:52 — forked from drewolson/reflection.go
Golang Reflection Example
<script src="https://gist.github.com/KevinHeaton-Money4nothin/d4947f183c7a63a66049642571a6170b.js"></script>
@KevinHeaton-Money4nothin
KevinHeaton-Money4nothin / morgan_qp.py
Created September 2, 2016 14:36 — forked from MoLucky/morgan_qp.py
Quadratic Programming for Morgan
# Let's us use print() as a function later.
from __future__ import print_function
# Load the file into a list of (H, L, y) tuples
with open("luckeyfxnsample_g.csv", "r") as handle:
data = [tuple(float(x) for x in line.split(",")) for line in handle]
def transform(H, L, y):
"""Transform (H, L, y) tuples into (y, HL, L, L^2, L^3) tuples."""
return y, H * L, L, L * L, L * L * L