Skip to content

Instantly share code, notes, and snippets.

View rasmusfjord's full-sized avatar

Rasmus Lykke Fjord rasmusfjord

View GitHub Profile
<IndexSet SetName="ExternalCourseIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/ExternalCourse/">
<IndexUserFields>
<add Name="id" />
<add Name="name" />
<add Name="createDate" />
<add Name="nodeTypeAlias" />
<add Name="urlName" />
<add Name="teaser" />
<add Name="hideFromSearch" />
</IndexUserFields>
@using learnmark
@inherits learnmark.Mvc.LeViewPage<learnmark.Models.Website.LeMaster>
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="da">
<head>
<meta charset="utf-8">
@using Archetype.Models;
@using Archetype.Extensions;
@{
ArchetypeModel slider = Model.GetPropertyValue<ArchetypeModel>("slider");
}
@foreach (var fieldset in slider)
public class BookingController : SurfaceController
{
public ActionResult GetRoomMarkup(int id)
{
return PartialView("booking-rooms", Umbraco.TypedContent(id));
}
using Examine.LuceneEngine.SearchCriteria;
var Searcher = Examine.ExamineManager.Instance.SearchProviderCollection["InternalMemberSearcher"];
var searchCriteria = Searcher.CreateSearchCriteria(Examine.SearchCriteria.BooleanOperation.Or);
var query = searchCriteria.RawQuery("githubUsername:"+payload.PullRequest.User.Login);
var searchResults = Searcher.Search(query);
var memberId = searchResults.First().Id;
$(function () {
var jRes = jRespond([
{
label: 'handheld',
enter: 0,
exit: 767
}, {
label: 'desktop',
enter: 769,
exit: 10000
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
@rasmusfjord
rasmusfjord / gist:7767057
Created December 3, 2013 10:23
Stacktrace from IBILL(ViaBell) Error on Teacommerce 1.x
2013-12-03 10:07:52,087 [7] ERROR Umbraco.Web.UmbracoApplication - [Thread 15] An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ServiceModel.Dispatcher.NetDispatcherFaultException: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter https://ssl.ditonlinebetalingssystem.dk/remote/payment:gettransactionResponse. The InnerException message was 'Invalid enum value 'IBILL' cannot be deserialized into type 'TeaCommerce.PaymentProviders.ePayService.AcquirerType'. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.'. Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: Invalid enum value 'IBILL' cannot be deserialized into type 'TeaCommerce.PaymentProviders.ePayService.AcquirerType'. Ensu