This file contains 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
<Project Sdk="Microsoft.NET.Sdk.Web"> | |
<PropertyGroup Label="Globals"> | |
<SccProjectName>SAK</SccProjectName> | |
<SccProvider>SAK</SccProvider> | |
<SccAuxPath>SAK</SccAuxPath> | |
<SccLocalPath>SAK</SccLocalPath> | |
<Configurations>Debug;Release;WEB-DEV;WEB-PROD</Configurations> | |
</PropertyGroup> |
This file contains 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
// =========================================== | |
// Fix AssemblyBindingRedirects | |
// Prototype by Robert McLaws (@robertmclaws) | |
// Last Updated 20 Aug 2017 | |
// =========================================== | |
//RWM: Set these to your specific project. | |
var projectFolder = @"D:\GitHub\SomeSolution\src\SomeProject"; | |
const string configFile = "app.config"; |
This file contains 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
// =========================================== | |
// Kill Packages.config With 🔥🔥🔥 | |
// Prototype by Robert McLaws (@robertmclaws) | |
// Last Updated 19 Aug 2017 | |
// =========================================== | |
//RWM: Set these to your specific project. | |
var projectFolder = @"D:\GitHub\SomeCoolApp\src\SomeProject"; | |
var projectFile = @"SomeProject.csproj"; |
This file contains 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
/* | |
* Kendo UI Complete v2013.1.529 (http://kendoui.com) | |
* Copyright 2013 Telerik AD. All rights reserved. | |
* | |
* Kendo UI Complete commercial licenses may be obtained at | |
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx | |
* If you do not own a commercial license, this file shall be governed by the trial license terms. | |
*/ | |
@import "../Bootstrap/variables.less"; |
This file contains 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
function signin(returnUrl?: string, targetId?: string, showChrome: boolean = true) { | |
//RWM: We declare a new version every time because the old one gets disposed. | |
var lock = new Auth0Lock(auth0ClientId, auth0Domain); | |
lock.showSignin({ | |
callbackURL: window.location.origin + "/signin-auth0", | |
authParams: { | |
state: returnUrl !== "" ? "ru=" + returnUrl : null, | |
scope: "openid profile" | |
}, | |
container: targetId, |
This file contains 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 System.Collections.Generic; | |
using System.Runtime.Serialization; | |
using Newtonsoft.Json; | |
namespace AdvancedREI.Project.Areas.External.Models | |
{ | |
[DataContract] | |
public class Identity | |
{ |
This file contains 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
public static void ProcessQueueMessage([QueueTrigger("events")] byte[] messageEnvelope) | |
{ | |
var message = messageEnvelope.Deserialize<string>()); | |
Trace.WriteLine(message). | |
} | |
public static T Deserialize<T>(this byte[] data) where T : class | |
{ | |
if (data == null) | |
{ |
This file contains 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
function read(query, user, request) { | |
query.toSql = function() { | |
var result = ""; | |
var queryComponents = query.getComponents(); | |
//RWM: Reflection component for getting the sort order. | |
if (queryComponents.ordering != null) { | |
queryComponents.ordering.getProperties = function() { | |
var properties = []; | |
for (var prop in this) { |
This file contains 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
CREATE FUNCTION [yourmobileservicesschema].[GetAvgRatingForPicture](@pictureId bigint) | |
RETURNS int | |
AS | |
BEGIN | |
DECLARE @r decimal(3,2) | |
select @r = AVG(rating) from PictureRatings where picture_id = @pictureId | |
RETURN @r | |
END |
This file contains 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
public partial class App : Application | |
{ | |
public static ListingInformation MarketplaceListing { get; set; } | |
//RWM: The rest of your startup code goes here... | |
} |
NewerOlder