Skip to content

Instantly share code, notes, and snippets.

Avatar

David Veksler DavidVeksler

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am davidveksler on github.
  • I am davidveksler (https://keybase.io/davidveksler) on keybase.
  • I have a public key ASC-2MBCOhjaUIPcBeOFWlYojIZnNU0MWnGHb5aMgFEhTgo

To claim this, I am signing this object:

@DavidVeksler
DavidVeksler / ImportController.cs
Created August 22, 2016 22:12
How FEE digitized and shared 70 years of archives on the Web: an Umbraco case study
View ImportController.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Archive.FEE.Web.Helper.PDFParser;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
@DavidVeksler
DavidVeksler / Global.asax.cs
Created September 6, 2015 11:25
Umbraco: JPEGmini Umbraco background uploaded media JPEG image optimizer
View Global.asax.cs
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
MediaService.Saved += MediaService_Saved;
}
private void MediaService_Saved(IMediaService sender, SaveEventArgs<IMedia> e)
{
try
{
.. some other stuff...
@DavidVeksler
DavidVeksler / ForgotPassword.cshtml
Created September 6, 2015 11:22
Umbraco 7: reset password for user and forgot password implementation
View ForgotPassword.cshtml
@using FEE.Domain
@inherits UmbracoTemplatePage
@{
Layout = "FEEMaster.cshtml";
var featuredImage = CoverImageProvider.GetCoverImageOrDefault(CurrentPage.featuredImage);
}
@section bodyClass {subpage}
@*TODO maybe implement:https://github.com/warrenbuckley/CWS-Umbraco-Standard-Membership/blob/master/CWSUmbracoStandardMembership/Views/AuthSurface/ResetPassword.cshtml
@DavidVeksler
DavidVeksler / ContentNotFound.cshtml
Last active September 6, 2015 10:58
Umbraco: 404 page should search for best match
View ContentNotFound.cshtml
@using System.ServiceModel.Dispatcher
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "FEEMaster.cshtml";
IPublishedContent featuredImage = FEE.Domain.CoverImageProvider.GetCoverImageOrDefault(CurrentPage.featuredImage);
}
@section bodyClass {
subpage
}
View MemberProfileContentFinder.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Querying;
using Umbraco.Web.Routing;