Skip to content

Instantly share code, notes, and snippets.

Avatar

Bogdan Kulynych bogdan-kulynych

View GitHub Profile
@bogdan-kulynych
bogdan-kulynych / install-cuda-10-bionic.sh
Last active Dec 7, 2021
Install CUDA 10 on Ubuntu 18.04
View install-cuda-10-bionic.sh
# 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 Aug 30, 2018
Preprocess papers for submission to arxiv
View Makefile
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
View keybase.md

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 Nov 20, 2020
Transportation problem solver in Python
View transport.py
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)