Skip to content

Instantly share code, notes, and snippets.

View yuanzhiKe's full-sized avatar

Yuanzhi Ke yuanzhiKe

View GitHub Profile
@MADscientist314
MADscientist314 / xargsync.sh
Created November 2, 2020 17:08
execute a parallel rsync with xargs for large data transfers
#!/bin/bash
# Parallel rsync script originally designed for rsyncing
# large ata transfers from RAID to RAID for the Aagaard Lab.
# Author: Michael Jochum
# Location: Baylor College of Medicine, Houston, TX, USA
# Contact : michael.jochum@bcm.edu
# Date : 2 November 2020
##################################
#Step 0: fill this shit out
@xl1
xl1 / gist:2beb461fe2cdfeac4e4dfd5581f65d4e
Created January 27, 2018 18:55
Windows Defender ウイルスと脅威の防止 を有効にできないとき

Windows Defender ウイルスと脅威の防止 を有効にできないとき

問題

Windows Defender で「ウイルスと脅威の防止」欄に赤い×マークが表示されており、「脅威のサービスが停止しました。今すぐ再起動してください。」と記載が出る

「今すぐ再起動」ボタンを押しても「不明なエラー。問題が起こりました。もう一度やり直してください。」と表示されるのみで、起動することができない

この記事で説明されているのと同様の状態になっていた

@cbaziotis
cbaziotis / AttentionWithContext.py
Last active April 25, 2022 14:37
Keras Layer that implements an Attention mechanism, with a context/query vector, for temporal data. Supports Masking. Follows the work of Yang et al. [https://www.cs.cmu.edu/~diyiy/docs/naacl16.pdf] "Hierarchical Attention Networks for Document Classification"
def dot_product(x, kernel):
"""
Wrapper for dot product operation, in order to be compatible with both
Theano and Tensorflow
Args:
x (): input
kernel (): weights
Returns:
"""
if K.backend() == 'tensorflow':
@cbaziotis
cbaziotis / Attention.py
Last active October 22, 2024 08:31
Keras Layer that implements an Attention mechanism for temporal data. Supports Masking. Follows the work of Raffel et al. [https://arxiv.org/abs/1512.08756]
from keras import backend as K, initializers, regularizers, constraints
from keras.engine.topology import Layer
def dot_product(x, kernel):
"""
Wrapper for dot product operation, in order to be compatible with both
Theano and Tensorflow
Args:
#!/bin/bash
base_dir=`pwd`
wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz
tar zxfv mecab-0.996.tar.gz
cd mecab-0.996
./configure --enable-utf8-only
make
make check