Skip to content

Instantly share code, notes, and snippets.

View karno's full-sized avatar
🤔

Karno karno

🤔
View GitHub Profile
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>
#if DEBUG
//トレースプリントを行うか
//#define SHOW_TRACE_PRINT
#endif
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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;
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;
public static IEnumerable<T> DownRank<T>(this IEnumerable<IEnumerable<T>> collection)
{
foreach (var items in collection)
foreach (var item in items)
yield return item;
}
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);
using System;
using System.Drawing;
using System.Xml.Linq;
namespace Std.Network.Xml
{
/// <summary>
/// XML node parsers
/// </summary>
public static class Parsers
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Std.Network
{
/// <summary>
/// Unix epoch service
/// </summary>
#include <list>
#include <vector>
#include <stack>
#include <stdexcept>
#include <algorithm>
#include <utility>
// for assertion
#include <cassert>
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;