Skip to content

Instantly share code, notes, and snippets.

View Nia-TN1012's full-sized avatar

Nia Tomonaka Nia-TN1012

View GitHub Profile
@Nia-TN1012
Nia-TN1012 / Abstract.md
Last active August 29, 2015 14:16
Word用のVBAで俳句を出力するプログラムを作ってみました。

このGistに上がっているVBAソースファイルの概要

  • Haiku-word.vb : Ver. 1.0, Wordの文章に俳句を縦書きで出力するモジュールです。
  • Haiku-word2.vb : Ver. 1.1, 俳句を縦書きのテキストボックスに出力するモジュールです。
  • Haiku-word3.vb : Ver. 1.2, Wordの文章に、ユーザーフォームから入力した任意の俳句を縦書きで出力するモジュールです。
@Nia-TN1012
Nia-TN1012 / Abstract.md
Created February 27, 2015 16:02
PowerPointのVBAで、縦書きテキストボックスに俳句を書き込むプログラムです。

このGistに上がっているVBAソースファイルの概要

  • Haiku-powerpoint.vb : Ver. 1.0 : 俳句を縦書きテキストボックスに俳句を書き込みます。
  • Haiku-powerpoint2.vb : Ver. 2.0 : ユーザーフォームから入力した任意の俳句を縦書きテキストボックスに書き込み、画像ファイルを出力します。
@Nia-TN1012
Nia-TN1012 / Abstract.md
Last active August 29, 2015 14:16
UnityのuGUIを使った俳句プログラミングです。言語はC#で、LINQ用ライブラリに室星亮太氏のUniLinqを使用しています。

このGistに上がっているC#ソースファイルの概要

  • Haiku-with-UniLinq-on-Unity.cs :
    • UnityのuGUIでInputFieldに入力した俳句を、Textオブジェクトに縦書きで表示するスクリプトです。
  • UniLinq-Additional.cs :
  • Haiku-with-UniLinq-on-Unity.csで呼び出しているZipメソッドにおいて.NET Framework 4.0以降に対応しているEnumerable.Zip メソッドと同等の処理を実現するために、プロジェクトにインポートしたUniLinqのEnumerableクラスに追加したメソッドです。
@Nia-TN1012
Nia-TN1012 / CaesarHaiku.fs
Last active August 29, 2015 14:16
入力した俳句をシーザー暗号化するプログラムです。
// Auther : Nia Tomonaka
// Twitter : https://twitter.com/nia_tn1012
[<EntryPoint>]
let main argv =
// 入力した俳句をシーザー暗号化します。
// 但し、区切り文字として、半角スペースとカンマはそのままにします。
printf "平文 :"
System.Console.ReadLine()
@Nia-TN1012
Nia-TN1012 / bigsmall.c
Last active October 31, 2015 09:12
プロ生勉強会 第36回@恵比寿のLTで使用した「大小推測ゲーム」と「フラッシュナンバーズ」のソースコードです。
#include <stdio.h>
#include <stdlib.h>
#include<time.h>
#define num 100
int main(void)
{
int a,b,ans,c,game=0,win=0;
do{
game++;
srand((unsigned)time(NULL)); // rand()の初期化
@Nia-TN1012
Nia-TN1012 / SPADA.cs
Created December 12, 2015 05:25
すぱこーRSSフィードを取得するライブラリ「すぱーダ」です。
// Author : Nia Tomonaka ( @nia_tn1012 )
// ※まだ開発段階です。
using System;
using System.Collections.Generic;
using System.Xml.Linq;
/// <summary>
/// すぱこーRSSフィードを取得するモジュール、
/// すぱこーRSSリーダー、略して「すぱーダ」(SPADA)です。
@Nia-TN1012
Nia-TN1012 / App.xaml
Last active March 25, 2016 06:11
クラッシックテーマ風のウィンドウです。(For Qiita : [C# / WPF] WPFでWindow 9xのクラッシックテーマを再現してみよう)
<Application x:Class="ClassicStyle.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ClassicStyle"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary Source="/PresentationFramework.Classic, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35;component/themes/classic.xaml"/>
</Application.Resources>
</Application>
@Nia-TN1012
Nia-TN1012 / MainWindow.xaml
Last active April 13, 2016 21:24
C# 6.0 / WPFでRSSフィードを取得し、表示するプログラムです。(For Qiita : [C# / WPF] 最新のC# 6.0でMVVMパターンを実装する)
<Window x:Class="RSSMVVM_CS6.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:RSSMVVM_CS6"
Title="RSS Reader ( C# 6.0版 )" Height="480" Width="640">
<Window.DataContext>
<local:RSSViewModel x:Name="rssViewModel"
Url="http://chronoir.net/feed/"
GetRSSCompleted="rssViewModel_GetRSSCompleted"/>
</Window.DataContext>
@Nia-TN1012
Nia-TN1012 / cn-phpinfo.php
Created June 21, 2016 01:42
PHPの勉強ではじめて作成したWordPress用プラグインです(phpinfo()を実行してPHP情報を表示します)
<?php
/*
Plugin Name: PHP Info. Preview
Plugin URI:
Description: PHPの情報(phpinfo())を表示するプラグイン
Author: Nia Tomonaka
Version: 0.1
Author URI: https://chronoir.net/
License: GPL2
*/
@Nia-TN1012
Nia-TN1012 / AnalogWatchFace.cs
Last active December 3, 2016 14:16
Xamarin+C#で作るWatch Faceのコードです。
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software