Skip to content

Instantly share code, notes, and snippets.

@ByungSunBae
ByungSunBae / Kor_word_embedding_mod.py
Created February 14, 2019 09:58
Simple Korean word embedding (modified) with mxnet
# coding: utf-8
# From : https://gist.github.com/haven-jeon/6b508f4547418ab26f6e56b7a831dd9a#file-word2vec-ipynb
# !git clone https://github.com/haven-jeon/KoWordSpacing
# !bunzip2 KoWordSpacing/input.txt.bz2
# # 임베딩 평가 데이터
# !git clone https://github.com/SungjoonPark/KoreanWordVectors
@ByungSunBae
ByungSunBae / quiz_answer_191227.R
Last active December 27, 2019 14:48
sync_plots_quiz_answer
library("shiny")
library("ggplot2")
library("dplyr")
# reference :
# https://shiny.rstudio.com/gallery/plot-interaction-basic.html
# https://shiny.rstudio.com/gallery/plot-interaction-zoom.html
data <- mtcars %>% mutate(id = 1:n())
@ByungSunBae
ByungSunBae / main.rs
Created January 29, 2020 09:50
two integers in rust
//use std::cmp;
/*
impl Solution {
pub fn two_sum(nums: Vec<i32>, target: i32) -> Vec<i32> {
}
}
*/
@ByungSunBae
ByungSunBae / main.rs
Created February 5, 2020 02:25
Two Sum problem
// From : https://leetcode.com/problems/two-sum
pub struct Inputs {
pub nums: Vec<i32>,
pub target: i32,
}
pub trait Solution {
fn two_sum(&self) -> Vec<i32>;
fn result_solution(&self) -> String {
@ByungSunBae
ByungSunBae / main.py
Created February 11, 2020 00:58
simply multiple read files with multiprocessing in python
# from : https://stackoverflow.com/questions/36587211/easiest-way-to-read-csv-files-with-multiprocessing-in-pandas
import os
import pandas as pd
from multiprocessing import Pool
from glob import glob
data_files = glob(os.path.join(data_dir, "*.xlsx"))