Skip to content

Instantly share code, notes, and snippets.

KEYBINDINGS
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings
are:
F2 - Create a new window
F3 - Move to previous window
F4 - Move to next window
@ereday
ereday / pad_packed_demo.py
Created October 5, 2018 12:36 — forked from Tushar-N/pad_packed_demo.py
How to use pad_packed_sequence in pytorch
import torch
import torch.nn as nn
from torch.autograd import Variable
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
import torch.nn.functional as F
import numpy as np
import itertools
def flatten(l):
return list(itertools.chain.from_iterable(l))
@ereday
ereday / White-Male-Names.csv
Created December 16, 2018 23:16 — forked from mbejda/White-Male-Names.csv
Dataset of ~40,000 white (Caucasian) male names for NLP training and analysis. The names have been retrieved from US public inmate records. (last name, first name,gender,race).
We can't make this file beautiful and searchable because it's too large.
last name, first name,gender,race
aaron, billy r ,m,white
aaron, charles d ,m,white
aaron, clarence d ,m,white
aaron, justin c ,m,white
aaron, roy s ,m,white
aaron, william l ,m,white
aaronson, cary ,m,white
abate, manuel j ,m,white
abaza, eric ,m,white