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
@ishisaka
ishisaka / program.cs
Created December 9, 2011 04:00
sharpSVN Sample
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections.ObjectModel;
using SharpSvn;
namespace SVNSample
{
@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バイト文字とか全く気にしていない。
*/
@ishisaka
ishisaka / Program.cs
Created July 24, 2012 16:15
某アンケート回答の回答取得API使用例
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace JsonTest1
{
@ishisaka
ishisaka / Program.cs
Created July 19, 2013 06:42
Mono.Options試し書き
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mono.Options;
namespace CommandLineOption
{
class Program
@ishisaka
ishisaka / Priogram.cs
Last active December 20, 2015 11:00
Open XML SDK 2.0を使ってExcel 2010のファイルからセルの値を取り出すサンプル
using System;
using System.Collections.Generic;
using System.Linq;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
namespace AccessSheetAndCell
{
class Program
{
@ishisaka
ishisaka / ClosedXML Sample2.cs
Created August 1, 2013 05:35
ClosedXMLを使った、Excel操作の例 ClosedXML http://closedxml.codeplex.com/
using System;
using System.Linq;
using ClosedXML.Excel;
/*
ClosedXMLを利用して、セルの値を取得するサンプル
*/
namespace ClosedXMLSample2
{
class Program
@ishisaka
ishisaka / ClosedXML Sample2.cs
Last active December 20, 2015 12:09
ClosedXMLを使った、Excel操作の例 ClosedXML http://closedxml.codeplex.com/
using System;
using System.Linq;
using ClosedXML.Excel;
/*
ClosedXMLを利用して、セルの値を取得するサンプル
*/
namespace ClosedXMLSample2
{
class Program
@ishisaka
ishisaka / NLog.config
Last active December 25, 2015 01:49
NLogでテキストファイルにスタックトレースをそれなりに綺麗に出力する為のNLog.config設定例。
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--
See http://nlog-project.org/wiki/Configuration_file
for information on customizing logging rules and outputs.
-->
<targets>
<!-- add your targets here -->