Skip to content

Instantly share code, notes, and snippets.

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 October 13, 2022 03:46
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/

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

  1. USBでPCと接続する
  2. sudo sixpairを実行しペアリングをする
  3. USBとPCから取外す
  4. sudo sixad -sを実行しPS3の真ん中のボタンを押しBluetoothにて接続する
@PonDad
PonDad / app.py
Created November 11, 2017 10:36
【Movidius™NCS&RaspberryPi】リアルタイム物体認識【TensorFlow】
#! /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 July 2, 2018 05:39
なつかしのデータレコーダ(カセット)のピーーーーギャーーー音をつくる
#! ruby -Ks
# -*- mode:ruby; coding:shift_jis -*-
# 2400ボーのデータレコーダっぽいWAVをつくる
# 出力ファイル
FILENAME = "test.wav"
BAUD = 2400
CHANNELS = 1 # チャンネル
@iambrian
iambrian / OpenAI-Gym_setup.md
Last active November 13, 2020 21:12
OpenAI gym tutorial

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:

# -*- coding: utf-8 -*-
"""
Created on Wed Jun 28
@author: jyoshida@jikkenyametatta
opencv&numpy
"""
import cv2
import numpy as np
@nidate
nidate / raspberripizero.jpg
Last active August 7, 2022 08:43
Raspberry Pi Zero
raspberripizero.jpg
@marbocub
marbocub / twpicdl.sh
Last active August 29, 2015 14:06 — forked from eligor13/twpicdl.sh
#!/bin/sh
# Modified by Stan Schwertly to download locally rather than to send to Posterous.
# Github: http://github.com/Stantheman/Twitpic-Backup
# Copyright 2010 Tim "burndive" of http://burndive.blogspot.com/
# This software is licensed under the Creative Commons GNU GPL version 2.0 or later.
# License informattion: http://creativecommons.org/licenses/GPL/2.0/
# This script is a derivative of the original, obtained from here: