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
#!/usr/bin/env python3 | |
# | |
# Installation | |
# ~~~~~~~~~~~~ | |
# workon work3.9 | |
# | |
# brew install ffmpeg | |
# pip install ffmpeg # For "import pydub" | |
# pip install matplotlib==3.3.3 # Prevent "Segmentation: 11" fault | |
# pip install numpy |
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
#!/usr/bin/env python3 | |
def a(a1, a2): | |
a1 = a1 - 1 | |
# breakpoint() | |
result = b(a1, a2) | |
return result | |
def b(b1, b2): | |
b2 = b2 - 1 |
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
Blog post: https://www.superhouse.tv/esp32-pin-allocation-spreadsheet | |
ESP-32 pin-out spreadsheet: https://docs.google.com/spreadsheets/d/1FsCiA50mrph4NE1i6BlBVi7fMLAUyI89ZtA_V55Rn-M/edit?usp=sharing |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World !</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<script> | |
if (typeof DeviceOrientationEvent.requestPermission === 'function') { |
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
#!/usr/bin/env python3 | |
# | |
# https://tinyurl.com/gs-py-mqtt | |
# https://gist.github.com/geekscape/b227193c761c674db6c46d23f2428b78 | |
# | |
# Eclipse Paho project | |
# - https://www.eclipse.org/paho | |
# Python MQTT client module | |
# - https://pypi.org/project/paho-mqtt | |
# pip install paho-mqtt |
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
This GitHub Gist can be reached by this short URL: https://tinyurl.com/gs-py-serial | |
Set-up Python virtual environment | |
- See https://pythonbasics.org/virtualenv | |
- Avoids changing operating system installed version of Python environment | |
Install Python serial module | |
$ pip install pyserial | |
Run Thonny IDE and use the Python virtual environment for your host system |
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
// c000011 | |
// f | |
// c000000 | |
// f | |
// c100000 | |
// p0,2,4,6,9,11,13,15,16,18,20,22,25,27,29,31,32,34,36,38,41,43,45,47,48,50,52,54,57,59,61,63 | |
// c001000 | |
// p1,3,5,7,8,10,12,14,17,19,21,23,24,26,28,30,33,35,37,39,40,42,44,46,49,51,53,55,56,58,60,62 |
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
#!/Users/andyg/.virtualenvs/cv3/bin/python3 | |
# Requires OpenCV 3.0.0 for GStreamer / cv2.VideoCapture() integration | |
# workon cv | |
# | |
# pip3 install scipy | |
# pip3 install pillow # provides PIL | |
import base64 | |
import cv2 | |
import numpy |
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
Wed 27 Jul 2016 21:33:05 AEST [andyg] | |
Install morse (robot simulator) | |
- See https://github.com/morse-simulator/morse | |
- See http://www.openrobots.org/morse/doc/stable/morse.html | |
- See http://www.openrobots.org/morse/doc/latest/user/installation.html | |
- See https://en.wikipedia.org/wiki/Robotics_simulator | |
brew switch python3 3.5.1 # for Blender | |
# brew switch python3 3.5.2 # back to normal ! |
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
/* | |
* Titan Micro Electronics TM1640: 16 x 8 LED driver datasheet (Chinese) | |
* https://dl.dropboxusercontent.com/u/8663580/TM1640.pdf | |
* | |
* TODO: Turn this code into a module and use it in "nodebots.js". | |
* TODO: Make all functions available to the REPL. | |
*/ | |
var five = require('johnny-five'); | |
var board = five.Board(); |
NewerOlder