Skip to content

Instantly share code, notes, and snippets.

@hm0429
hm0429 / Arduino_Sensor_Serial.ino
Created October 16, 2015 14:38
Arduino_Sensor_Serial
#define SENSOR_PIN A0
void setup() {
// シリアル通信を開始します。
Serial.begin(9600);
while (!Serial) {
; // シリアルポートが接続されるまで待ちます。
}
SELECT
column1,
column2,
..,
FROM
table
@hm0429
hm0429 / bubble_sort.rb
Last active October 31, 2015 11:57
bubble_sort.rb
## bubble_sort.rb
## データの件数
N = 10
## データの比較回数を保持するための変数です。
@comparison_count = 0
## データの交換回数を保持するための変数です。
@swap_count = 0
@hm0429
hm0429 / bubble_sort02.rb
Created October 31, 2015 11:59
bubble_sort02.rb
## bubble_sort.rb
## データの件数
N = 10
## データの比較回数を保持するための変数です。
@comparison_count = 0
## データの交換回数を保持するための変数です。
@swap_count = 0
@hm0429
hm0429 / getRippleBalance.js
Created January 1, 2018 15:22
Ripple の残高を取得
var api = new ripple.RippleAPI({server:'wss://s1.ripple.com/'});
api.connect().then(function() {
return api.getAccountInfo("r39wDgtwjJkF5NAnXQhy3Z68dDboGebNJv");
}).then(function(account_info) {
console.log(account_info.xrpBalance);
}
$ git clone https://github.com/professorhantzen/ripple-vanity.git
$ cd ripple-vanity
$ npm install ripple-keypairs@0.8.0
$ node ripple-vanity.js piyo 1000000
mkdir $HOME/.homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.homebrew
@hm0429
hm0429 / .bash_profile
Created January 6, 2018 13:33
homebrew path
export PATH=$HOME/.homebrew/bin:$PATH
export HOMEBREW_CACHE=$HOME/.homebrew/cache
source ~/.bash_profile
brew tap ethereum/ethereum
brew install ethereum