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
echo "Starting to encoding process" | |
mkdir --parents "video/mp4" | |
for video in complete; do | |
for speed in fast slow medium; do | |
file="${video}_${speed}" | |
echo "Encoding ${file}" |
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
// Create the tab group | |
var tabGroup = Titanium.UI.createTabGroup(); | |
// Assign windows & tabs | |
// IMPORTANT: | |
// 'tabBarHidden: true' should be set on all windows | |
// height should be set to 480 - customTabBar's height (change 480 to app screen height) | |
var win1 = Titanium.UI.createWindow({ title:'Tab 1', height: 440, tabBarHidden: true }); | |
var btn1 = Ti.UI.createButton({title: 'Hide Tabs', height: 40}); | |
win1.add(btn1); |
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 parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
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
import UIKit | |
import AVFoundation | |
protocol FileConverterDelegate { | |
func fileConversionCompleted() | |
} | |
class FileConverter : NSObject { | |
var delegate : FileConverterDelegate? |
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 _log = console.log; | |
window.console.log = function(log){ | |
_log.call(console, log.reverse ? log.reverse() : typeof log === 'string' ? log.split('').reverse().join('') : typeof log === 'number' ? log.toString().split('').reverse().join('') : typeof log === 'boolean' ? !log : log); | |
}; |
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
/* | |
// Author : @kosso | |
// Date : May 10, 2015. | |
// FTP binary data file uploader. With notes etc. which I cobbled togethr while trying to work out this elusive dark art. | |
All examples I found were using the 'STOR' command incorrectly and wondering why they were getting empty files appear (if they were lucky). | |
Also, most if not all were using the deprecated Ti.Network.createTCPSocket() method instead of Ti.Network.Socket.createTCP(). | |
eg : http://stackoverflow.com/questions/23971311/titanium-appcelerator-ftp-upload |
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
// | |
// WaveformView.m | |
// | |
// Created by Edward Majcher on 7/17/14. | |
// | |
#import "WaveformView.h" | |
//Gain applied to incoming samples | |
static CGFloat kGain = 10.; |
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
keytool -exportcert -alias androiddebugkey -keystore ~/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/dev_keystore | openssl sha1 -binary | openssl base64 | |
keytool -exportcert -alias androiddebugkey -keystore ~/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.3.GA/android/dev_keystore -list -v |
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.UI.setBackgroundColor('#000'); | |
var alertSettings = require("settings-dialog"); | |
var win = Ti.UI.createWindow({ | |
title:'Example', backgroundColor:'#fff', layout:"vertical" | |
}); | |
win.add(Ti.UI.createLabel({ | |
text:"Example on now to prompt user to change settings", |
OlderNewer