Skip to content

Instantly share code, notes, and snippets.

Having coffee ☕☕☕

Harsh Trivedi HarshTrivedi

Having coffee ☕☕☕
Block or report user

Report or block HarshTrivedi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# Source Link:
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] bionic stable"
sudo apt update
apt-cache policy docker-ce
# Should see something like (may be with different version number):
HarshTrivedi /
Last active Sep 13, 2019 — forked from Tushar-N/
Minimal tutorial on packing (pack_padded_sequence) and unpacking (pad_packed_sequence) sequences in pytorch.
import torch
from torch import LongTensor
from torch.nn import Embedding, LSTM
from torch.autograd import Variable
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
## We want to run LSTM on a batch of 3 character sequences ['long_str', 'tiny', 'medium']
# Step 1: Construct Vocabulary
# Step 2: Load indexed data (list of instances, where each instance is list of character indices)
HarshTrivedi / 0_reuse_code.js
Created Apr 17, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# This script will migrate schema and data from a SQLite3 database to PostgreSQL.
# Schema translation based on
# Some column types are not handled (e.g blobs).
You can’t perform that action at this time.