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.Net; | |
using global::ServiceStack; | |
using global::ServiceStack.Logging; | |
using global::ServiceStack.ServiceHost; | |
public class AuthenticateFilter | |
{ | |
private static readonly ILog Log = LogManager.GetLogger(typeof(AuthenticateFilter)); |
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
<!-- $locationProvider.html5Mode(true) in app.js and <base href="/"> in head tag --> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="AngularJS" stopProcessing="true"> | |
<match url=".*" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
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
<script type="text/javascript"> | |
var URL=document.location; | |
//This makes the URL become a string, without it, an error would | |
//occur. | |
URL+=""; | |
if(URL.toLowerCase() != URL){ //Check if the URL needs modified | |
//If so, then replace it. | |
document.location.replace(URL.toLowerCase()); |
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
myApp.directive("autoGrow", function(){ | |
return function(scope, element, attr){ | |
var update = function(){ | |
element.css("height", "auto"); | |
element.css("height", element[0].scrollHeight + "px"); | |
}; | |
scope.$watch(attr.ngModel, function(){ | |
update(); | |
}); | |
attr.$set("ngTrim", "false"); |
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 class OrderByHelper | |
{ | |
public static IEnumerable<T> OrderBy<T>(this IEnumerable<T> enumerable, string orderBy) | |
{ | |
return enumerable.AsQueryable().OrderBy(orderBy).AsEnumerable(); | |
} | |
public static IQueryable<T> OrderBy<T>(this IQueryable<T> collection, string orderBy) | |
{ | |
foreach(OrderByInfo orderByInfo in ParseOrderBy(orderBy)) |
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
"workbench.colorCustomizations": { | |
"foreground": "#9cdb70", | |
"focusBorder": "#42d400", | |
"selection.background": "#25a7332a", | |
"scrollbar.shadow": "#92db68", | |
"activityBar.foreground": "#ffffff", | |
"activityBar.background": "#264b21", | |
"activityBar.inactiveForeground": "#9fdb8466", | |
"activityBarBadge.foreground": "#ffffff", |
OlderNewer