Skip to content

Instantly share code, notes, and snippets.

View Yevgnen's full-sized avatar
🔥

Yevgnen Yevgnen

🔥
View GitHub Profile
@Yevgnen
Yevgnen / seq2seq
Last active September 4, 2021 16:17
PyTorch seq2seq.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import torch
import torch.nn.functional as F
from torch import nn
from torch.autograd import Variable
np.random.seed(0)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import tensorflow as tf
_INT = tf.int32
_FLOAT = tf.float32
class SkipThought(object):

Articles

2014 - Word2vec Explained: Deriving Mikolov Et Al.’s Negative-Sampling Word-Embedding Method

EXTS=( 3GP ASF AVI FLV M4V MKV MOV MP4 MPEG MPG MPG2 MPG4 RMVB WMV MTS )
brew install duti
for ext in ${EXTS[@]}
do
lower=$(echo $ext | awk '{print tolower($0)}')
duti -s io.mpv $ext all
duti -s io.mpv $lower all
done
(require 'subr-x)
(require 'projectile)
(defvar ivy--switch-buffer-name-max-length 40)
(defvar ivy--switch-buffer-mode-max-length 18)
(defvar ivy--switch-buffer-project-max-length 15)
(defvar ivy--switch-buffer-delimiter "")
(defun ivy--switch-buffer-pad (str len)
(concat str (make-string (- len (length str)) ? )))