Skip to content

Instantly share code, notes, and snippets.

View akhenakh's full-sized avatar
🏠
Working from home

Fabrice Aneche akhenakh

🏠
Working from home
View GitHub Profile
@akhenakh
akhenakh / PKGBUILD
Created January 18, 2018 16:44
s2 geometry arch AUR pkg
# Maintainer: Fabrice aneche <[email protected]>
pkgname=s2geometry-git
pkgver=r136
pkgrel=1
pkgdesc="Computational geometry and spatial indexing on the sphere"
arch=('i686' 'x86_64')
url="https://s2geometry.io/"
license=('APACHE2')
depends=('openssl-1.0' 'gflags' 'google-glog' 'python')
@akhenakh
akhenakh / PKGBUILD
Created January 18, 2018 12:41
opentrack with aruco for X-Plane
# Maintainer: Maxime Morel <[email protected]>
pkgname=opentrack-git
pkgver=r4730
pkgrel=1
pkgdesc="An application dedicated to tracking user's head movements and relaying the information to games and flight simulation software"
arch=('i686' 'x86_64')
url="https://github.com/opentrack/opentrack/"
license=('GPL3')
depends=('qt5-base' 'opencv')
@akhenakh
akhenakh / PKGBUILD
Last active January 18, 2018 12:42
aruco opentrack arch
pkgname=opentrack-aruco-git
pkgver=r44.2adf990
pkgrel=1
pkgdesc="Augmented reality library based on OpenCV"
arch=('i686' 'x86_64')
url="https://www.uco.es/investiga/grupos/ava/node/26"
license=('BSD')
depends=(opencv)
makedepends=(cmake)
source=("git+https://github.com/opentrack/aruco.git#commit=2adf990b93742593a06df699ed32c20a9796b434")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@akhenakh
akhenakh / set.go
Created November 3, 2017 18:15
Simple set for Go, could be any type
var exists = struct{}{}
type int64Set struct {
m map[int64]struct{}
}
type stringSet struct {
m map[string]struct{}
}
@akhenakh
akhenakh / PKGBUILD
Created September 14, 2017 20:28
Arch aruco needed for opentracker
pkgname=aruco-git
pkgver=2.0.19.5675
pkgrel=1
pkgdesc="Augmented reality library based on OpenCV"
arch=('i686' 'x86_64')
url="https://www.uco.es/investiga/grupos/ava/node/26"
license=('BSD')
depends=(opencv)
makedepends=(cmake)
source=("git+https://github.com/opentrack/aruco.git#commit=567503cf3a1feed334b6eaf95dbcbcdc39952feb")
@akhenakh
akhenakh / gist:929f07d697ce60ba75871b5ae0b3bb35
Last active July 4, 2017 20:52
filter OSM road network
"highway" = 'primary' OR "highway" = 'primary_link' OR
"highway" = 'trunk' OR "highway" = 'trunk_link' OR
"highway" = 'motorway' OR "highway" = 'motorway_link' OR
"highway" = 'secondary' OR "highway" = 'secondary_link' OR
"highway" = 'tertiary' OR "highway" = 'tertiary_link' OR
"highway" = 'residential' OR "highway" = 'unclassified'
https://wiki.openstreetmap.org/wiki/Routing#Routing_considerations
@akhenakh
akhenakh / motion.py
Created May 4, 2017 22:01
Motion detection via GPIO film in h264 then upload to google drive in rpi
from gpiozero import MotionSensor
from picamera import PiCamera
from datetime import datetime
from phue import Bridge
import subprocess
b = Bridge('192.168.xxx.xxx')
b.connect()
camera = PiCamera()
camera.rotation = 180
@akhenakh
akhenakh / nodrone.geojson
Last active April 24, 2017 20:50
Quebec, restricted or controlled airspace + 9km around airports or helipads, aka drones restrictions. this is an experiment do not use as reference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
The MIT License (MIT)
Copyright (c) 2016 Fabrice Aneche
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is