- Help -> Install New Software
- Add this: http://github.eclipsesource.com/jshint-eclipse/updates/
- Install JSHint. Studio will restart.
After successfull install, right click on your project:
- Properties:
sdb connect <ip>:<port> # connect to TV | |
sdb -s <deviceName> capability # get <installationPath> | |
# build | |
tizen cli-config "default.profiles.path=<profile_path>" | |
tizen build-web -out .buildResult -- <source-dir> | |
tizen package --type wgt --sign profileName -- <source-dir>/.buildResult # extract <package-file> | |
mv <package-file> . | |
rm -rf <source-dir>/.buildResult |
# If you don't remember the exact path/name, search the log for deleted files | |
git log --diff-filter=D --summary | grep delete | |
# Find the file you want to get from the ouput, and use the path | |
# Find the commits that involved that path | |
git log --all -- some/path/to/deleted.file | |
# Bring the file back to life to the current repo (sha commit of parent of commit that deleted) | |
git checkout shaofthecommitthatdeletedthefile^ -- some/path/to/deleted.file |
// Animated start. Comments for code here: http://www.tidev.io/2015/01/06/how-to-re-use-the-launch-image-in-the-app | |
var img = Ti.UI.createImageView({ | |
// Get the launch image | |
image: (function getImage() { | |
if (OS_IOS) { | |
// Working around orientation-bug | |
if (Ti.Platform.osname === 'ipad' || Math.max(Ti.Platform.displayCaps.platformWidth, Ti.Platform.displayCaps.platformHeight) === 736) { | |
return 'Default-' + (Ti.Gesture.isPortrait() ? 'Portrait' : 'Landscape') + '.png'; | |
} else { | |
return 'Default.png'; |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
settings: { | |
releaseNotes: grunt.option('notes') || 'CI build', | |
appName: 'Flashlight', | |
ppUuid: '0253600x-ac6d-35b6-b66d-dd25c4fd956f', | |
installrAppToken: '6xC0I8SdJA76kW3pqq7GFZLIyq6fBP4Z' | |
}, |
/* | |
If you want to design a custom row in a listView. And each row as like as your mind in this case template is very | |
effective. | |
*/ | |
//test case | |
var win = Ti.UI.createWindow({ | |
title : 'Multiple Templates', |
After successfull install, right click on your project:
// add all items to collection | |
Alloy.Collections.Fugitive.reset([{ | |
"name" : "Jeff Haynie" | |
}, { | |
"name" : "Nolan Wright" | |
}, { | |
"name" : "Don Thorp" | |
}, { | |
"name" : "Marshall Culpepper" | |
}, { |
//This is a demo to show how backgroundLeftCap and backgroundTopCap work on the Tianium platform by Appcelerator | |
//Paste this code in app.js (tested on iOS) | |
//Screenshot: http://screencast.com/t/txWQD3l2UBN | |
/////////////////////////////////////////////////////////////////////////////// | |
//Just modify these variables to see how backgroundLeftCap and topCap will work | |
var topCap = 20; | |
var leftCap = 35; | |
var originalImageSize = {height:100, width:100} |
import bb.cascades 1.0 | |
import bb.data 1.0 // don't forget to add "LIBS += -lbbdata" to your .pro file! | |
Page { | |
id: pgDetail | |
actions: [ | |
ActionItem { | |
title: qsTr("Refresh") | |
onTriggered: { |
# Colors for the prompt | |
blue="\033[0;34m" | |
white="\033[0;37m" | |
green="\033[0;32m" | |
# Brackets needed around non-printable characters in PS1 | |
ps1_blue='\['"$blue"'\]' | |
ps1_green='\['"$green"'\]' | |
ps1_white='\['"$white"'\]' |