Skip to content

Instantly share code, notes, and snippets.

Mohammad Zekrallah mzekrallah

View GitHub Profile
View gist:bed72a335fce7b8168ba6a5805f2a2d8
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
@mzekrallah
mzekrallah / UnbounceUTMTrackingCTA.js
Last active Feb 27, 2020
Unbounce Landing Pages UTM Tracking
View UnbounceUTMTrackingCTA.js
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 "";
View gist:67a7c8abaedb0ffaddfa48340b779e66
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)
You can’t perform that action at this time.