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 errorMessage =Titanium.UI.createAlertDialog({ | |
title:L('err_communication_title'), | |
message:L('err_communication_text'), | |
}); | |
errorMessage.show(); |
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
function formatJSONTime(jsonTime){ | |
var aa = jsonTime.substr(6); | |
var bb = parseInt(aa, 10); | |
var cc = new Date(bb); | |
var dd = formatTime(cc); | |
return dd; | |
} |
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
function formatTime(e) | |
{ | |
var hour_value = e.getHours(); | |
var minutes_value = '00'; | |
minute_value = e.getMinutes(); | |
if (minute_value == 0) | |
{ | |
minute_value = '00'; | |
} | |
else if (minute_value < 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
function formatCurrency(amount) | |
{ | |
var i = parseFloat(amount); | |
if (isNaN(i)) { i = 0.00; } | |
var minus = ''; | |
if (i < 0) { minus = '-'; } | |
i = Math.abs(i); | |
i = parseInt((i + 0.005) * 100, 10); | |
i = i / 100; | |
s = ''; |
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
function IsNumeric(e) { | |
var numericExpression = /^[0-9]+$/; | |
if(e.match(numericExpression)) | |
{ | |
return true; | |
} else { | |
return false; |
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
btnA: TConcButton; | |
btnB: TConcButton; | |
btnC: TConcButton; | |
btnD: TConcButton; | |
btnE: TConcButton; | |
btnF: TConcButton; | |
btnG: TConcButton; | |
btnH: TConcButton; | |
btnI: TConcButton; | |
btnJ: TConcButton; |
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
if (thisThing()) | |
doThat(); | |
else | |
doThis(); | |
alsoThat(); | |
// Is not the same as: | |
if (thisThing()) { |
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
namespace DevToolWPF.Utils | |
{ | |
public class RadioColorConverter | |
{ | |
private static int RsNormalized(int a, int b) | |
{ | |
return ((a*(((1 << (b)) - 1))/100)); | |
} | |
private static int RsRgbValue(int r, int g, int b) |
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
1>------ Build started: Project: Cheetah, Configuration: Debug Win32 ------ | |
1> BoxOfficeFile.cpp | |
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\algorithm(2944): error C2664: 'bool perf_itr_number_pred::operator ()(std::_Vector_iterator<_Myvec>,std::_Vector_iterator<_Myvec>)' : cannot convert parameter 1 from 'CPerformance *const ' to 'std::_Vector_iterator<_Myvec>' | |
1> with | |
1> [ | |
1> _Myvec=std::_Vector_val<std::_Simple_types<CPerformance>> | |
1> ] | |
1> No constructor could take the source type, or constructor overload resolution was ambiguous | |
1> c:\program files (x86)\microsoft visual studio 11.0\vc\include\algorithm(2968) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2> std::_Equal_range<std::_Vector_iterator<_Myvec>*,_Ty,__w64 int,_Pr>(_FwdIt,_FwdIt,const _Ty &,_Pr,_Diff *)' being compiled | |
1> with |
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
int DesaturateColor(int seatColor, int remainingSaturation, int targetColor) | |
{ | |
int justR = (seatColor & 0xFF0000); | |
justR -= (targetColor << 16); | |
int r = ((justR * remainingSaturation) / 100) + (targetColor << 16); | |
r &= 0xFF0000; | |
int justG = (seatColor & 0x00FF00); | |
justG -= (targetColor << 8); | |
int g = (justG * remainingSaturation) / 100 + (targetColor << 8); | |
g &= 0x00FF00; |
OlderNewer