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
String httpProtocol = request.getScheme(); | |
timSrv.deleteComment(owner, commentID, httpProtocol); | |
Map<String, String> jsonData = new HashMap<String, String>(); |
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
Titanium Alloy での ListView のイベントハンドリング | |
Alloyでのclickイベント制御の書き方の一例です。 | |
```/app/controller/sample.js | |
var data = []; | |
... | |
data.push({ |
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
index.xml | |
<Alloy> | |
<Window> | |
<Button onClick="testMe">Button</Button> | |
</Window> | |
</Alloy> | |
index.js | |
$.index.open(); | |
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
'Window': { | |
backgroundColor: '#ffffff', // 画面背景色 | |
barColor: "aqua", // ナビゲーションバーの背景色 | |
tintColor : "red", // 配下のViewの色合いに影響 (TextAreaのキャレット色とか) | |
navTintColor : "blue", // 子Windowで戻るのクチバシの色とか |
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
var app = require('app'); // Module to control application life. | |
var BrowserWindow = require('browser-window'); // Module to create native browser window. | |
// Report crashes to our server. | |
require('crash-reporter').start(); | |
// Keep a global reference of the window object, if you don't, the window will | |
// be closed automatically when the javascript object is GCed. | |
var mainWindow = null; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
We are using io.js <script>document.write(process.version)</script> | |
and Electron <script>document.write(process.versions['electron'])</script>. | |
</body> |
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
{ | |
"env": { | |
"node": true, | |
"es6": true, | |
"modules": true | |
}, | |
"ecmaFeatures": { | |
"jsx": true, | |
"blockBindings": true, | |
"forOf" : true, |
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
// | |
// CameraViewController.swift | |
// | |
// Created by Tadatoshi Hanazaki on 2016/01/17. | |
// Copyright © 2016年 close-to.biz. All rights reserved. | |
// | |
import UIKit | |
import AVFoundation |
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
override func viewDidLoad() { | |
super.viewDidLoad() | |
// ボタン達 | |
let addButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Add, target: self, action: "insertNewObject:") | |
let cameraButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Camera, target: self, action: "insertNewObject:") | |
let myRightButtons = [addButton, cameraButton] | |
// テンプレはこうだった |
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 MasterViewController: UITableViewController { | |
... | |
override func viewDidLoad() { | |
... | |
let cameraButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Camera, target: self, action: "doCamera:") | |
... | |
} | |
... | |
func doCamera(sender: UIButton) { |
OlderNewer