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.Drawing; | |
using System.IO; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
namespace Meshi | |
{ | |
// IBM Watson (Bluemix) を利用した飯画像判定 |
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 socket | |
import sys | |
import time | |
host = '127.0.0.1' | |
port = 21730 | |
# open file | |
argvs = sys.argv |
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.Collections.Generic; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Mpga.IO |
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
namespace MinimalGazeDataStream | |
{ | |
using EyeXFramework; | |
using System; | |
using System.Runtime.InteropServices; | |
using Tobii.EyeX.Framework; | |
public class NativeMethods | |
{ | |
[System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetCursorPos")] |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Mpga.ML | |
{ | |
/// <summary> | |
/// Google 画像検索の検索結果文字列向け単語抽出クラス |
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.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; |
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
/// <summary> | |
/// Bitmapをbyte[]に変換する | |
/// </summary> | |
/// <param name="bitmap">変換元の32bitARGB Bitmap</param> | |
/// <returns>1 pixel = 4 byte (+3:A, +2:R, +1:G, +0:B) に変換したbyte配列</returns> | |
public byte[] BitmapToByteArray(Bitmap bmp) | |
{ | |
Rectangle rect = new Rectangle(0, 0, bmp.Width, bmp.Height); | |
System.Drawing.Imaging.BitmapData bmpData = | |
bmp.LockBits(rect, System.Drawing.Imaging.ImageLockMode.ReadWrite, |
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
# MS Agent | |
# https://msdn.microsoft.com/en-us/library/ms695784(v=vs.85).aspx | |
# Animation Lists for the Characters Available from Microsoft | |
# https://msdn.microsoft.com/en-us/library/ms695821(v=vs.85).aspx | |
Alert | |
CheckingSomething * | |
Congratulate | |
DeepIdle1 | |
EmptyTrash | |
Explain |
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.IO; | |
using System.Runtime.InteropServices; | |
using ExcelApplication = Microsoft.Office.Interop.Excel.Application; | |
using Microsoft.VisualBasic; | |
namespace Kanji2Yomi | |
{ | |
class Program | |
{ |
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.Speech.Recognition; | |
using System.Text; | |
namespace Wav2Text | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |