Skip to content

Instantly share code, notes, and snippets.

Avatar

karaage karaage0703

View GitHub Profile
@aidiary
aidiary / docker.md
Last active Feb 28, 2020
Docker and Kubernetes: The Complete Guide
View docker.md
View boot.py
# Original: https://iotdiary.blogspot.com/2019/07/maixpy-go-mobilenet-transfer-learning.html
# Slightly modified for M5StickV
import sensor
import image
import lcd
import KPU as kpu
lcd.init()
lcd.rotation(2)
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
@tokyoff
tokyoff / one_button_keyboard.ino
Last active Feb 12, 2021
ワンボタンキーボードの基本形ソースコード
View one_button_keyboard.ino
#include "Keyboard.h"
#define PIN_KEYSW (9)
int prevKeyState;
int currKeyState;
void setup() {
pinMode(PIN_KEYSW, INPUT_PULLUP);
prevKeyState = HIGH;
View deeplab_sample_video_capture.py
import os
from io import BytesIO
import tarfile
import tempfile
from six.moves import urllib
import numpy as np
from PIL import Image
import tensorflow as tf
@KobayashiRui
KobayashiRui / ROS_PS3contl.md
Last active Jul 29, 2019
rosやgazeboについて自分に有益なものをまとめる 参考文献 ・ROSではじめるロボットプログラミング ・プログラミングROS 参考サイト ・https://sites.google.com/site/robotlabo/time-tracker/ros/modeling_robothttp://products.rt-net.jp/micromouse/archives/3316http://wiki.ros.org/simmechanics_to_urdf/Tutorials/
View ROS_PS3contl.md

PS3コントローラーの使い方(ubuntu16.04)

  1. USBでPCと接続する
  2. sudo sixpairを実行しペアリングをする
  3. USBとPCから取外す
  4. sudo sixad -sを実行しPS3の真ん中のボタンを押しBluetoothにて接続する
@PonDad
PonDad / app.py
Created Nov 11, 2017
【Movidius™NCS&RaspberryPi】リアルタイム物体認識【TensorFlow】
View app.py
#! /usr/bin/env python3
from mvnc import mvncapi as mvnc
import sys
import numpy
import cv2
path_to_networks = './'
path_to_images = '../../data/images/'
graph_filename = 'graph'
#image_filename = path_to_images + 'cat.jpg'
@GOROman
GOROman / DataRecoderWAV.rb
Last active Jul 2, 2018
なつかしのデータレコーダ(カセット)のピーーーーギャーーー音をつくる
View DataRecoderWAV.rb
#! ruby -Ks
# -*- mode:ruby; coding:shift_jis -*-
# 2400ボーのデータレコーダっぽいWAVをつくる
# 出力ファイル
FILENAME = "test.wav"
BAUD = 2400
CHANNELS = 1 # チャンネル
@iambrian
iambrian / OpenAI-Gym_setup.md
Last active Nov 13, 2020
OpenAI gym tutorial
View OpenAI-Gym_setup.md

Getting Setup: Follow the instruction on https://gym.openai.com/docs

git clone https://github.com/openai/gym
cd gym
pip install -e . # minimal install

Basic Example using CartPole-v0:

View FractNeko.py
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 28
@author: jyoshida@jikkenyametatta
opencv&numpy
"""
import cv2
import numpy as np