I hereby claim:
- I am exp0nge on github.
- I am exp0nge (https://keybase.io/exp0nge) on keybase.
- I have a public key ASAN2xTzStbnxLZCrLPjbC0psXWJ_AxmWxS8dHWKZA8PXAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #include <Arduino.h> | |
| #include "disk91_LoRaE5.h" | |
| #include "Seeed_Arduino_GroveAI.h" | |
| #include <Wire.h> | |
| #include "TFT_eSPI.h" | |
| #define FF17 &FreeSans9pt7b | |
| // keys | |
| import serial | |
| ser = serial.Serial('/dev/ttyACM0') | |
| with open('log.txt', 'w') as log_file: | |
| while True: | |
| msg = '' | |
| c = ser.read(1).decode('utf-8') | |
| while c != '\n': |
| import RPi.GPIO as GPIO | |
| import time | |
| GPIO.setmode(GPIO.BCM) | |
| GPIO.setwarnings(False) | |
| GPIO.setup(18,GPIO.OUT) | |
| print "LED on" | |
| GPIO.output(18,GPIO.HIGH) | |
| time.sleep(1) | |
| print "LED off" | |
| GPIO.output(18,GPIO.LOW) |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: markdownrender | |
| labels: | |
| app: markdownrender | |
| spec: | |
| type: NodePort | |
| ports: | |
| - port: 8080 |
| #!/bin/sh | |
| #----make sure this is run as root | |
| user=`id -u` | |
| if [ $user -ne 0 ]; then | |
| echo "This script requires root permissions. Please run this script with sudo." | |
| exit | |
| fi | |
| #----ascii art! |
| """ | |
| Execute in Intel Edison | |
| """ | |
| import time | |
| def does_module_exists(module_name): | |
| try: | |
| __import__(module_name) | |
| except ImportError: | |
| return False |
| CheckDoorIntent check my {door|CheckDoorQuery} | |
| CheckDoorIntent to check my {door|CheckDoorQuery} | |
| CheckDoorIntent see if someone is at my {door|CheckDoorQuery} | |
| CheckDoorIntent is anyone there {anyone|CheckDoorQuery} | |
| CheckDoorIntent do I have a {package|CheckDoorQuery} | |
| CheckDoorIntent what is at the {door|CheckDoorQuery} | |
| StatusIntent to check my camera {status|StatusQuery} | |
| StatusIntent {status|StatusQuery} | |
| StatusIntent is my camera {working|StatusQuery} | |
| StatusIntent is my camera {functional|StatusQuery} |
| { | |
| "intents": [ | |
| { | |
| "slots": [ | |
| { | |
| "name": "CheckDoorQuery", | |
| "type": "LITERAL" | |
| } | |
| ], | |
| "intent": "CheckDoorIntent" |
| #!/bin/bash | |
| ( | |
| dmesg -D | |
| echo Scanning for wifi networks: | |
| ifup wlan0 | |
| wpa_cli scan | |
| echo -e "\nStrongest networks found:" | |
| wpa_cli scan_res | sort -grk 3 | head | awk -F '\t' '{print $NF}' | uniq | |
| set -e | |
| echo -e /"\nWARNING: this script will back up and remove all of your current wifi configs." |