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
#!/usr/bin/env ruby | |
################################################## | |
## Sample script for friend to pull some info ## | |
## from the website ... Only did it for 1 page ## | |
################################################## | |
require 'rubygems' | |
require 'safariwatir' | |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Reactive; | |
using System.Reactive.Linq; | |
using System.Reactive.Concurrency; | |
namespace LastPriceUpdate | |
{ |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Reactive.Linq; | |
namespace ScratchApp | |
{ | |
enum MessageType { Initial, Update } |
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
$ find MyDirectoryWithCSharpFiles -regex '.*cs' | while read file; do dos2unix.exe -D $file; done; |
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 Plossum.CommandLine; | |
namespace ConsoleApp | |
{ | |
[CommandLineManager(ApplicationName = "ProgramName", Copyright = "Copyright (c) Bobby Chopra")] | |
internal class CommandLineOptions | |
{ | |
private string _date; |
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.Net.Mail; | |
using System.Net.Mime; | |
namespace BinaryElephant | |
{ | |
public static class EmailUtility | |
{ | |
public static void Send(string to, string subject, string body) | |
{ | |
SendReport("[email protected]", to, subject, body, false); |
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 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 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
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 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.Windows.Input; | |
namespace MyNameSpace | |
{ | |
/// <summary> | |
/// DelegateCommand borrowed from | |
/// http://www.wpftutorial.net/DelegateCommand.html | |
/// </summary> | |
public class DelegateCommand : ICommand |
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.Windows; | |
using log4net; | |
namespace Namespace | |
{ | |
/// <summary> | |
/// Interaction logic for App.xaml | |
/// </summary> | |
public partial class App : Application | |
{ |
OlderNewer