Skip to content

Instantly share code, notes, and snippets.

View jackdeadman's full-sized avatar

Jack Deadman jackdeadman

View GitHub Profile
@jackdeadman
jackdeadman / emoji.csv
Created May 16, 2020 18:59
CSV file of Github emojies
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
name,url,codes,char,category,group,subgroup
"hundred points","https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png?v8","1F4AF","💯","Smileys & Emotion (emotion)","Smileys & Emotion","emotion"
"input numbers","https://github.githubassets.com/images/icons/emoji/unicode/1f522.png?v8","1F522","🔢","Symbols (alphanum)","Symbols","alphanum"
"thumbs up","https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8","1F44D","👍","People & Body (hand-fingers-closed)","People & Body","hand-fingers-closed"
"thumbs down","https://github.githubassets.com/images/icons/emoji/unicode/1f44e.png?v8","1F44E","👎","People & Body (hand-fingers-closed)","People & Body","hand-fingers-closed"
"1st place medal","https://github.githubassets.com/images/icons/emoji/unicode/1f947.png?v8","1F947","🥇","Activities (award-medal)","Activities","award-medal"
"2nd place medal","https://github.githubassets.com/images/icons/emoji/unicode/1f948.png?v8","1F948","🥈","Activities (award-medal)","Activities","award-medal"
"3rd p
@jackdeadman
jackdeadman / oja.py
Created May 28, 2017 08:30
Code to visualise Oja's rule finding the first Principal Component
import matplotlib.pyplot as plt
import numpy as np
plt.title('Using Oja\'s rule to find principal component')
# l2 norm
def normalise(v):
return v / np.linalg.norm(v)
# Plots the direction of a vector with a line