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
http://yuzurus.hatenablog.jp/entry/search-image | |
http://www.kochi-tech.ac.jp/library/ron/2012/2012info/1130340.pdf | |
http://aidiary.hatenablog.com/entry/20091003/1254574041 |
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
フォルダ構成例 | |
~/.iterm2 | |
.iterm2 ⊤ images | |
⊢ wpchange.plist | |
⊢ wpchange.sh | |
-- launchctlで動いてるスクリプト確認 | |
launchctl list | grep wpchange | |
-- 実行 |
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
<?php | |
class Image extends AppModel | |
{ | |
public function beforeValidate($options = array()) | |
{ | |
// 画像の回転補正 | |
if (isset($this->data[$this->alias]['image']['tmp_name'])) { | |
$file_path = $this->data[$this->alias]['image']['tmp_name']; | |
if (strpos($this->data[$this->alias]['image']['type'], 'jpeg') !== false) { |
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
// ひとつめのhiddenFieldがないとダメ | |
// https://book.cakephp.org/2.0/ja/core-libraries/helpers/form.html#select-checkbox-radio | |
<?php $hidden_field = true; ?> | |
<?php foreach ($data as $k => $v) : ?> | |
<tr> | |
<td> | |
<?php echo $this->Form->input('Model.radio', array('type' => 'radio', 'options' => array($k + 1 => ''), 'label' => false, 'div' => false, 'hiddenField' => $hidden_field)); ?> | |
<?php $hidden_field = false; ?> | |
</td> |
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 UIKit | |
/** | |
ViewController | |
*/ | |
class ViewController: UIViewController { | |
// テーブルビュー | |
@IBOutlet weak var tableView: UITableView! | |
// テーブルの上のラベル | |
@IBOutlet weak var titleLabel: UILabel! |
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 UIKit | |
/** | |
カスタムCellクラス | |
*/ | |
class CustomCell: UITableViewCell { | |
@IBOutlet weak var label: UILabel! | |
override func awakeFromNib() { |
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 UIKit | |
import AVFoundation | |
class ViewController: UIViewController | |
{ | |
// セッション. | |
var mySession : AVCaptureSession! | |
// デバイス. | |
var myDevice : AVCaptureDevice! |
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 UIKit | |
import AVFoundation | |
class ViewController: UIViewController { | |
// セッション. | |
var mySession : AVCaptureSession! | |
// デバイス. | |
var myDevice : AVCaptureDevice! | |
// 画像のアウトプット. |
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 UIKit | |
class ViewController: UIViewController { | |
private var myLabel: UILabel! | |
// Main.storyboardのSwitchのことだよ | |
@IBOutlet weak var mySwitch: UISwitch! | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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
Show hidden characters
{ | |
"auto_indent": true, | |
"color_scheme": "Packages/User/SublimeLinter/Original (SL).tmTheme", | |
"default_encoding": "UTF-8", | |
"draw_white_space": "all", | |
"fallback_encoding": "UTF-8", | |
"font_face": "Ricty", | |
"font_size": 17.0, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
NewerOlder