Skip to content

Instantly share code, notes, and snippets.

View alindgren's full-sized avatar
💭
I may be slow to respond.

Alex Lindgren alindgren

💭
I may be slow to respond.
View GitHub Profile
@alindgren
alindgren / Basic Page template (dynamic)
Created September 13, 2014 03:29
Simple Umbraco demo for "Site Building with Umbraco 7" at Code Camp NYC 2014
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = null;
}<!DOCTYPE HTML>
<html>
<head>
<title></title>
<link rel="stylesheet" href="/css/style.css" />
</head>
<body>
@alindgren
alindgren / MultilingualUrlProvider.cs
Created August 27, 2015 16:03
UrlProvider for generating multilingual URLs in 1:1 multilingual Umbraco sites - see http://www.alexlindgren.com/archive/building-multilingual-sites-in-umbraco-with-vorto-part-2/
using System;
using System.Collections.Generic;
using Umbraco.Web.Routing;
/// <summary>
/// MultilingualUrlProvider
/// </summary>
public class MultilingualUrlProvider : IUrlProvider
{
@alindgren
alindgren / Readme.md
Created November 1, 2016 21:12
Canonical domain redirect for Umbraco Cloud sites

Sebastiaan Janssen has stated that content deploys might not work on Umbraco Cloud if you redirect /umbraco/*.

@alindgren
alindgren / BotController.cs
Created March 9, 2017 06:27
Bot Framework example 1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 06:32
Bot Framework example 2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 17:57
Bot Framework example 3
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 17:58
Bot Framework example 4
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 18:01
Bot Framework example 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers

Keybase proof

I hereby claim:

  • I am alindgren on github.
  • I am alexlindgren (https://keybase.io/alexlindgren) on keybase.
  • I have a public key ASCMYchBaTK5BH0ThZ1oyXJKXS7NAKQg3eDu-1INPjqVFQo

To claim this, I am signing this object:

@alindgren
alindgren / Web.live.xdt.config
Created April 21, 2016 15:58
HTTP to HTTPS redirect rule config transform
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer xdt:Transform="InsertIfMissing">
<rewrite xdt:Transform="InsertIfMissing">
<rules xdt:Transform="InsertIfMissing">
<rule name="HTTP to HTTPS redirect" xdt:Locator="Match(name)" xdt:Transform="RemoveAll"/>
<rule name="HTTP to HTTPS redirect" stopProcessing="true" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing">