Skip to content

Instantly share code, notes, and snippets.

View yamanetoshi's full-sized avatar

YAMANE Toshiaki yamanetoshi

View GitHub Profile
@yamanetoshi
yamanetoshi / gremlin-exporter.py
Created August 22, 2018 12:19
gremlin export example
import sys
import csv
from gremlin_python.structure.graph import Graph
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
URL = 'ws://localhost:8182/gremlin'
def main(argv):
@yamanetoshi
yamanetoshi / fastfm_0-2-10_guide.ipynb
Created July 30, 2018 11:54
fastFM_0.2.10_guide.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yamanetoshi
yamanetoshi / 7-4.ipynb
Created July 22, 2018 06:43
7.4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yamanetoshi
yamanetoshi / 7-4.ipynb
Created July 22, 2018 06:43
7.3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7nl/5+P1k1/4+B1pp1/7+b+r/9/9/9/9/9 b R2GN2g4s2n3l15p 1
8n/6S2/8k/5Br2/8p/9/9/9/9 w RG2Lb3g3s3n2l17p 1
# ---- ぴよ将棋 棋譜ファイル ----
棋戦:ぴよ将棋
開始日時:2017年09月09日(土) 21:09:24
終了日時:2017年09月10日(日) 17:13:53
手合割:平手
先手:player1
後手:yamaaaaa
手数----指手---------消費時間--
1 7六歩(77) ( 0:04/00:00:04)
2 3四歩(33) ( 0:02/00:00:02)
# ---- ぴよ将棋 棋譜ファイル ----
棋戦:ぴよ将棋
開始日時:2017年09月09日(土) 16:31:03
終了日時:2017年09月09日(土) 16:52:50
手合割:平手
先手:こもり
後手:ずけらん
手数----指手---------消費時間--
1 7六歩(77) ( 0:02/00:00:02)
2 3四歩(33) ( 0:03/00:00:03)
@yamanetoshi
yamanetoshi / XWalkViewExample.java
Created July 27, 2015 06:55
XWalkView Example
mWebView.setResourceClient(new XWalkResourceClient(mWebView) {
@Override
public WebResourceResponse shouldInterceptLoadRequest(XWalkView view, String url) {
WebResourceResponse ret = null;
try {
URL tmpUrl = new URL(url);
mConn = (HttpURLConnection)tmpUrl.openConnection();
mConn.addRequestProperty("Authorization", authHeader);
mConn.addRequestProperty(getString(R.string.app_version_header_key), ((MyApplication)getApplication()).getVersioName());
public class SimpleRecyclerAdapter extends RecyclerView.Adapter<SimpleRecyclerAdapter.ViewHolder> {
private LayoutInflater mLayoutInflater;
private ArrayList<String> mList;
public SimpleRecyclerAdapter(Context context, ArrayList<String> list) {
super();
mLayoutInflater = LayoutInflater.from(context);
mList = list;
}