Skip to content

Instantly share code, notes, and snippets.

class Keyboad():
def __init__(self):
self.conf1 = 100
self.keymap = []
self.extensions = []
def find_key(self, row, col):
return self.keymap[row][col]
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
call_sign = "JI1SVR"
sudo apt install ssh
sudo apt install wget
sudo apt install vim
sudo apt install -y docker.io
sudo usermod -aG docker techlab
sudo swapoff -a
"""A demo which runs object detection on OpenCV frames."""
import argparse
import cv2
import logging
import os
import edgetpu.detection.engine
FONT = cv2.FONT_HERSHEY_SIMPLEX
@a2chub
a2chub / 00_readme
Created July 19, 2017 09:50
simple nginx on docker
$ docker build . -t hoge/web
$ docker run -p 8080:80 -t hoge/web
#!/bin/bash
cd ~
virtualenv tensorflow2
source tensorflow2/bin/activate
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.2.1-py2-none-any.whl
pip install jupyter
pip install pandas
pip install matplotlib
pip install cloudmlmagic
#!/usr/bin/env python
#coding:utf-8
from time import sleep
from random import randint
BitPerSecond = 80.0
def main():
loopCnt = 0
[
{
"name": "gcs_url",
"type": "STRING",
"mode": "NULLABLE"
},
{
"name": "timestamp",
"type": "TIMESTAMP",
"mode": "NULLABLE"
##2016-02-24
# QAV-210
# Naze32 afro rev6
# RS2205 2300kv
# 5045
# version
# Cleanflight/NAZE 1.12.0 Feb 19 2016 / 20:01:21 (aa8608a)
# status
a2c QAV210 2016-02-24
# status
System Uptime: 22 seconds, Voltage: 0 * 0.1V (1S battery - NOT PRESENT), System load: 0.27
CPU Clock=72MHz, GYRO=MPU6500, ACC=MPU6500, BARO=BMP280
Cycle Time: 1009, I2C Errors: 0, config size: 2072
# tasks
Task list:
0 - SYSTEM, max = 9 us, avg = 0 us, total = 1 ms