Skip to content

Instantly share code, notes, and snippets.

View ishisaka's full-sized avatar
💭
I may be slow to respond.

Tadahiro Ishisaka ishisaka

💭
I may be slow to respond.
View GitHub Profile
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="Tadahiro Ishisaka">
// Copyright 2014 Tadahiro Ishisaka
//
// 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
//
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Microsoft.Isam.Esent.Interop;
namespace EsentSample
{
internal class Program
{
@ishisaka
ishisaka / ExampleOfEsentPersistantDictionary2.cs
Last active August 29, 2015 13:57
ESE InteropのPersistantDictionaryの使用方法。Dictionary<>の使用感覚でESEを使える大変な便利なライブラリ。当然Linqが使える
using System;
using System.Diagnostics;
using System.Linq;
using Microsoft.Isam.Esent.Collections.Generic;
namespace ExampleOfEsentPersistantDictionary2
{
/// <summary>
/// PersistentDictionaryFileのサンプル。
/// 保存するデータに構造体を用いる。
@ishisaka
ishisaka / Twenty Fourteen page.php
Created May 12, 2014 10:48
zenbackの埋め込み
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other 'pages' on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Fourteen
---------------------------
Microsoft Word 15.0
---------------------------
申し訳ございません。この機能は破損しているため修復する必要があります。Windows コントロール パネルの [プログラムと機能] オプションを使用して Microsoft Office の修復を行ってください。
---------------------------
OK
---------------------------
@ishisaka
ishisaka / Program.cs
Created October 29, 2014 02:11
EPplusを使ったExcel Hello World
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;
using OfficeOpenXml;
using OfficeOpenXml.Style;
@ishisaka
ishisaka / Program.cs
Last active September 11, 2015 10:55
システムのプロキシー設定を取得する
// システムのプロキシー設定を表示する
// The MIT License (MIT)
// Copyright (c) 2015 Tadahiro Ishisaka. All Rights Reserved.
using System;
using System.Net;
namespace GetProxy
{
internal class Program
@ishisaka
ishisaka / SuperHeroApi.cs
Created December 29, 2011 02:04
@chackさんのサンプルをModelからデータを取得するようにしてPOSTコマンドを追加
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Web;
using SuperHero.Resources;
using Models = SuperHero.Models;
namespace SuperHero.APIs
@ishisaka
ishisaka / AddPost.cshtml
Created January 9, 2012 14:21
バリデーション後の表示切り替えのための条件判断で悩む。
@{
Layout = "~/_Layout.cshtml";
var title = Request["Title"];
var titleError = false;
var summary = Request["Summary"];
var summaryError = false;
@ishisaka
ishisaka / Program.cs
Created February 17, 2012 08:04
UNICODEの文字列がJISでのいわゆる半角文字相当で何文字か確認するプログラム。
using System;
using System.Collections.Generic;
using System.Text;
/*
* UNICODEの文字列がJISでのいわゆる半角文字相当で何文字か確認するプログラム。
*
* 問題点:
* JIS以外の欧州文字(Latain-x)での1バイト文字とか全く気にしていない。
*/