Skip to content

Instantly share code, notes, and snippets.

View cappelchi's full-sized avatar

Mikhail cappelchi

  • Moscow
View GitHub Profile
@cappelchi
cappelchi / setup_qiime2.py
Created October 8, 2020 11:03 — forked from cdiener/setup_qiime2.py
Set up Qiime 2 on Google colab
"""Set up Qiime 2 on Google colab.
Do not use this on o local machine, especially not as an admin!
"""
import os
import sys
from subprocess import Popen, PIPE
r = Popen(["pip", "install", "rich"])
@cappelchi
cappelchi / rotate_2d_point.py
Created October 6, 2020 22:02 — forked from LyleScott/rotate_2d_point.py
Rotate X,Y (2D) coordinates around a point or origin in Python
"""
Lyle Scott, III // lyle@ls3.io
Multiple ways to rotate a 2D point around the origin / a point.
Timer benchmark results @ https://gist.github.com/LyleScott/d17e9d314fbe6fc29767d8c5c029c362
"""
from __future__ import print_function
import math