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 const string SECTION_OWNER_TEXT = "I AM A PARENT PAGE"; | |
public static IEnumerable<RemotePage> getWeeklyParentPages(this ConfluenceClient client, string token, RemotePageSummary[] pages) | |
{ | |
var pageContent = pages.Select(p => client.getPage(token, p.id)); | |
var weeklyParentPages = pageContent.Where(p => p.content.Contains(SECTION_OWNER_TEXT)); | |
return weeklyParentPages; | |
} |
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
private string _filePath; | |
public string FilePath | |
{ | |
get { return _filePath; } | |
set { _filePath = value; NotifyOfPropertyChange(()=> FilePath); } | |
} | |
private void NotifyOfPropertyChange<TValue>(Expression<Func<TValue>> propertySelector) | |
{ |
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
[ | |
{ | |
"pmu":"Capital Markets", | |
"list":[ | |
{ | |
"fund":"AAA", | |
"strategy":"US Capital Markets" | |
}, | |
{ | |
"fund":"BBB", |
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
// DO THIS | |
using (var filestream = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) | |
using (var reader = new StreamReader(filestream)) | |
{ | |
records = reader.ReadToEnd(); | |
reader.Close(); | |
} |
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.Data; | |
using System.Linq; | |
using System.Reflection; | |
namespace ConsoleApplication | |
{ | |
public static class DataTableUtil | |
{ |
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
module Program | |
open System | |
open Akka | |
open Akka.Actor | |
open Akka.FSharp | |
open Akka.Configuration | |
type Message = |
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
module Program | |
open System | |
open Akka | |
open Akka.Actor | |
open Akka.FSharp | |
open Akka.Configuration | |
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.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Reactive.Disposables; | |
using System.Reactive.Concurrency; | |
using System.Reactive.Linq; | |
using System.Text; |
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
#homebrew > cask > Virtualbox > Vagrant > CentOS > Docker > Ubuntu | |
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
$ brew tap caskroom/homebrew-cask | |
$ brew install brew-cask | |
$ brew cask install virtualbox | |
$ brew cask install vagrant | |
$ brew tap homebrew/completions | |
$ brew install vagrant-completion |
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.Configuration; | |
using System.Reflection; | |
using System.ServiceModel; | |
using log4net; | |
namespace Bobby.Chopra | |
{ | |
static class SomeService |