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 | |
# | |
# Extract subtitles from video and format them to SRT spec | |
# Useful for Samsung Smart TVs | |
# | |
# Depends on mkvtoolnix package (available for most distros) for mkvmerge and mkvextract | |
# To list tracks in the video, use command: ./srtextract.sh tracks <filename> | |
# | |
# Depends on ass2srt.pl for susbtitle format conversion | |
# http://code.google.com/p/ass2srt/downloads/list |
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
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<tool-api-level>16</tool-api-level> | |
<manifest android:versionCode="1" android:versionName="2.2"> | |
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" /> | |
<application android:hardwareAccelerated="true" /> | |
</manifest> | |
</android> |
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
rotation = Ti.UI.create2DMatrix().rotate(0, 360); | |
animation = Ti.UI.createAnimation({duration: 500, repeat: 100, transform: rotation}); | |
element.animate(animation); |
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 ConfirmDialog extends Tiger.OptionDialog | |
defaults: | |
options: ['Confirm', 'Cancel'] | |
cancel: 1 | |
confirm: (title, callback) -> | |
((@tiOne 'click', callback).set title: title).show() | |
... |
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
dip = (val) -> "#{val} dip" | |
class Settings.CheckBox extends Tiger.View | |
defaults: | |
width: '92%' | |
height: dip 48 | |
# style: Ti.UI.Android.SWITCH_STYLE_CHECKBOX | |
constructor: (props) -> | |
@label = new Tiger.Label |
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
/* Step 1: | |
** Place (only one) Titanium API lib (from jsca2js package) in: | |
** /path/to/project_root/.codeintel/libs | |
*/ | |
/* Step 2: | |
** Create text file: /path/to/project_root/.codeintel/config | |
*/ | |
{ | |
"JavaScript": { |
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
npm install -g node-inspector | |
/path/to/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py simulator projectname /path/to/android-sdk-linux /path/to/project com.your.project 16 WVGA800 127.0.0.1:5858 | |
node-inspector |
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
{ | |
"folders": | |
[ | |
{ | |
"path": "/path/to/the/project/folder" | |
} | |
], | |
"build_systems": | |
[ | |
{ |
NewerOlder