Skip to content

Instantly share code, notes, and snippets.

@zeroZshadow
zeroZshadow / BasicTemplateProvider.cs
Last active October 24, 2018 10:26
BasicTemplateProvider loading fix
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved
using System;
using System.Linq;
using Improbable.Assets;
using Improbable.Unity;
using Improbable.Unity.Assets;
using Improbable.Unity.Entity;
using UnityEngine;
@cortvi
cortvi / !Refractive Surface Shader.md
Last active March 31, 2022 22:55
Custom refractive liquid surface shader
We couldn’t find that file to show.
@paully21
paully21 / aspnetmvc_discourse_sso.cs
Created February 26, 2014 16:25
ASP.NET MVC Discourse SSO Example
public ActionResult DiscourseLogin()
{
if (string.IsNullOrEmpty(Request.QueryString["sso"]) || string.IsNullOrEmpty(Request.QueryString["sig"]))
return Content("Invalid");
string ssoSecret = "YOUR SSO SECRET"; //must match sso_secret in discourse settings
string sso = Request.QueryString["sso"];
string sig = Request.QueryString["sig"];