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
// Copyright Stephen Feather and other contributors. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a | |
// copy of this software and associated documentation files (the | |
// "Software"), to deal in the Software without restriction, including | |
// without limitation the rights to use, copy, modify, merge, publish, | |
// distribute, sublicense, and/or sell copies of the Software, and to permit | |
// persons to whom the Software is furnished to do so, subject to the | |
// following conditions: | |
// |
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
➜ hyperloop-android git:(master) ../hyperloop-cli/bin/hyperloop clean compile package launch --src=examples/touches --platform=android | |
[INFO] Cleaned build | |
[INFO] Generating library | |
[INFO] Generating system metabase will take up to a minute (or greater) depending on your environment.This file will be cached and will execute faster on subsequent builds. | |
◠ Generating system metabase |
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/zsh | |
# you need to install npm install -g ios-sim before this will work | |
# there is an irony in the fact that ios-sim is phonegap's version, but it was forked from Jeff Haynie (CEO Appcelerator) | |
ios-sim $1 $2 $5 $6 $7 $8 |
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
cd ~/Desktop/ticonf2014testappdemo/alloytest | |
titanium clean | |
titanium build --platform=iphone --test & | |
sleep 30 | |
killall "iPhone Simulator" | |
export PATH="/Users/andrewmcelroy/.rbenv/shims:/Applications/Postgres.app/Contents/MacOS/bin:/Users/andrewmcelroy/bin:/usr/local/bin:/Users/andrewmcelroy/.rbenv/bin:/Users/andrewmcelroy/android/tools:/Users/andrewmcelroy/android/:/Users/andrewmcelroy/android//tools:/Users/andrewmcelroy/android/platform-tools/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/andrewmcelroy/.ec2/bin" | |
echo | titanium calabash --platform=iphone |
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
reset="\033[0;0m" | |
dir_color="\033[0;32m" | |
git_color="\033[2;37m" | |
ti_color="\033[2;36m" | |
alloy_color="\033[0;36m" | |
prompt_color=$reset | |
find-up() { | |
path=$(pwd) | |
while [[ "$path" != "" && ! -e "$path/$1" ]]; do |
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
/** | |
* iOS build command. | |
* | |
* @module cli/_build | |
* | |
* @copyright | |
* Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved. | |
* | |
* @license | |
* Licensed under the terms of the Apache Public License |
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"> | |
<manifest> | |
<application> | |
<activity android:name=".HipsterdashActivity" | |
android:label="hipsterdash" android:theme="@style/Theme.Titanium" | |
android:configChanges="keyboardHidden|orientation"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
<category android:name="android.intent.category.HOME"/> |
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
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
<category android:name="android.intent.category.HOME"/> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<action android:name="android.intent.action.BOOT_COMPLETED"/> | |
</intent-filter> |
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
// Allows customization of the editingStyle for a particular cell located at 'indexPath'. If not implemented, all editable cells will have UITableViewCellEditingStyleDelete set for them when the table has editing property set to YES. | |
- (UITableViewCellEditingStyle)tableView:(UITableView *)ourTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
RETURN_IF_SEARCH_TABLE_VIEW(UITableViewCellEditingStyleNone); | |
TiUITableViewRowProxy *row = [self rowForIndexPath:indexPath]; | |
//Yes, this looks similar to canEdit, but here we need to make the distinction between moving and editing. | |
//Actually, it's easier than that. editable or editing causes this to default true. Otherwise, it's the editable flag. | |
if ([TiUtils boolValue:[row valueForKey:@"editable"] def:editable || editing]) | |
{ |
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/bash | |
# inspired by Greg McCormick's (@crushmedianet) post | |
# http://crushmedia.net/2012/04/23/automated-build-of-titanium-iconloading-files/ | |
# updated 4 Aug 2012: creates clipped iPad backgrounds by cropping 768x1024, etc. | |
# create following base images + save in APPNAME/Resources/: | |
# appicon-android-512x512.png |