Skip to content

Instantly share code, notes, and snippets.

View usk81's full-sized avatar
🤖
Studying machine learning

Yusuke Komatsu usk81

🤖
Studying machine learning
View GitHub Profile
@usk81
usk81 / config.properties
Last active June 15, 2017 01:27
僕の記事を見て魔法少女(Presto使い)になってよ ref: http://qiita.com/tienlen/items/3452c34175eb93b1573d
coordinator=true
datasources=jmx
http-server.http.port=8080
presto-metastore.db.type=h2
presto-metastore.db.filename=var/db/MetaStore
task.max-memory=1GB
discovery-server.enabled=true
discovery.uri=http://example.net:8080
@usk81
usk81 / binary_dump.php
Last active December 27, 2015 23:39
バイナリのダンプ。 なにげに使いそうなので
/**
* バイナリのダンプ。
* なにげに使いそうなので
*/
public function bin_dump($data)
{
$binary = unpack("C*", $data );
$result = '';
foreach($binary as $v)
{