Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥

Yevgnen Yevgnen

🔥
View GitHub Profile
View export_safari_reading_list.py
#!/usr/bin/env python
"""
export_safari_reading_list.py
~~~~~~~~~~~~~~
This script gets a list of all the URLs in Safari Reading List, and
writes them all to a file.
Requires Python 3.
"""
@Yevgnen
Yevgnen / urlsafari
Created Sep 5, 2019 — forked from kshiteesh/urlsafari
This AppleScript saves all the tabs open in all Safari windows to a Markdown file.
View urlsafari
(*
Export All Safari Tabs in All Open Windows to a Markdown File
July 13, 2015
// SCRIPT PAGE
http://hegde.me/urlsafari
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file
@Yevgnen
Yevgnen / emacs26.sh
Created Jun 3, 2018 — forked from kissge/emacs26.sh
Compile Emacs 26 on Ubuntu 16.04
View emacs26.sh
mkdir emacs
cd emacs
git init
git remote add origin https://github.com/emacs-mirror/emacs.git
git fetch --depth 1 origin emacs-26
git reset --hard FETCH_HEAD
sudo apt install autoconf make gcc texinfo libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff5-dev libgnutls-dev libncurses5-dev
./autogen.sh
./configure
make
@Yevgnen
Yevgnen / install-emacs26.sh
Last active Oct 26, 2018
Emacs 26 installation
View install-emacs26.sh
brew install gnutls texinfo libxml2
cd ~/Downloads
git clone --branch work --depth 1 https://bitbucket.org/mituharu/emacs-mac.git
cd emacs-mac
./autogen.sh
export PATH=/usr/local/opt/texinfo/bin/:$PATH
export PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig
./configure --with-mac \
View test_tf.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
def load_data(size,
min_len=5,
max_len=15,
View test_pad.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Illustrating pytorch's padding API
import torch
import numpy as np
vocab_size = 20
max_len = 10
@Yevgnen
Yevgnen / seq2seq
Last active Sep 4, 2021
PyTorch seq2seq.
View 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)
View skipthought.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import tensorflow as tf
_INT = tf.int32
_FLOAT = tf.float32
class SkipThought(object):
View test.org

Articles

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

View duti.sh
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