Skip to content

Instantly share code, notes, and snippets.

@quincyliang
quincyliang / du.sh
Created February 22, 2022 07:15 — forked from joostvanveen/du.sh
Get folder sizes on command line, including --max-depth, sorted by folder size desc
# Get available disk space
df -h
# Get the top 10 biggest folders in the current directory
du -h --max-depth=1 | sort -rh | head -10
# Get the top 10 biggest folders in the current directory and their first child directories
du -h --max-depth=2 | sort -rh | head -10
# Get sizes of all folders in the current directory
@quincyliang
quincyliang / seq2seq.py
Created September 18, 2018 08:32 — forked from ilblackdragon/seq2seq.py
Example of Seq2Seq with Attention using all the latest APIs
import logging
import numpy as np
import tensorflow as tf
from tensorflow.contrib import layers
GO_TOKEN = 0
END_TOKEN = 1
UNK_TOKEN = 2