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
# imports | |
import random | |
import cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt | |
#import urllib | |
import urllib.request | |
# https://www.pyimagesearch.com/2015/03/02/convert-url-to-image-with-python-and-opencv/ |
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
#https://hub.docker.com/r/zoobab/arduino-cli/dockerfile | |
FROM frolvlad/alpine-glibc | |
RUN apk add ca-certificates python curl | |
WORKDIR /root | |
RUN curl -O -J -L https://github.com/arduino/arduino-cli/releases/download/0.4.0/arduino-cli_0.4.0_Linux_64bit.tar.gz | |
RUN tar xvzf arduino-cli_0.4.0_Linux_64bit.tar.gz | |
ENV USER root |
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
#define BUILTIN_LED 13 | |
const int trPin1 = 22; | |
const int trPin2 = 23; | |
int zoomIn; | |
int zoomOut; | |
void setup() { | |
pinMode(BUILTIN_LED, OUTPUT); |
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
/* | |
* AS5047D AMS magnetic position sensor demonstration sketch | |
* Hardware is : Fubarino Mini, default SPI port, AS5047D in 3.3V power mode | |
* | |
*/ | |
#include <SPI.h> | |
/* Each possible address in the chip */ | |
#define NOP_ADDR 0x0000 |
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
openocd -f interface/stlink-v2-1.cfg -f target/stm32f1x.cfg |
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
[env:bluepill_f103c8] | |
platform = ststm32 | |
board = bluepill_f103c8 | |
framework = arduino | |
upload_protocol = stlink | |
build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=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
/* | |
AS5047D AMS magnetic position sensor demonstration sketch | |
Hardware is : Fubarino Mini, default SPI port, AS5047D in 3.3V power mode | |
*/ | |
#include <SPI.h> | |
/* Each possible address in the chip */ |
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
1001 ls | |
1002 mv weights_2018-04-05_04-25-09_epoch_*.h5 2018-04-05_04-25-09/ | |
1003 ls -l | wc -l | |
1004 ls | |
1005 mkdir 2018-04-19_21-39-33 | |
1006 mv weights_2018-04-19_21-39-33_epoch_*.h5 2018-04-19_21-39-33/ | |
1007 ls | |
1008 ls -l | wc -l | |
1009 mkdir 2018-04-29_16-27-47 | |
1010 mv weights_2018-04-29_16-27-47_epoch_*.h5 2018-04-29_16-27-47/ |
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
$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow_gpu-0.12.0-py3-none-any.whl |
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
docker run -it ubuntu bash -v $(PWD):/mnt |