Skip to content

Instantly share code, notes, and snippets.

View joshualambert's full-sized avatar
🎧

Josh Lambert joshualambert

🎧
View GitHub Profile
- [ ] Reviewed
- [ ] Tested
- [ ] Approved
<activity android:name=".MyAppActivity" android:label="@string/app_name" android:theme="@style/Theme.Titanium" android:configChanges="keyboardHidden|orientation" android:alwaysRetainTaskState="true" android:launchMode="singleInstance">
<intent-filter>
<data android:scheme="myapp" android:host="app"/>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
</intent-filter>
</activity>
LOVs.
——————————
There are two types of LOVs:
1) Static - A set list of options in APEX.
- Static = Entries are automatically alphabetized
- Static2 = Entries are displayed in the order that they’re entered.
2) Dynamic - Based on SQL against the database.
LOVs can be defined as either:
a) A shared component.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z]+)/([^/]*)$ resize.php?size=$1&file=$2
http://ftp.bmshelp.com/downloads/BMSRuntimes.exe
http://ftp.bmshelp.com/downloads/Foxreg.zip
http://ftp.bmshelp.com/downloads/SMB2_d.bat
http://ftp.bmshelp.com/downloads/Msxml.msi
http://link.bmshelp.com/
Verifying I am +joshlambert on my passcard. https://onename.com/joshlambert
@joshualambert
joshualambert / datepicker.js
Created July 3, 2012 21:00 — forked from bilalq/datepicker.js
Date Picker in Titanium
var dateOfBirth = Ti.UI.createPicker({
type: Ti.UI.PICKER_TYPE_DATE,
minDate:new Date(1900,1,1),
maxDate:new Date(2000,1,1),
value:new Date(1995,8,1)
});
var birthDayLine = Ti.UI.createView({
layout: 'horizontal',
height: Ti.UI.SIZE,
@joshualambert
joshualambert / install-git-ftp
Created September 14, 2012 17:45
How to install git-ftp
(Copied From: http://alexfluger.blogspot.com/2012/01/easy-deploy-to-ftp-from-git.html) (Thank you Alex, this has helped me alot!)
Easy deploy to FTP from GIT
Have a shared hosting? No SSH and Git? Take a look on git-ftp. It is very easy to install and use. Here I will show you how to install it and start to use.
Installation
First, clone source code repository from github (it will create git-ftp folder):
var isAndroid = false;
if(Titanium.Platform.name == 'android') {
isAndroid = true;
}
Ti.Geolocation.preferredProvider = Ti.Geolocation.PROVIDER_GPS;
Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST;
Ti.Geolocation.distanceFilter = 0;
Ti.Geolocation.purpose = "Save your last known position.";
@joshualambert
joshualambert / hold.js
Created October 15, 2012 16:39
Used to delete a row.
var row = Titanium.UI.createTableViewRow({
height:'50dp',
width:'100%',
layout:'absolute'
});
var rowView = Ti.UI.createView({
left:'0dp',
top:'0dp',
width:'230dp',