- JDKがinstall済みであること
- java コマンドに環境変数Pathが通っていること
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
// Get the source file (this one is in Resources). | |
var infile = Titanium.Filesystem.getFile('emmy.jpg'); | |
if (!infile.exists()) { | |
Ti.API.error("File not exists()"); | |
return; | |
} |
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
var express = require('express') | |
, mapRouter = require('./express-mapRouter') | |
, app = express.createServer() | |
, routesDir = __dirname + '/routes'; | |
// 'GET /' : 'root:index' はこれと同じ | |
// var root = require('./routes/root'); | |
// app.get('/', root.index); | |
var routesMap = { | |
'GET /' : 'root:index' |
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
// put now.js and socket.io.js inside a 'lib' dir inside Resources dir | |
// (obviously you can change this, only remember to change the require inside now.js line #1) | |
// just socket.io: | |
/* | |
var io = require('/lib/socket.io'); | |
var socket = io.connect('http://192.168.1.129:6120'); // using LAN IP instead of localhost | |
socket.on('news', function (data) { | |
Ti.API.log(data); | |
socket.emit('my other event', { my: 'data' }); |
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
<?php | |
$name = $_FILES['inputname']['name']; | |
if (Normalizer::isNormalized($name, Normalizer::FORM_D)) { | |
$_FILES['inputname']['name'] = Normalizer::normalize($name, Normalizer::FORM_C); | |
} | |
コマンドの実行はコンソール( ctrl + ` で開ける)で以下を実行する:
view.run_command('example')
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
// Usage : less2stylusDir('../src/css/'); | |
var fs = require('fs'); | |
// this less 2 stylus conversion script make a stylus easy to read syntax | |
// - let the braces | |
// - replace the @ for var as $ | |
// - let semicolons | |
function less2stylus(less) |
この記事は古いです...。はてなブログの方に完全版を置いてあります。→ http://blue-ham-cake1024.hatenablog.com/entry/2012/09/07/Sublime_Text_2_のDefault設定ファイルを眺める
この記事ではDefault設定ファイルにどのような記述がされているか、その記述にどんな意味があるかを一つ一つ見ていきます。実際に設定をカスタマイズしてみたい方は、メニューのPreferencesタブの"Settings - User"からUser設定ファイルを開いてそこでいろいろ試してみましょう。
OlderNewer