Skip to content

Instantly share code, notes, and snippets.

View marantz's full-sized avatar

DongHan Kim marantz

View GitHub Profile
@marantz
marantz / AttributeChange.js
Created September 1, 2021 01:32
Document Attribute Change
[
{
"_id": 1,
"texts": [
{ "language": "english", "text": "hello" },
{ "language": "german", "text": "hallo" },
{ "language": "french", "text": "bonjour" }
]
},
]
@casamia918
casamia918 / introrx.md
Last active August 22, 2024 02:54 — forked from staltz/introrx.md
[Korean ver.] The introduction to Reactive Programming you've been missing
@lampts
lampts / gensim2projector_tf.py
Last active December 7, 2020 22:37
how to convert/port gensim word2vec to tensorflow projector board.
# required tensorflow 0.12
# required gensim 0.13.3+ for new api model.wv.index2word or just use model.index2word
from gensim.models import Word2Vec
import tensorflow as tf
from tensorflow.contrib.tensorboard.plugins import projector
# loading your gensim
model = Word2Vec.load("YOUR-MODEL")
@knzm
knzm / cuda.env
Last active February 23, 2021 10:42
install CUDA 7.0 and cuDNN 6.5 v2 on CentOS 7.0
export CUDA_HOME=/usr/local/cuda
export NVIDIA_HOME=/usr/local/nvidia
export PATH=${CUDA_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
@sokratisg
sokratisg / sysctl.conf
Last active January 5, 2024 00:03
Tuned sysctl.conf for use by CentOS/RHEL 6.x or later
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Turn on execshield
# 0 completely disables ExecShield and Address Space Layout Randomization
# 1 enables them ONLY if the application bits for these protections are set to “enable”
# 2 enables them by default, except if the application bits are set to “disable”
# 3 enables them always, whatever the application bits
export ROOT="${HOME}/wii-linux"
export BUILDDIR="${PWD}"
export LFS_TGT=powerpc-linux
export PATH="${PATH}:${BUILDDIR}/tools/bin:${ROOT}/bin"
(
wget -c 'http://www.linuxfromscratch.org/patches/lfs/7.2/binutils-2.22-build_fix-1.patch'
wget -c 'http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.gz'
wget -c 'http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.1.tar.xz'
wget -c 'http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.xz'