Skip to content

Instantly share code, notes, and snippets.

View mzekrallah's full-sized avatar

Mohammad Zekrallah mzekrallah

View GitHub Profile
public static void InsertUniquePromotionForNormalAndDiscountedConsults(int count)
{
List<Promotion> promotions = new List<Promotion>(count);
IAppSettings appSettings = new AppSettings();
string connectionString = appSettings.GetString("connectionString");
var dbFactory = new OrmLiteConnectionFactory(connectionString, ServiceStack.OrmLite.MySqlDialect.Provider)
{
ConnectionFilter = x => new ProfiledDbConnection(x, Profiler.Current)
@mzekrallah
mzekrallah / UnbounceUTMTrackingCTA.js
Last active February 27, 2020 08:48
Unbounce Landing Pages UTM Tracking
function getURLParameter(name) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] === name) {
return pair[1];
}
}
return "";
2020-04-01 19:42:22.282935+0300 CuraUserAppiOS[12557:261009] [Assert] Attempted to set invalid UISemanticContentAttribute value, or value is too large to fit in _viewFlags.semanticContentAttribute: -5769595286863814895
2020-04-01 19:42:22.282935+0300 CuraUserAppiOS[12557:261009] [Assert] Attempted to set invalid UISemanticContentAttribute value, or value is too large to fit in _viewFlags.semanticContentAttribute: -5769595286863814895
2020-04-01 19:42:24.116813+0300 CuraUserAppiOS[12557:261009] [Assert] button text attributes only respected for UIControlStateNormal, UIControlStateSelected, UIControlStateFocused, and UIControlStateDisabled. state = 1 is interpreted as UIControlStateSelected.
2020-04-01 19:42:35.161061+0300 CuraUserAppiOS[12557:261009] The behavior of the UICollectionViewFlowLayout is not defined because:
2020-04-01 19:42:35.161216+0300 CuraUserAppiOS[12557:261009] the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the c
public static ConsultationUserExtendInfo GetUserExtendInfo(ConsultationSessionStateDto consultation, List<ConsultationPreviousStatesDto> previousStates)
{
ConsultationUserExtendInfo userExtendInfo = new ConsultationUserExtendInfo()
{
IsAllowed = true,
//ExtendDuration = 5 // Minutes Duration By Default
};
try
{