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 Std.HeavenlyHand.Data; | |
using Std.HeavenlyHand.Criteria; | |
namespace Std.HeavenlyHand.Logic | |
{ | |
/// <summary> |
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
#if DEBUG | |
//トレースプリントを行うか | |
//#define SHOW_TRACE_PRINT | |
#endif | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; |
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 void ProcessStartSuggest(string text, int selectedStart) | |
{ | |
if (String.IsNullOrEmpty(text) || selectedStart > text.Length || selectedStart < 1) | |
return; | |
System.Diagnostics.Debug.Assert(text != null, "Text is null."); | |
foreach (var c in SuggestCandidates) | |
{ | |
if (text[selectedStart - 1] == c) | |
{ | |
targetStart = selectedStart; |
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.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; | |
using System.Windows.Media; |
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 static IEnumerable<T> DownRank<T>(this IEnumerable<IEnumerable<T>> collection) | |
{ | |
foreach (var items in collection) | |
foreach (var item in items) | |
yield return item; | |
} |
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 void Func() | |
{ | |
var b = new Basic("User_id", "User_pw"); | |
StreamingApi.OnReceivedStatus += new Action<TwitterStatus>(StreamingApi_OnReceivedStatus); | |
b.BeginStreaming(StreamingApi.StreamingType.filter, track: "Keywords"); | |
} | |
void StreamingApi_OnReceivedStatus(TwitterStatus obj) | |
{ | |
this.Invoke(new Action<string, string>((u, t) => listView1.Items.Add(new ListViewItem(new[] { u, t }))), obj.User.ScreenName, obj.Text); |
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.Drawing; | |
using System.Xml.Linq; | |
namespace Std.Network.Xml | |
{ | |
/// <summary> | |
/// XML node parsers | |
/// </summary> | |
public static class Parsers |
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; | |
namespace Std.Network | |
{ | |
/// <summary> | |
/// Unix epoch service | |
/// </summary> |
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
#include <list> | |
#include <vector> | |
#include <stack> | |
#include <stdexcept> | |
#include <algorithm> | |
#include <utility> | |
// for assertion | |
#include <cassert> |
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.IO; | |
using System.Linq; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
using System.Threading; | |
using System.Xml.Linq; | |