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
# -*- coding: utf-8 -*- | |
import treetaggerwrapper as ttw | |
# 解析対象の英文 | |
text = 'Peter piper picked a peck of pickled peppers.' | |
# word, pos, lemma からなるタブ区切りの文字列のリストを取得する。 | |
tags_tabseparated = ttw.TreeTagger(TAGLANG='en').tag_text(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
using System; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Input; | |
namespace WpfDoubleClickAttachedBehaviorSample.Behaviors | |
{ | |
public class DoubleClickAttachedBehavior | |
{ | |
public static readonly DependencyProperty CommandProperty = |
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.Windows.Input; | |
namespace WpfBindableListBoxSample.Commands | |
{ | |
public class DelegateCommand : ICommand | |
{ | |
private Action _execute; | |
private Func<bool> _canExecute; |
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.Windows.Data; | |
using System.Globalization; // CultureInfo | |
namespace WpfMutuallyExclusiveCheckableMenuItemsSample.Converters | |
{ | |
public class EnumToCheckableItemsConverter : IValueConverter | |
{ | |
public object Convert( |
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.Collections.Generic; | |
using System.Windows; | |
using System.Windows.Interactivity; // Behavior | |
namespace WpfFileDragAndDropBehaviorSample.Behaviors | |
{ | |
public class FileDragAndDropBehavior : Behavior<UIElement> | |
{ | |
public static readonly DependencyProperty DraggedFilesProperty = |
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.Windows.Input; | |
namespace WpfCloseWindowCommandSample.Commands | |
{ | |
public class DelegateCommand<T> : ICommand | |
{ | |
private Action<T> _execute; | |
private Func<T, bool> _canExecute; |
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.Windows; | |
using System.Windows.Controls; | |
using System.Collections; // IList | |
using System.Windows.Interactivity; // Behavior | |
namespace WpfListBoxSelectedItemsBehaviorSample.Behaviors | |
{ | |
public class ListBoxSelectedItemsBehavior : Behavior<ListBox> | |
{ |
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.Windows.Input; | |
namespace WpfListBoxDoubleClickSample.Commands | |
{ | |
public class DelegateCommand : ICommand | |
{ | |
private Action _execute; | |
private Func<bool> _canExecute; |
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.Windows.Input; | |
namespace WpfMVVMSample.Commands | |
{ | |
public class DelegateCommand : ICommand | |
{ | |
private Action _execute; | |
private Func<bool> _canExecute; |
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
#include <stdio.h> | |
int main(void) | |
{ | |
printf("Hello!\n"); | |
return 0; | |
} |
NewerOlder