- USBでPCと接続する
sudo sixpair
を実行しペアリングをする- USBとPCから取外す
sudo sixad -s
を実行しPS3の真ん中のボタンを押しBluetoothにて接続する
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
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 |
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
#! /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' |
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
#! ruby -Ks | |
# -*- mode:ruby; coding:shift_jis -*- | |
# 2400ボーのデータレコーダっぽいWAVをつくる | |
# 出力ファイル | |
FILENAME = "test.wav" | |
BAUD = 2400 | |
CHANNELS = 1 # チャンネル |
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:
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jun 28 | |
@author: jyoshida@jikkenyametatta | |
opencv&numpy | |
""" | |
import cv2 | |
import numpy as np |
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
#!/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: |
NewerOlder