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 October 14, 2015 06:08
.NET(C#)のDateTime/DateTimeOffsetとUNIX時間との相互変換
// [Program.cs]
// Copyright (C) 2015 Tadahiro Ishisaka All rights reserved.
// This software is released under the MIT License.
using System;
namespace DateTimeSample
{
class Program
@ishisaka
ishisaka / GitDiffVs.txt
Created October 15, 2015 01:45
Visual StudioのDiff/MergeツールをGitのDiff/Mergeツールと使用するための設定
[diff]
tool = vsdiffmerge
[difftool]
prompt = true
[difftool "vsdiffmerge"]
cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t
keepbackup = false
trustexistcode = true
[merge]
tool = vsdiffmerge
{
"editor.fontFamily": "Consolas, Meiryo",
"markdown.styles": [
"file://c:/users/jptais1/md.css"
]
}
@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 -->
@ishisaka
ishisaka / profile.ishisaka.ps1
Last active December 25, 2015 06:09
posh-gitのコマンドプロンプトを変更
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module .\posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
@ishisaka
ishisaka / TestIVS.cs
Created October 29, 2013 14:19
IVS文字かどうか調べる
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Windows.Forms;
namespace ConsoleApplication3
{