Skip to content

Instantly share code, notes, and snippets.

View nikstar's full-sized avatar

Nikita Starshinov nikstar

View GitHub Profile
struct TabBar: View {
@State private var selectedTab: Tab = .overview
@Namespace private var ns
enum Tab {
case overview, data, graphs, settings
}
var body: some View {

Keybase proof

I hereby claim:

  • I am nikstar on github.
  • I am nikstar (https://keybase.io/nikstar) on keybase.
  • I have a public key ASDRYvbtHmRjVViaM1PNBzzzuX0I1PHg-FT-DDHfyrTZ7go

To claim this, I am signing this object:

@nikstar
nikstar / cameraConv.py
Last active March 14, 2018 11:12
Convert between different ways of describing a camera
import numpy as np
from scipy.linalg import rq
def getKRC(P):
# https://ksimek.github.io/2012/08/14/decompose/
# P = [M|-MC]
M = P[:,:3]
# camera position