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 / sound_recording_pi.md
Created June 22, 2018 19:35
sound recording with raspberry pi3
$ lsusb

Bus 001 Device 004: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 005: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ arecord -l
@koji
koji / note_ Colaboratory.md
Last active May 2, 2018 23:13
Note for Colaboratory

file uploader

from google.colab import files
files.upload()

using google drive

install a library

sphere.frag

uniform float u_time;
uniform vec2  u_mouse;
uniform vec2  u_resolution;

const float PI = 3.14159265;
const float angle = 60.0;
const float fov = angle * 0.5 * PI / 180.0;
@koji
koji / generate_electron_app.md
Last active April 17, 2018 04:09
easiest way to generate an Electron app
install generator
$ npm install --global yo generator-electron

make a folder for an app
$ mkdir AppName

generate an Electron app
$ yo electron
@koji
koji / raspi_monitor.md
Created April 9, 2018 05:41
rotate raspi monitor
$ sudo vim /boot/config.txt

180 degree add the following line
lcd_rotate=2

reboot
$ sudo reboot
@koji
koji / hugo_basic_commands.md
Last active April 4, 2018 05:09
Hugo basic commands

Hugo Basic Commands

install hugo
$ brew install hugo

check the version of hugo
$ hugo version
Hugo Static Site Generator v0.38 darwin/amd64 BuildDate:
@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
@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 / 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 / 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