Skip to content

Instantly share code, notes, and snippets.

@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:

@aidiary
aidiary / docker.md
Last active February 28, 2020 23:19
Docker and Kubernetes: The Complete Guide
@kotobuki
kotobuki / boot.py
Last active August 19, 2019 04:17
# 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)
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
@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 # チャンネル
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 28
@author: jyoshida@jikkenyametatta
opencv&numpy
"""
import cv2
import numpy as np
@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: