This file contains hidden or 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
| using System; | |
| using System.ComponentModel; | |
| namespace XamarinStore | |
| { | |
| public enum ProductType | |
| { | |
| Shirt, | |
| Plushie | |
| } |
This file contains hidden or 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
| SELECT Id, Name, CreatedDate, LastModifiedDate | |
| FROM ( | |
| SELECT Id, Name, CreatedDate, LastModifiedDate | |
| FROM OPENQUERY(DBAMP, 'select * from Account') | |
| WHERE Account_Profile__c IS NULL | |
| AND Account_Stage__c IS NULL | |
| AND Account_Tier__c IS NULL | |
| AND AccountNumber IS NULL | |
| AND Annual_Revenue_in_millions__c IS NULL | |
| AND AnnualRevenue IS NULL |
This file contains hidden or 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 client = new StripeClient(SiteSettings.StripeApiKey); | |
| dynamic response = client.RetrieveCustomer(user.CustomerIdentifier); | |
| if (response.IsError) | |
| { | |
| this.FlashError((string)response.error.message); | |
| } | |
| else | |
| { | |
| // expand default_card |
This file contains hidden or 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
| analytics.identify (userData['email'], { | |
| email: userData['email'], | |
| firstName: userData['firstName'], | |
| lastName: userData['lastName'], // trailing comma breaks IE8 | |
| }); |
This file contains hidden or 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
| // ------------------------------------------------------------------------------ | |
| // <autogenerated> | |
| // This code was generated by a tool. | |
| // Mono Runtime Version: 4.0.30319.17020 | |
| // | |
| // Changes to this file may cause incorrect behavior and will be lost if | |
| // the code is regenerated. | |
| // </autogenerated> | |
| // ------------------------------------------------------------------------------ | |
| using System; |
This file contains hidden or 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
| <script type="text/javascript"> | |
| (function() { | |
| function initMunchkin() { | |
| Munchkin.init('YOUR-ID'); | |
| // custom handling after marketo is ready | |
| if (typeof marketo_ready != 'undefined') marketo_ready(); | |
| } | |
| var s = document.createElement('script'); |
This file contains hidden or 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
| doImageGet: function(a, b, c, d, e) { | |
| var b = a + b + "&" + this.$.param(c), f = false, a = new Image(1, 1); | |
| a.onload = function() { | |
| f = true; | |
| _MchHlpr.isDefined(e) && e() | |
| }; | |
| a.src = b; | |
| if (d > 0) | |
| for (b = (new Date).getTime(); !f; ) | |
| if ((new Date).getTime() - b > d) |
This file contains hidden or 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 emailMessage = new EmailMessage | |
| { | |
| to = new List<EmailAddress>() { new EmailAddress() { email = model.Email, name = model.ShippingName } }, | |
| track_clicks = true, | |
| track_opens = true | |
| }; | |
| emailMessage.AddGlobalVariable("shipping_name", model.ShippingName.EmptyIfNull()); | |
| emailMessage.AddGlobalVariable("base_url", GetBaseUrl()); | |
| emailMessage.AddGlobalVariable("address1", model.Address1.EmptyIfNull()); |
This file contains hidden or 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
| public function actionMobileLogin() | |
| { | |
| $this->layout = 'mobile'; | |
| Yii::app()->user->setState('loginType', 'mobile'); | |
| $this->actionLogin(true); | |
| } | |
| public function actionLogin($skipMobileCheck = false) |
This file contains hidden or 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
| from c in charges | |
| from componentVersion in allComponents | |
| where c.Timestamp.Month == Month | |
| && c.Timestamp.Year == Year | |
| && !c.Refunded | |
| && !c.ChargeSource.Equals ("comp", StringComparison.OrdinalIgnoreCase) | |
| && c.ComponentID == componentVersion.ID | |
| orderby c.Timestamp descending | |
| select c; |