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
| $("#marksradio").change(function () { | |
| var selectedValue = $("#marksradio option:selected").val(); // or .text(); | |
| // do some shit with selectedValue | |
| }) |
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
| <httpErrors existingResponse="Replace" errorMode="Custom"> | |
| <remove statusCode="404" subStatusCode="-1" /> | |
| <error statusCode="404" prefixLanguageFilePath="" path="/404.aspx" responseMode="ExecuteURL" /> | |
| </httpErrors> |
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
| // in theme functions.php | |
| <?php | |
| add_action('gform_after_submission', 'createPaymentForm', 10, 2); | |
| function createPaymentForm($entry, $form) { | |
| $valuesFound = false; | |
| $fieldId = -1; | |
| $fieldTotalId = -1; | |
| $fieldCounter = 0; |
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
| # copy from local machine to remote machine | |
| scp localfile user@host:/path/to/whereyouwant/thefile | |
| # copy from remote machine to local machine | |
| scp user@host:/path/to/remotefile localfile |
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
| DELETE FROM dbo.Orchard_MediaProcessing_FileNameRecord | |
| WHERE id in ( | |
| SELECT id | |
| FROM ( | |
| SELECT | |
| path, id, | |
| ROW_NUMBER() OVER (PARTITION BY path ORDER BY id) AS intRow | |
| FROM dbo.Orchard_MediaProcessing_FileNameRecord | |
| ) AS d | |
| WHERE intRow != 1 |
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 Orchard; | |
| using Orchard.Caching; | |
| using Orchard.Environment.Configuration; | |
| using Orchard.Environment.Extensions; | |
| using Orchard.Mvc.Filters; | |
| using Orchard.OutputCache.Filters; | |
| using Orchard.OutputCache.Services; | |
| using Orchard.Services; | |
| using Orchard.Themes; | |
| using Patient.Core.Extensions; |
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
| <location path="route"> | |
| <system.web> | |
| <httpHandlers> | |
| <add path="*" type="System.Web.Handlers.TransferRequestHandler" verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" /> | |
| </httpHandlers> | |
| </system.web> | |
| <!-- Required for IIS 7.0 --> | |
| <system.webServer> | |
| <modules runAllManagedModulesForAllRequests="true" /> | |
| <validation validateIntegratedModeConfiguration="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
| private readonly ISuesService suesService; | |
| // current | |
| void SuesController(ISuesService ss) | |
| { | |
| this.suesService = ss; | |
| } | |
| // without di | |
| void SuesController() |
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 contentItemIdsByLetter = this.cacheManager.Get( | |
| string.Concat("Patient.Contenttypes.Az.Ids.For.", letter), | |
| ctx => { | |
| ctx.Monitor(this.clock.When(Timespan.FromDays(1))); | |
| return this.letterRepository.Fetch(x => x.Title.StartsWith(letter)).toList(); | |
| } | |
| var items = this.cacheManager.Get( | |
| string.Concat("Patient.Contenttypes.Az.Items.For.", letter, ".By.", contentType), | |
| ctx => { |
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 contentAzDefinitions = this.cacheManager.Get( | |
| string.Concat("Patient.Contenttypes.Az.Ids.For.", letter), | |
| ctx => { | |
| ctx.Monitor(this.clock.When(Timespan.FromDays(1))); | |
| var titleDefinitions = this.letterRepository.Fetch(x => x.Title.StartsWith(letter)).toList(); | |
| var content = this.contentManager.GetMany(titleDefinitions.Select(x => x.ContentItemId), VersionOptions.Published); | |
| var items = new List<AzLinkDefinition>(); | |
| foreach(var titleDefinition in titleDefinitions) | |
| { |
OlderNewer