This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Emacs-style bindings only. | |
unmapAll | |
# scroll | |
map <c-n> scrollDown | |
map <c-p> scrollUp | |
map <c-b> scrollLeft | |
map <c-f> scrollRight | |
map j scrollDown | |
map k scrollUp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, requests, shutil, json | |
api_result = {} | |
session = requests.Session() | |
# get access_token | |
url = "https://narrativeapp.com/oauth2/token/" | |
email = "Your Email Address" | |
password = "Your Password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ResponseObject { | |
@SerializedName("room_id") | |
private Long roomId; | |
public Long getRoomId() { | |
return roomId; | |
} | |
public void setRoomId(Long roomId) { | |
this.roomId = roomId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void joystick(unsigned int buttonMask, int x, int y, int z) | |
{ | |
if (x) { | |
/* 左スティックを左右に倒した際の処理 */ | |
car.driver.sw = -x*2*M_PI/360/1000; // ハンドル | |
} | |
if (y) { | |
/* 左スティックを上下に倒した際の処理 */ | |
car.deltaspeed = (-(double)y/1000); //アクセル、ブレーキ (y: 100->0.1km) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ResponseData { | |
private List<Item> data; | |
// Getter, Setter 省略 | |
static class Item { | |
private Integer itemCode; | |
private String itemName; | |
private Integer itemPrice; | |
// Getter, Setter 省略 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X = load('study_data.csv'); | |
Y = load('test_data.csv'); | |
d = mahal(Y, X) | |
d = | |
.... | |
.... | |
.... | |
% 結果 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% | |
% マハラノビス距離 | |
% | |
% Date : 2013/12/10 | |
% | |
% | |
% mahal_dist | |
% | |
% ある点におけるマハラノビス距離を算出 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{afterpage,array,rotating} | |
\newcolumntype{Y}{>{\centering\arraybackslash}p{5em}} |