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
$d = "C:\db\backup" | |
$today = get-date -uformat "%Y_%m_%d" | |
$log = "C:\db\backup\" + "Purge_" + $today + ".log" | |
$a = Get-ChildItem $d -recurse | |
foreach($x in $a) | |
{ | |
$y = ((Get-Date) - $x.CreationTime).Days | |
if ($y -gt 3 -and $x.PsISContainer -ne $True) | |
{ | |
$deleted = "Deleting - " + $x.fullname + " - Last Write Time - " + $x.LastWriteTime |
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; | |
using System.Runtime.Remoting.Activation; | |
using System.Runtime.Remoting.Contexts; | |
using System.Runtime.Remoting.Messaging; | |
using DirectTrack; | |
using System.Linq; | |
namespace AOP | |
{ | |
/// <summary> |
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; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Web.UI.WebControls; | |
namespace ClientPortal | |
{ | |
public static class Extensions | |
{ | |
/// <extends><c>GridView</c></extends> |
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 string ToCurrencyString(this decimal amount, string currency) | |
{ | |
var map = new Dictionary<string, string> | |
{ | |
{"USD", "en-us"}, | |
{"GBP", "en-gb"}, | |
{"EUR", "de-de"}, | |
{"AUD", "en-AU"}, | |
{"CAD", "en-us"} | |
}; |
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 EomApp1.Formss.AB2.Model; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using System; | |
using System.Linq; | |
namespace TestProject6 | |
{ | |
/// <summary> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="Lead"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="Name" type="TName" /> | |
<xs:element name="Interested" type="TBool" /> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> |
NewerOlder