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
SELECT STUFF(STUFF(13961201, 5, 0, '/'), 8, 0, '/') |
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
DROP FUNCTION IF EXISTS [dbo].[LEVENSHTEIN] | |
GO | |
CREATE FUNCTION [dbo].[LEVENSHTEIN](@left VARCHAR(100), | |
@right VARCHAR(100)) | |
RETURNS INT | |
AS | |
BEGIN | |
DECLARE @difference INT, | |
@lenRight INT, |
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
[SuppressMessage("ReSharper", "InconsistentNaming")] |
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
List<string> Split(string str, int iterateCount) | |
{ | |
var words = new List<string>(); | |
for (int i = 0; i < str.Length; i += iterateCount) | |
if (str.Length - i >= iterateCount) | |
words.Add(str.Substring(i, iterateCount)); | |
else | |
words.Add(str.Substring(i, str.Length - i)); |
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 static class Ebcdic | |
{ | |
private static readonly char[] Ar1; | |
private static readonly char[] Ar2; | |
static Ebcdic() | |
{ | |
Ar1 = new[] | |
{ | |
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', '¢', '.', '<', '(', '+', '|', '&', 'Q', 'R', 'S', 'T', 'U', |
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.Diagnostics; | |
using System.IO; | |
namespace TestBytes | |
{ | |
class Program | |
{ | |
static unsafe void Main(string[] args) | |
{ |
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 static int Sqr(double x, double y) | |
{ | |
try | |
{ | |
checked | |
{ | |
return (int)Math.Pow(x, y); | |
} | |
} | |
catch (OverflowException) |
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 static class ActiveDirectoryHelper | |
{ | |
public static string GetSystemDomain() | |
{ | |
try | |
{ | |
return Domain.GetComputerDomain().ToString().ToLower(); | |
} | |
catch (Exception ex) | |
{ |
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
@echo off | |
set /p id="Enter Branch Code: " | |
@echo Please wait... | |
netsh interface ipv4 set address name="VirtualBox Host-Only Network" static 192.168.%id%.8 255.255.255.0 192.168.%id%.1 | |
netsh interface ipv4 set dns name="VirtualBox Host-Only Network" static 8.8.8.8 PRIMARY | |
netsh interface ipv4 add dns name="VirtualBox Host-Only Network" 4.2.2.4 index=2 | |
@echo Current branch changed to %id% Successfully. | |
pause |
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 report = new StiReport(); | |
report.Load((byte[])Resources.ResourceManager.GetObject("TestReport")); | |
var reportBusinessObjects = new List<ReportBusinessObject> | |
{ | |
new ReportBusinessObject("", "TestReport", reportDto) | |
}; | |
LoadBusinessObjects(report, reportBusinessObjects); | |
report.Compile(); | |
report.Render(false); |