This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import tensorflow as tf | |
_INT = tf.int32 | |
_FLOAT = tf.float32 | |
class SkipThought(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) ? ))) |
NewerOlder