Install OpenCV 4.1.0 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.0/build
$ sudo make install
/* Tiny web server in Golang for sharing a folder | |
Copyright (c) 2010-2014 Alexis ROBERT <[email protected]> | |
Contains some code from Golang's http.ServeFile method, and | |
uses lighttpd's directory listing HTML template. */ | |
package main | |
import "net/http" | |
import "net/url" |
–ctrl a c -> create new window | |
–ctrl a A -> set window name | |
–ctrl a w -> show all window | |
–ctrl a 1|2|3|… -> switch to window n | |
–ctrl a ” -> choose window | |
–ctrl a ctrl a -> switch between window | |
–ctrl a d -> detach window | |
–ctrl a ? -> help | |
–ctrl a [ -> start copy, move cursor to the copy location, press ENTER, select the chars, press ENTER to copy the selected characters to the buffer | |
–ctrl a ] -> paste from buffer |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
var path = require('path'); | |
var fs = require('fs'); | |
var es6shim = require('es6-shim'); | |
/** | |
* dir: path to the directory to explore | |
* action(file, stat): called on each file or until an error occurs. file: path to the file. stat: stat of the file (retrived by fs.stat) | |
* done(err): called one time when the process is complete. err is undifined is everything was ok. the error that stopped the process otherwise | |
*/ | |
var walkFiles = function(dir, action, done) { |
{ | |
"name": "tf-js", | |
"version": "1.0.0", | |
"main": "script.js", | |
"license": "MIT", | |
"dependencies": { | |
"@tensorflow-models/mobilenet": "^0.2.2", | |
"@tensorflow/tfjs": "^0.12.3", | |
"@tensorflow/tfjs-node": "^0.1.9", | |
"jpeg-js": "^0.3.4" |
var spiDev = "/dev/spidev0.0"; | |
var cePin = 24; | |
var irqPin = 25; | |
var nrf = require('nrf'); | |
var radio = nrf.connect(spiDev, cePin, irqPin); // Connect to the radio | |
radio.channel(0x4c); // Set channel to 76 | |
radio.dataRate('1Mbps') // Set data rate to 1Mbps | |
radio.crcBytes(2) // Set the CRC to 2 | |
radio.autoRetransmit({ |
Install OpenCV 4.1.0 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.0/build
$ sudo make install
#!/bin/sh | |
# multi SSID with VLAN script, for ASUS AC86U with merlin | |
# | |
# setup before hand: | |
# set "router" to "AP Mode" | |
# this will put all ports and wireless in br0 | |
# create 2 guest network | |
# enable Administration => System => Enable JFFS custom scripts and configs | |
# put this script in /jffs/scripts/, name should be "services-start" |
#include <PubSubClient.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
const char* wifi_ssid = "XXXXX"; | |
const char* wifi_password = "XXXXX"; | |
char* mqtt_server = "iot.eclipse.org"; | |
char* mqtt_user = ""; |
{ | |
"id": "567d64ec.2661bc", | |
"label": "Livingroom", | |
"nodes": [ | |
{ | |
"id": "98b02e48.6b436", | |
"type": "switch", | |
"z": "567d64ec.2661bc", | |
"name": "Livingroom", | |
"property": "topic", |