Skip to content

Instantly share code, notes, and snippets.

View joshualambert's full-sized avatar
🎧

Josh Lambert joshualambert

🎧
View GitHub Profile
var mainWindow = Ti.UI.createWindow();
var myView = Ti.UI.createView({
width:500,
height:500,
left:-500,
backgroundColor:blue
});
mainWindow.add(myView);
function dump(arr,level) {
var dumped_text = "";
if(!level) level = 0;
//The padding given at the beginning of the line.
var level_padding = "";
for(var j=0;j<level+1;j++) level_padding += " ";
if(typeof(arr) == 'object') { //Array/Hashes/Objects
for(var item in arr) {
$query = mysqli_query($connection,"INSERT INTO `child_menu_details` (`id`, `parent_id`, `child_id`, `date`, `lunch`, `side1`, `side2`, `side3`, `side4`, `size`, `smoothie`, `orderDate`)
VALUES (NULL, '".$parentid."', '".$childid."', '".$date."' ,'".$lunch."', '".$side1."', '".$side2."', '".$side3."', '".$side4."', '".$size."', '".$smoothie."', '".$orderDate."')");
@joshualambert
joshualambert / hintTextShim
Created January 2, 2014 16:44
hintText shim for Appcelerator's Titanium allowing hintText to be colored. Simply call this function after creating each textfield, and pass the option isPswd boolean if you're dealing with a password field.
// Used to fake hintText coloring to the font color.
// Requires hintText to be defined on the object being passed.
function hintTextShim(uiObject, isPswd) {
uiObject.objectFocus = function () {
if (uiObject.value === uiObject.hintText) {
if (typeof isPswd !== 'undefined' && isPswd === true) {
uiObject.passwordMask = true;
}
uiObject.value = '';
}
- [ ] 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