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
// 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'; |
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
exports.definition = { | |
config: { | |
columns: { | |
"content": "String", | |
"date": "String", | |
"author": "String" | |
}, | |
adapter: { | |
type: "properties", | |
collection_name: "chat" |
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
# See https://github.com/m1ga/titanium_with_atom on the Windows part | |
# execute as tinfo, e.g. | |
Function appcInfo {appc ti info} | |
New-Alias tinfo appcInfo | |
Function tiBuildAndroid {ti build -p android -T device --skip-js-minify} | |
New-Alias tib tiBuildAndroid | |
Function tiBuildAndroidLive {ti build -p android -T device --skip-js-minify --liveview} |
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
export const localeEs = { | |
selectAll: 'Seleccionar todo', | |
selectAllSearchResults: 'Seleccionar todos los resultados de búsqueda', | |
searchOoo: 'Buscar...', | |
blanks: 'Vacíos', | |
noMatches: 'Sin coincidencias', | |
filterOoo: 'Filtro...', | |
equals: 'Igual', | |
notEqual: 'Diferente', |
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
// Included autonomous cities Ceuta & Melilla as autonomíes and, also, as provinces | |
export const AUTONOMIES_ES = [ | |
{ id: 'ES-AN', name: 'Andalucía' }, | |
{ id: 'ES-AR', name: 'Aragón' }, | |
{ id: 'ES-CN', name: 'Canarias' }, | |
{ id: 'ES-CB', name: 'Cantabria' }, | |
{ id: 'ES-CL', name: 'Castilla y León' }, | |
{ id: 'ES-CM', name: 'Castilla-La Mancha' }, | |
{ id: 'ES-CT', name: 'Cataluña' }, | |
{ id: 'ES-CE', name: 'Ceuta' }, |