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.Text.RegularExpressions; | |
using System.Windows.Forms; | |
using MYOB.AccountRight.SDK; | |
using MYOB.AccountRight.SDK.Communication; | |
using MYOB.AccountRight.SDK.Services; | |
namespace arl_winforms_sample | |
{ | |
public partial class Form1 : Form |
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 blockSize = 2; | |
var blocks = arrayListEnumerableOfThing | |
.Select((element, idx) => new { element, idx }) | |
.GroupBy(x => x.idx / blockSize, x => x.element) | |
.Select(b => b.ToArray()) | |
.ToArray(); |
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
$sorted = [IO.Directory]::GetFiles($path, "*.*", [System.IO.SearchOption]::AllDirectories) | | |
Select-Object @{Name="FullName"; Expression={$_}}, @{Name="FileName"; Expression={[IO.Path]::GetFileName($_)}} | | |
Sort-Object FileName |
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
class Program | |
{ | |
/// <summary> | |
/// load in a CSV file and wrap any field that isn't in quotes with quotes | |
/// </summary> | |
/// <param name="args"></param> | |
static void Main(string[] args) | |
{ | |
var reader = File.OpenText(Path.Combine(Directory.GetCurrentDirectory(),args[0])); |
NewerOlder