-
open current titanium project (e.g. TestTabIcon/build/android/AndroidManifest.xml)
-
update the app name
android:label="TestTabIcon" to android:label="什麼都好"
-
press cmd + i on AndroidManifest.xml
cd ~/Desktop/workspace/git
git clone http://github.com/resmo/git-ftp.git
sudo make install
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
git clone https://github.com/<User>/<Repo>.git | |
git branch -r | |
git checkout -b develop origin/develop |
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
Ti.include('lib/htmlparser.js'); | |
Ti.include('lib/soupselect.js'); | |
var select = soupselect.select; | |
var body = '<html><head><title>Test</title></head>' | |
+ '<body>' | |
+ '<img src="http://l.yimg.com/mq/i/home/HKGallery.gif" />' | |
+ '<div id="block">' | |
+ ' <div class="row">Row 1</div>' |
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
function space_text(my_text){ | |
var len = my_text.length; | |
var text = my_text; | |
var text2 = text.charAt(0); | |
for(var i = 1; i < len-1; i++) { | |
text2 += text.charAt(i); | |
if(text.charCodeAt(i) > 128 && text.charAt(i+1) != " " && text.charAt(i+1) != "\n") | |
text2 += " "; | |
} |
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
#!/bin/sh | |
# Author: Neo.Lo | |
# Create: 2011-06-21 11:38PM | |
MYSQL_USER=root | |
MYSQL_PASS=root | |
MYSQL_DUMP_SCRIPT=/Applications/MAMP/Library/bin/mysqldump | |
PROJECT_FOLDER=/Applications/MAMP/htdocs/projects/ |
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
<script lanugage="javascript" type="text/javascript"> | |
(function(window, undefined) { | |
var currentWidth = window.screen.width; | |
window.onresize = function() { | |
if (window.screen.width < currentWidth) { | |
console.log("Zoom In"); | |
}else{ | |
console.log("Zoom Out"); |
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
<script lanugage="javascript" type="text/javascript"> | |
/* | |
* Author: Zeuxis.Lo | |
* Description: random cards on Big2 / DuDiZhu | |
*/ | |
(function(window, undefined) { | |
var DealCard = function() { | |
this.roleA = []; | |
this.roleB = []; |