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 partial class StringExtensions | |
{ | |
/// <summary> | |
/// Sanitizes the string according to Windows Client Certificate Enrollment | |
/// Protocol: http://msdn.microsoft.com/en-us/library/cc249879.aspx | |
/// </summary> | |
/// <param name="input">The input.</param> | |
/// <returns>System.String.</returns> | |
/// <remarks> | |
/// All disallowed characters in the original name MUST be replaced with |
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
angularModule. | |
factory( | |
'callChain', | |
[ | |
function() { | |
return function () { | |
var cs; | |
cs = []; | |
this.add = function (call) { | |
cs.push(call); |
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 f1(callback) { | |
console.log('f1'); | |
if (callback != null) { | |
console.log('hasCallback'); | |
callback(); | |
} | |
} | |
function f2(callback) { | |
console.log('f2'); | |
if (callback != 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
SET IDENTITY_INSERT [LogEntry2] ON; | |
GO | |
WHILE (SELECT COUNT(*) FROM [LogEntry2]) < 2500000 | |
BEGIN | |
INSERT INTO [LogEntry2] | |
( | |
[LogEntry2].[Id] | |
, [LogEntry2].[Culture] | |
, [LogEntry2].[Created] | |
, [LogEntry2].[CreatedBy] |
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
Set-Alias iiscfg Edit-ApplicationHostsConfig | |
function Edit-ApplicationHostsConfig { | |
$file = Get-ApplicationHostsConfig | |
edit $file | |
} | |
function Get-ApplicationHostsConfig(){ | |
$appHostConfig = "C:\Windows\sysnative\inetsrv\config\applicationHost.config" | |
$exists = Test-Path $appHostConfig |
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
namespace MyNamespace | |
{ | |
[LicenseProvider(typeof(MyLicenseProvider))] | |
public class MyLicensedComponent : Component | |
{ | |
} | |
public class MyLicenseProvider : LicenseProvider | |
{ |
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
TXTextControl.ServerTextControl, TXTextControl.Server, Version=21.0.600.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638 |
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
"LC.exe" /target:Licensensing.dll /complist:.\licenses.licx /outdir:. /i:".\TXTextControl.Server.dll" |
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
"Csc.exe" /reference:"System.dll" /reference:"System.Core.dll" /reference:"TXTextControl.dll" /reference:"TXTextControl.Server.dll" /out:Licensensing.dll /resource:Licensensing.dll.licenses /target:library .\Class1.cs .\Properties\AssemblyInfo.cs |
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
//.. | |
if (resourceAssembly == null) | |
{ | |
resourceAssembly = Assembly.GetEntryAssembly(); | |
} | |
if (resourceAssembly == null) | |
{ | |
foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) | |
{ | |
//... |
OlderNewer