A curated list of awesome Python frameworks, libraries, software and resources.
Inspired by awesome-php.
A curated list of awesome Python frameworks, libraries, software and resources.
Inspired by awesome-php.
| #!/bin/bash | |
| # author: | |
| # https://stackoverflow.com/a/28709668/1957036 | |
| cecho() { | |
| local code="\033[" | |
| case "$1" in | |
| black | bk) color="${code}0;30m";; | |
| red | r) color="${code}1;31m";; |
This walkthrough describes setting up Detectron (3rd party pytorch implementation) and Graph Conv Net (GCN) repos on the UMass cluster Gypsum. Most commands are specific to that setting.
$ module list
Currently Loaded Modulefiles:
1) slurm/16.05.8 3) hdf5/1.6.10 5) gcc5/5.4.0 7) cudnn/5.1
2) openmpi/gcc/64/1.10.1 4) fftw2/openmpi/open64/64/float/2.1.5 6) cuda80/toolkit/8.0.61 8) hdf5_18/1.8.17
| #-------------------------- | |
| # USER-SPECIFIED DATA | |
| #-------------------------- | |
| # Tune these parameters | |
| num_classes = 2 | |
| image_shape = (160, 576) | |
| EPOCHS = 40 | |
| BATCH_SIZE = 16 |
| import serial | |
| import csv | |
| import re | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| portPath = "/dev/ttyACM0" # Must match value shown on Arduino IDE | |
| baud = 115200 # Must match Arduino baud rate | |
| timeout = 5 # Seconds | |
| filename = "data.csv" |
| # Option 1: Use apt-get | |
| # keys taken from https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo | |
| cd ~/GitHub/r-with-intel-mkl/ | |
| wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB | |
| apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB | |
| sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list' | |
| sudo apt-get update && sudo apt-get install intel-mkl-64bit |
| Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
| The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
| Following are the changes that I made to make it work. | |
| $ sudo apt-get update | |
| $ sudo apt-get install lirc | |
| # Add the following lines to /etc/modules file | |
| lirc_dev | |
| lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
refer to: https://stackoverflow.com/questions/39371772/how-to-install-anaconda-on-raspberry-pi-3-model-b
{USER}: pi
Install Miniconda 3:
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
sudo md5sum Miniconda3-latest-Linux-armv7l.sh # (optional) check md5
sudo /bin/bash Miniconda3-latest-Linux-armv7l.sh # -> change default directory to /home/pi/miniconda3
| /* | |
| Simple wemos D1 mini MQTT example | |
| This sketch demonstrates the capabilities of the pubsub library in combination | |
| with the ESP8266 board/library. | |
| It connects to the provided access point using dhcp, using ssid and pswd | |
| It connects to an MQTT server ( using mqtt_server ) then: | |
| - publishes "connected"+uniqueID to the [root topic] ( using topic ) |