Skip to content

Instantly share code, notes, and snippets.

@dlarue
dlarue / raspberry_fast_capture.py
Created March 11, 2020 17:09 — forked from CarlosGS/raspberry_fast_capture.py
Fast reading from the raspberry camera with Python, Numpy, and OpenCV. See the comments for more details.
# Fast reading from the raspberry camera with Python, Numpy, and OpenCV
# Allows to process grayscale video up to 124 FPS (tested in Raspberry Zero Wifi with V2.1 camera)
#
# Made by @CarlosGS in May 2017
# Club de Robotica - Universidad Autonoma de Madrid
# http://crm.ii.uam.es/
# License: Public Domain, attribution appreciated
import cv2
import numpy as np
@dlarue
dlarue / NissanConnectEncryption.java
Created August 17, 2017 14:35 — forked from gboudreau/NissanConnectEncryption.java
Nissan Connect API encryption using Java
package me.netlift.mobile.activities;
import android.util.Base64;
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class NissanConnectEncryption {
@dlarue
dlarue / PinReadWrite.ino
Created May 15, 2017 17:27 — forked from JamesNewton/PinReadWrite.ino
Simple Arduino script to set pins high, low, input, pull up, or analog and read all or a single pin back via serial IO.
/*
PinReadWrite.ino
Simple Arduino script to set pins high, low, input, pull up, or analog and
read all or a single pin back via serial IO. Written for the tiny-circuits.com
TinyDuino in the end effector of the Dexter robot from HDRobotic.com
Commands:
#? //return binary value of digital pin, and value for analog input if exists
//if # and #, are zero, returns all pins and analog values at once.