Skip to content

Instantly share code, notes, and snippets.

View bogdan-kulynych's full-sized avatar

Bogdan Kulynych bogdan-kulynych

View GitHub Profile
@bogdan-kulynych
bogdan-kulynych / install-cuda-10-bionic.sh
Last active December 5, 2023 10:26
Install CUDA 10 on Ubuntu 18.04
# WARNING: These steps seem to not work anymore!
#!/bin/bash
# Purge existign CUDA first
sudo apt --purge remove "cublas*" "cuda*"
sudo apt --purge remove "nvidia*"
# Install CUDA Toolkit 10
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
@bogdan-kulynych
bogdan-kulynych / Makefile
Last active August 30, 2018 16:24
Preprocess papers for submission to arxiv
FILENAME=main
.PHONY: arxiv
arxiv: clean
pdflatex -interaction nonstopmode ${FILENAME}.tex
bibtex ${FILENAME}
pdflatex -interaction nonstopmode ${FILENAME}.tex
pdflatex -interaction nonstopmode ${FILENAME}.tex
rm -f ${FILENAME}.blg

Keybase proof

I hereby claim:

  • I am bogdan-kulynych on github.
  • I am bogdankulynych (https://keybase.io/bogdankulynych) on keybase.
  • I have a public key ASBI3DzjS4NasxiKJWii4Ve4Hu-oU0WiYQ3GZpPPzly4XAo

To claim this, I am signing this object:

@bogdan-kulynych
bogdan-kulynych / transport.py
Last active December 6, 2022 07:45
Transportation problem solver in Python
import numpy as np
from collections import Counter
def transport(supply, demand, costs):
# Only solves balanced problem
assert sum(supply) == sum(demand)
s = np.copy(supply)