Skip to content

Instantly share code, notes, and snippets.

View sashimizakana's full-sized avatar

刺身魚 sashimizakana

View GitHub Profile
@jedthehumanoid
jedthehumanoid / serialport-electron.md
Last active June 11, 2018 19:47
Build node serialport for electron

Building node-serialport for Electron on Windows

These instruction are for Windows, on my Linux installation(Fedora 21) everything works by just installing serialport with npm (I don't know why!).

These are the steps I did to build node serialport for electron (formerly atom-shell) for Windows. I am completely certain there is a better way to do it, but since I struggled with it for quite a while, here is a solution anyway.

You need some version of Visual studio installed, I have VS 2012 Express for Desktop.

@s1tnk
s1tnk / gist:82e17d92ce4120f4b486
Created November 16, 2014 13:19
Sonic Piをプログラムから操作する
Sonic Piは、Qtベースのクライアントと、Sonic Pi用の各種プリセットが施されたSuperColiderを中核とするサーバとからなる。
SuperColiderはOSCによるアクセスをサポートするため、Sonic Piのサーバに対してOSCでメッセージを送信することで演奏が可能である。
rubyでOSCを扱うにはosc-rubyを用いるのが簡単である。
$ gem install osc-ruby
Sonic Piによって/run-codeメソッドが定義されているのでこれを使用する。
以下はデフォルトの音色でC(ド)の音を鳴らすrubyスクリプトである。
@YoshihitoAso
YoshihitoAso / gist:9048005
Last active December 18, 2018 05:30
[Python][Mecab]ubuntu環境にmecabをインストールする方法

Ubuntu環境にMecabをインストールする方法

インストール手順

$ sudo apt-get install mecab libmecab-dev mecab-ipadic
$ sudo aptitude install mecab-ipadic-utf8
$ sudo apt-get install python-mecab

SAMPLE