Skip to content

Instantly share code, notes, and snippets.

View yuya-kanai's full-sized avatar

yuya-kanai

View GitHub Profile
@yuya-kanai
yuya-kanai / colorGenerator.js
Last active April 6, 2020 07:26
Aesthetic random color generator
function hsvToRgb(h,s,l){
h /= 1;
s /= 1;
l /= 1;
let r, g, b;
if (s === 0) {
r = g = b = l; // achromatic
} else {
const hue2rgb = (p, q, t) => {
if (t < 0) t += 1;
@yuya-kanai
yuya-kanai / data_labeling_tool.py
Last active September 12, 2019 01:23
data labeling tool for jupyter notebook
from IPython.display import display
from ipywidgets import Checkbox
import csv
import gensim
word_model = gensim.models.KeyedVectors.load_word2vec_format('model.vec', binary=False)
def ambiguous_word_labeling(ambiguous_word_list):