This file contains hidden or 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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="d3.v3.min.js"></script> | |
</head> | |
<body> | |
<div id='example'></div> | |
<script src="arrownode.js"></script> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="d3.v3.min.js"></script> | |
</head> | |
<body> | |
<div id='example'></div> | |
<script src="arrownode_move.js"></script> | |
</body> | |
</html> |
This file contains hidden or 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
# coding: UTF-8 | |
import numpy as np | |
import cv2 | |
# 実装の参考 http://www.beechtreetech.com/opencv-exercises-in-python | |
# cv2を使うように変更 | |
updatelock = False # トラックバー処理中のロックフラグ | |
windowname = 'frame' # Windowの名前 | |
trackbarname = 'Position' # トラックバーの名前 |
This file contains hidden or 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
# coding: UTF-8 | |
import numpy as np | |
import cv2 | |
# 10 x 10 の3レイヤー(BGR)を定義 | |
size = 10, 10, 3 | |
# cv2.fillPolyで赤に埋める | |
red_img = np.zeros(size, dtype=np.uint8) |
This file contains hidden or 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
sphere pos = 0.00,10.00,0.00 | |
sphere pos = 0.00,9.99,0.00 | |
sphere pos = 0.00,9.98,0.00 | |
sphere pos = 0.00,9.97,0.00 | |
: | |
sphere pos = 0.00,1.22,0.00 | |
sphere pos = 0.00,1.00,0.00 |
This file contains hidden or 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
/* | |
* ESP-WOORM-02とMFRC522を接続する | |
* 2015/10/12 | |
* | |
* 配線(SPI通信): | |
* ESP-WROOM-02 : MFRC522 | |
* GPIO 5 -> SDA(1) - ESP-WROOM-02側はSS_PINで定義 | |
* GPIO14 -> SCK(2) | |
* GPIO13 -> MOSI(3) | |
* GPIO12 <- MISO(4) |
This file contains hidden or 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
-- ref) http://stackoverflow.com/questions/17386792/how-to-implement-string-rfind-in-lua | |
nyagos.bindkey("M_A", | |
function(this) | |
local pos = (this.text:sub(1,this.pos-1)):match'.*() ' | |
if pos and (pos < this.pos) then | |
for i = 1, this.pos-pos do | |
this:call("BACKWARD_CHAR") | |
end | |
else | |
this:call("BEGINNING_OF_LINE") |
This file contains hidden or 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
FROM cuda:7.5_cudnn70 | |
COPY Anaconda2-2.4.1-Linux-x86_64.sh /opt | |
# caffe makefile:use anaconda2 / use cudnn3 | |
COPY Makefile.config /opt | |
# install anaconda2 | |
RUN echo 'export PATH=/opt/anaconda2/bin:$PATH' > /etc/profile.d/conda.sh && \ | |
cd /opt && \ |
OlderNewer