Skip to content

Instantly share code, notes, and snippets.

View jvasilakes's full-sized avatar
👨‍💻
Doing my best

Jake Vasilakes jvasilakes

👨‍💻
Doing my best
View GitHub Profile
@jvasilakes
jvasilakes / ellipsis
Created October 19, 2013 04:39
A simple ellipsis animation.
#! /bin/bash
echo -n "."
sleep 1
echo -n "."
sleep 1
echo "."
sleep 1
@jvasilakes
jvasilakes / uncollate.py
Created September 6, 2022 12:00
A generic function to uncollate a batch in PyTorch
import torch
def _is_list_like_excluding_str(x):
if isinstance(x, str):
return False
try:
iter(x)
except TypeError:
return False