Skip to content

Instantly share code, notes, and snippets.

@xaedes
xaedes / Vagrantfile
Last active July 16, 2020 15:38
Vagrant: Ubuntu XFCE4/SLiM CMake C++ Boost Qt OpenGL OpenCV
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text]
@="Open with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime]
@xaedes
xaedes / indirect_filter.pxd
Created July 31, 2016 22:12
indirect_filter.pxd with flow chart
from ins_stabilization.algorithms.matrix2 cimport Matrix2, Vector2
# +----------------------------------------------------------------------------+
# | Indirect Wiener Process Filter |
# | |
# | +--+ state (update_sensor1) |
# | | | |
# | +---v--+----- +-----+ |
# | | | | | |
@xaedes
xaedes / ins stabilization.pxd
Created July 31, 2016 22:11
ins stabilization.pxd with flow chart
import numpy as np
cimport numpy as np
from ins_stabilization.algorithms.indirect_filter cimport *
# """
# +----------------+ estimated velocity
# | |
# acceleration +---------------> Indirect +----------------------------+
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
cimport numpy as np
from libc.stdlib cimport malloc, free
from math import sqrt
@xaedes
xaedes / circle-circle-intersection-points-python.py
Created March 6, 2016 15:15
circle-circle-intersection-points-python
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
from math import cos, sin, pi, sqrt, atan2
d2r = pi/180
class Geometry(object):
def circle_intersection(self, circle1, circle2):
{
"metadata": {
"name": "curve fitting"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "curve fitting 2"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{