Skip to content

Instantly share code, notes, and snippets.

@p3jitnath
p3jitnath / install-docker.sh
Last active June 26, 2025 20:17
Docker and Nvidia Docker installation in Ubuntu 20.04 LTS
# WARNING : This gist in the current form is a collection of command examples. Please exercise caution where mentioned.
# Docker
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
@Randl
Randl / ieee_fullname.bst
Last active June 26, 2023 11:06
CVPR bibliography with natbib support
% Fixed extra right bracket
%
% Evgenii Zheltonozhskii, 09/28/2020, zheltonozhskiy@gmail.com
%
% ---------------------------------------------------------------
% Modified CVPR ieee_fullname.bst to support natbib
%
% Evgenii Zheltonozhskii, 03/10/2019, zheltonozhskiy@gmail.com
%
% ---------------------------------------------------------------
@damascenodiego
damascenodiego / print_spectactor_coord.py
Created April 25, 2019 15:55
Code to print the current coordinate of the spectactor @ Carla 0.9.5
#!/usr/bin/env python
# ==============================================================================
# -- find carla module ---------------------------------------------------------
# ==============================================================================
import glob
import os
import sys
@qpwo
qpwo / monte_carlo_tree_search.py
Last active November 4, 2025 16:42
Monte Carlo tree search (MCTS) minimal implementation in Python 3, with a tic-tac-toe example gameplay
"""
A minimal implementation of Monte Carlo tree search (MCTS) in Python 3
Luke Harold Miles, July 2019, Public Domain Dedication
See also https://en.wikipedia.org/wiki/Monte_Carlo_tree_search
https://gist.github.com/qpwo/c538c6f73727e254fdc7fab81024f6e1
"""
from abc import ABC, abstractmethod
from collections import defaultdict
import math