This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go files ignoring vendor lookup | |
pt --color -G "go$" --ignore "vendor/*" mylookup | less -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void checksum(uint8_t *buf, int length, uint8_t *dstbuf, int *retlength) { | |
uint16_t sum = 0; | |
// then calculate checksum | |
for (int i=3;i<length-1;i++) { | |
sum+= buf[i]; | |
} | |
sum = CFSwapInt16HostToBig(sum); | |
uint8_t right = (sum >> 8) & 0xff; | |
uint8_t checksum = 0xFF - right; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# using macports install: | |
# port install gcc5 rocksdb leveldb | |
export CC=/opt/local/bin/gcc-mp-5 | |
export CXX=/opt/local/bin/g++-mp-5 | |
export LEDISTOP=$(pwd) | |
export LEDISROOT="${LEDISROOT:-${LEDISTOP/\/src\/github.com\/siddontang\/ledisdb/}}" | |
# LEDISTOP sanity check | |
if [[ "$LEDISTOP" == "${LEDISTOP/\/src\/github.com\/siddontang\/ledisdb/}" ]]; then | |
echo "WARNING: LEDISTOP($LEDISTOP) does not contain src/github.com/siddontang/ledisdb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "NBUnitsNumberFormatter.h" | |
@implementation NBUnitsNumberFormatter | |
- (NSString *)stringForObjectValue:(id)value; { | |
if (![value isKindOfClass:[NSNumber class]]) { | |
return nil; | |
} | |
return [self stringForFloat:[value floatValue]]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
IB_DESIGNABLE | |
@interface DMBorderLabel : UILabel | |
@property (nonatomic) IBInspectable CGFloat topInset; | |
@property (nonatomic) IBInspectable CGFloat bottomInset; | |
@property (nonatomic) IBInspectable CGFloat leftInset; | |
@property (nonatomic) IBInspectable CGFloat rightInset; |