Skip to content

Instantly share code, notes, and snippets.

View koji's full-sized avatar
🔍
I may be slow to respond.

koji koji

🔍
I may be slow to respond.
View GitHub Profile
@koji
koji / kivy_install.md
Last active November 26, 2017 22:33
Install Error kivy

Env
Mac 10.12.6
Python 3.5.4(Anaconda)

$ pip install Cython==0.23
$ pip install kivy

Failed building wheel for kivy
@koji
koji / bluetoothctl.py
Last active December 20, 2017 18:06 — forked from egorf/bluetoothctl.py
Bluetoothctl wrapper in Python
# ReachView code is placed under the GPL license.
# Written by Egor Fedorov ([email protected])
# Copyright (c) 2015, Emlid Limited
# All rights reserved.
# If you are interested in using ReachView code as a part of a
# closed source project, please contact Emlid Limited ([email protected]).
# This file is part of ReachView.
@koji
koji / serialtest.js
Created December 9, 2017 03:20
nodejs send data to arduino
const SerialPort = require('serialport');
const port = new SerialPort('/dev/cu.usbmodem****', {
parser: SerialPort.parsers.readline('\n'),
baudrate: 9600
})
port.on('open', function () {
console.log('Serial open.');
})
@koji
koji / serialport_test.ino
Created December 9, 2017 03:51
arduino receive data from nodejs
#define redPin *
#define greenPin *
#define bluePin *
int recieveByte = 0;
String bufStr = "";
String okStr = "OK";
void setup() {
// init pins
@koji
koji / install-ffmpeg.md
Created January 18, 2018 21:21
Install ffmpeg

install homebrew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

If you haven't installed Xcode yet, you will need to hit the following command.

$ xcode-select --install
or 
$ sudo xcode-select --install
conda create -n tensorflow python=3.5.2
pip install numpy scipy
pip install --upgrade tensorflow-gpu
@koji
koji / ffmpeg_mini_workshop.md
Last active September 3, 2018 22:13
ffmpeg

ffmpeg mini-workshop@ITP

setup environment

install homebrew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

If you haven't installed Xcode yet, you will need to hit the following command.
$ xcode-select --install
@koji
koji / Colaboratory.md
Last active April 4, 2018 15:05
Colaboratory

Colaboratory

  1. create a new notebook
  2. choose python3
  3. choose [runtime] --> [change runtime type]
  4. choose GPU

Tensorflow OK (installed originally) Keras OK
PyTorch OK

@koji
koji / docusaurus-setup.md
Created March 23, 2018 20:20
docusaurus setup
install docusaurus globally
$ yarn global add docusaurus-init
$ mkdir project
$ cd project
$ docusaurus-init

$ ls
docs-examples-from-docusaurus website
@koji
koji / pip-compile.md
Created March 28, 2018 16:38
generate requirements.txt
$ pip install pip-tools

write down packages in requirements.in
$ vim requirements.in

$ pip-compile requirements.in