Skip to content

Instantly share code, notes, and snippets.

View AlexKaravaev's full-sized avatar
:shipit:

AlexKaravaev

:shipit:
  • Munich, Germany
View GitHub Profile
@gocarlos
gocarlos / Eigen Cheat sheet
Last active July 3, 2024 07:33
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.
from sanic import Sanic
from sanic.response import json
from prometheus_client import Counter
from sanic_prometheus import monitor
c1 = Counter('simple_counter', "Just simple counter")
app = Sanic("snippet")
monitor(app).expose_endpoint()
@serycjon
serycjon / filter_events.py
Created September 20, 2018 09:33
Filter tensorflow event files
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
import argparse
import tqdm
import tensorflow as tf
@r7vme
r7vme / 01-README.md
Last active May 23, 2024 03:17
Flash Jetson Xavier AGX from docker (sdkmanager)

TESTED for Jetpack 4.5.1

Official docker image had few utilities missed, which caused flashing to fail with Jetson AGX Xavier. To fix that I added them to docker image.

  1. Get NVIDIA official docker image.

  2. Rebuild docker image

mkdir sdkmanager; cd sdkmanager
# create dockefile from below gist