Skip to content

Instantly share code, notes, and snippets.

View yoshiiz's full-sized avatar

よしいず yoshiiz

View GitHub Profile
@yoshiiz
yoshiiz / singlylinkedlist.c
Last active October 23, 2017 14:30
[C言語] 単方向リスト
#include <stdio.h>
#include <stdlib.h>
/* ノード */
typedef struct Node_tag {
int data;
struct Node_tag *next;
} Node;
/* 単方向リスト */
@yoshiiz
yoshiiz / play_audio_cont_loop.html
Last active August 11, 2023 07:04
[JavaScript] 複数の音楽ファイルを連続で再生しループする。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>連続再生ループ</title>
</head>
<body>
<audio id='audio'></audio>
<script type="text/javascript">
'use strict';
@yoshiiz
yoshiiz / hello.c
Created October 23, 2017 15:12
[C言語] ソースコードのサンプル
#include <stdio.h>
int main(void)
{
printf("Hello!\n");
return 0;
}
@yoshiiz
yoshiiz / Commands\DelegateCommand.cs
Last active April 16, 2019 15:39
[Visual C# 2017][WPF] WpfMVVMSample
using System;
using System.Windows.Input;
namespace WpfMVVMSample.Commands
{
public class DelegateCommand : ICommand
{
private Action _execute;
private Func<bool> _canExecute;
@yoshiiz
yoshiiz / Commands\DelegateCommand.cs
Last active December 2, 2017 07:52
[Visual C# 2017][WPF] WpfListBoxDoubleClickSample
using System;
using System.Windows.Input;
namespace WpfListBoxDoubleClickSample.Commands
{
public class DelegateCommand : ICommand
{
private Action _execute;
private Func<bool> _canExecute;
@yoshiiz
yoshiiz / Behaviors\ListBoxSelectedItemsBehavior.cs
Last active December 2, 2017 07:55
[Visual C# 2017][WPF] WpfListBoxSelectedItemsBehaviorSample
using System.Windows;
using System.Windows.Controls;
using System.Collections; // IList
using System.Windows.Interactivity; // Behavior
namespace WpfListBoxSelectedItemsBehaviorSample.Behaviors
{
public class ListBoxSelectedItemsBehavior : Behavior<ListBox>
{
@yoshiiz
yoshiiz / Commands\DelegateCommand_T.cs
Last active December 2, 2017 08:10
[Visual C# 2017][WPF] WpfCloseWindowCommandSample
using System;
using System.Windows.Input;
namespace WpfCloseWindowCommandSample.Commands
{
public class DelegateCommand<T> : ICommand
{
private Action<T> _execute;
private Func<T, bool> _canExecute;
@yoshiiz
yoshiiz / Behaviors\FileDragAndDropBehavior.cs
Last active December 25, 2017 17:41
[Visual C# 2017][WPF] WpfFileDragAndDropBehaviorSample
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 =
@yoshiiz
yoshiiz / Converters\EnumToCheckableItemsConverter.cs
Last active December 2, 2017 08:16
[Visual C# 2017][WPF] WpfMutuallyExclusiveCheckableMenuItemsSample
using System;
using System.Windows.Data;
using System.Globalization; // CultureInfo
namespace WpfMutuallyExclusiveCheckableMenuItemsSample.Converters
{
public class EnumToCheckableItemsConverter : IValueConverter
{
public object Convert(
@yoshiiz
yoshiiz / Commands\DelegateCommand.cs
Last active January 3, 2018 21:55
[Visual C# 2017][WPF] WpfBindableListBoxSample
using System;
using System.Windows.Input;
namespace WpfBindableListBoxSample.Commands
{
public class DelegateCommand : ICommand
{
private Action _execute;
private Func<bool> _canExecute;