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 | |
import glob | |
import argparse | |
import cv2 | |
from PIL import Image | |
from PIL import ImageEnhance | |
import numpy as np | |
IMAGE_HEIGHT = 800 | |
CASCADE_PATH = "./haarcascades/haarcascade_frontalface_alt.xml" |
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
ユーザビリティメモ | |
=============================== | |
------------------------ | |
[1]ユーザビリティ設計 | |
------------------------ | |
ユーザビリティ、UI設計に関するポイント |
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
set-option -g mouse on | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ |
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
;; 行番号の表示 | |
(global-linum-mode t) | |
(setq linum-format "%4d| ") | |
;; GDB | |
;;; GDB 関連 | |
;;; 有用なバッファを開くモード | |
(setq gdb-many-windows t) | |
;;; 変数の上にマウスカーソルを置くと値を表示 |
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
alias ls="ls -F --color" |
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
#pragma strict | |
var bulletPrefab : GameObject; | |
var initialVelocity : float = 40.0; | |
var canonY = 1.5; | |
var canonZ = 0.3; | |
private var direction : Vector3; | |
private var fireObject : GameObject; |
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
// キャッシュ機能付き画像表示 | |
self.myImageView.image = [UIImage imageNamed:@"sample.jpg"]; | |
// キャッシュ機能なし(メモリ不足対策)画像表示 | |
NSString *imgpath = [[NSBundle mainBundle] pathForResource:@"sample" ofType:@"jpg"]; | |
self.myImageView.image = [UIImage imageWithContentsOfFile:imgpath]; |
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
// URL文字列の生成 | |
NSURL *myURL = [NSURL URLWithString:@"http://www.ymori.com/itest/sample.jpg"]; | |
// 素のデータを作成 | |
NSData *myData = [NSData dataWithContentsOfURL:myURL]; | |
// データを画像に変換 | |
UIImage *myImage = [UIImage imageWithData:myData]; | |
self.myImageView.image = myImage; |
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
self.pinchLog.text = [[NSString alloc] initWithFormat:@"縮めた = %.4f", pg.scale]; |
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
#pragma strict | |
function Start () { | |
} | |
function Update () { | |
} |
NewerOlder