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 / 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
conda create -n tensorflow python=3.5.2
pip install numpy scipy
pip install --upgrade tensorflow-gpu
@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
@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