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; | |
using System.Linq; | |
using System.Windows.Data; | |
namespace LedgerscopeApplication.ValueConverters | |
{ | |
public class EnumerableToTextConverter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
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
gci -recurse -filter nuget.exe | ForEach { start-process $_.FullName -ArgumentList "update -self" } |
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 Mono.Cecil; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml.Serialization; | |
namespace CecilTest |
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
$version = "Intuit.Ipp.V3." | |
gci | | |
%{ | |
$newName = $_.Name.Replace("Intuit.Ipp.", $version) | |
mv $_.Name $newName | |
} | |
gci -Filter *.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
using Mono.Cecil; | |
using Mono.Cecil.Cil; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ |
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
var xml = XElement.Load(@"C:\users\matthew\desktop\query.xml"); | |
var names = new string[] { "" }; //Full names of participants to look for | |
var messages = xml.Elements("Table") | |
.Where(a => names.Any(a.Element("participants").Value.Split(' ').Contains)) | |
.Where(a => a.Element("body_xml") != null) | |
.Where(a => a.Element("author") != null) | |
.Select(a => new | |
{ |
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
var xml = XElement.Load(@"C:\users\matthew\desktop\wmvhigh.xml"); | |
//xml.Element("channel").Elements("item").Dump(); | |
xml.Element("channel").Elements("item") | |
.Select(a => new | |
{ | |
Title = a.Element("title").Value, | |
Url = new Uri(a.Element("enclosure").Attribute("url").Value) | |
}) |
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
Started ChromeDriver (v2.0) on port 53252 | |
[0.971][INFO]: received WebDriver request: GET /status | |
[0.972][INFO]: sending WebDriver response: 200 { | |
"sessionId": "", | |
"status": 0, | |
"value": { | |
"build": { | |
"version": "alpha" | |
}, | |
"os": { |
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
delete from [System.Activities.DurableInstancing].InstanceMetadataChangesTable | |
delete from [System.Activities.DurableInstancing].InstancePromotedPropertiesTable | |
delete from [System.Activities.DurableInstancing].InstancesTable | |
delete from [System.Activities.DurableInstancing].KeysTable | |
delete from [System.Activities.DurableInstancing].LockOwnersTable | |
delete from [System.Activities.DurableInstancing].RunnableInstancesTable | |
delete from [System.Activities.DurableInstancing].ServiceDeploymentsTable |
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
@model DateTime? | |
@{ | |
string name = ViewData.TemplateInfo.HtmlFieldPrefix; | |
string id = name.Replace(".", "_"); | |
bool monthEndOnly = ViewBag.MonthEndOnly ?? false; | |
} | |
@Html.TextBoxFor(model => model, new { style = "DatePicker" }) | |
<i class="icon-calendar"></i> |
OlderNewer