This file contains hidden or 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 User = RootNS.SubNS.User; | |
| namespace RootNS.AnotherSubNS { | |
| class Test { | |
| User = new RootNS.SubNS.User(); | |
| } | |
| } |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using Matters.Helpers; | |
| using HtmlAgilityPack; | |
| namespace Matters.Helpers | |
| { | |
| /* |
This file contains hidden or 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
| var allowedItems = from pair in dict | |
| where IsAllowed(pair.Key) | |
| select pair.Value; | |
This file contains hidden or 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
| $bak_folder = "c:\backups\db" | |
| $sql_server_user = "sa" | |
| $sql_server_pwd = "P4$$w0rd" | |
| $databases = @{ "DbName"="db.bak" } | |
| function Restore-Backups { | |
| foreach ($db in $databases.keys) { |
This file contains hidden or 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 const string CharUnicodeFormat = "&#{0};"; | |
| public static string EncodeUnicodeChars(this string text) { | |
| if (text == null) { | |
| throw new ArgumentNullException("text"); | |
| } | |
| return text.Aggregate( | |
| new StringBuilder(), |
This file contains hidden or 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
| <system.webServer> | |
| <staticContent> | |
| <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" /> | |
| </staticContent> | |
| <urlCompression doDynamicCompression="true" doStaticCompression="true" /> | |
| </system.webServer> |
This file contains hidden or 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
| Register( | |
| Component. | |
| For<HttpRequestBase>(). | |
| LifeStyle.PerWebRequest. | |
| UsingFactoryMethod(() => new HttpRequestWrapper(HttpContext.Current.Request)), | |
| Component. | |
| For<HttpContextBase>(). | |
| LifeStyle.PerWebRequest. | |
| UsingFactoryMethod(() => new HttpContextWrapper(HttpContext.Current)) |
This file contains hidden or 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; | |
| namespace Rarous.Web.Routing | |
| { | |
| public class DomainData | |
| { | |
| public string Protocol { get; set; } | |
| public string HostName { get; set; } | |
| public string Fragment { get; set; } | |
| } |
This file contains hidden or 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 Write-JsDeps { | |
| param($root, $prefix, $exclusion) | |
| "// This file was autogenerated" | |
| "// Please do not edit." | |
| Get-ChildItem $root -Recurse -Include *.js -Exclude $exclusion | sort FullName | | |
| %{ Create-DepsLine $root $prefix $_.FullName } | |
| } |